Skip to content

Night Nurse: MCP Server Implementation (WIP)#1

Open
amadad wants to merge 3 commits intomainfrom
night-nurse/001-mcp-server-implementation---complete-the-mcp-server-to-expose-brand-operations-personas-content-intel-decisions-as-tools-for-ai-assistants-using-fastmcp
Open

Night Nurse: MCP Server Implementation (WIP)#1
amadad wants to merge 3 commits intomainfrom
night-nurse/001-mcp-server-implementation---complete-the-mcp-server-to-expose-brand-operations-personas-content-intel-decisions-as-tools-for-ai-assistants-using-fastmcp

Conversation

@amadad
Copy link
Owner

@amadad amadad commented Feb 1, 2026

Automated PR from Night Nurse.

Spec

MCP Server Implementation - Complete the MCP server to expose brand operations (personas, content, intel, decisions) as tools for AI assistants using FastMCP.

Progress

  • 1.1 Setup task completed
  • Remaining tasks in progress

This PR is a work in progress - Night Nurse will continue iterations.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5ea7819b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +116 to +118
webhook_url = os.getenv("SLACK_WEBHOOK_URL")
if not webhook_url:
logger.info("Approval notification: %s", message)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add missing logger import or initialization

When SLACK_WEBHOOK_URL is unset, _notify calls logger.info(...), but this module never defines logger. That means normal approval flows without a webhook will raise NameError instead of logging. This breaks the state machine paths that call _notify in non-webhook environments. Import and initialize a logger (or use the existing logging setup) before calling it.

Useful? React with 👍 / 👎.

Comment on lines +120 to +124
try:
httpx.post(
webhook_url,
json={"text": f"[BrandOS] {message}"},
timeout=10,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Import httpx before using it in notifications

When SLACK_WEBHOOK_URL is set, _notify calls httpx.post(...), but httpx is never imported in this file, so the first approval notification will raise NameError. This makes webhook notifications non-functional even though the dependency exists. Import httpx (module-level or inside the function) before invoking it.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant