Skip to content

chore(mcp): drop stdio traces; AGENTS.md: MCP lives only in the main server - #962

Merged
lakhansamani merged 1 commit into
mainfrom
chore/mcp-stdio-traces
Dec 1, 2026
Merged

lakhansamani merged 1 commit into
mainfrom
chore/mcp-stdio-traces

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Two parts, neither of which changes behaviour:

  • Comments. No code comment mentions the removed stdio subcommand any more. This covers root.go, internal/mcp, the MCP and smoke tests, the SQL logger comments (which justified keeping stdout clean by pointing at the stdio stream), and mcp_access_token.go.
  • AGENTS.md.
    • Critical rule 8: no subcommands, and MCP lives only in the main server.
    • A new MCP section:
      • One transport, POST <url>/mcp under --mcp-enabled.
      • No subcommand, separate process or stdio transport.
      • Identity only from the request's token, with audience <url>/mcp; no process-wide or configured credential.
      • The issuer comes from --url; nothing may override it.
      • The audience boundary holds in both directions.
      • Tools are read-only and curated.
      • Docs and examples show only the endpoint.

The CHANGELOG keeps its 2.5.0 "Removed" entry, which upgraders need.

go vet (including -tags smoke) is clean, and the internal/mcp and SQL storage tests pass.

…the main server

Comments no longer mention the removed stdio subcommand. AGENTS.md gains
critical rule 8 and an MCP section: one transport (POST <url>/mcp under
--mcp-enabled), no subcommands or separate process, identity only from
the request's audience-bound token, issuer from --url, read-only curated
tools, and docs/examples that show only the endpoint.
@lakhansamani
lakhansamani merged commit cdbd839 into main Dec 1, 2026
5 checks passed
@lakhansamani
lakhansamani deleted the chore/mcp-stdio-traces branch December 1, 2026 12:27
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