Skip to content

Fix whoami over stdio MCP#848

Open
Kage18 wants to merge 1 commit into
garrytan:masterfrom
Kage18:kage-fix-whoami-stdio
Open

Fix whoami over stdio MCP#848
Kage18 wants to merge 1 commit into
garrytan:masterfrom
Kage18:kage-fix-whoami-stdio

Conversation

@Kage18

@Kage18 Kage18 commented May 11, 2026

Copy link
Copy Markdown

Fixes #713.

Summary

  • Thread a lightweight transport label through MCP dispatch.
  • Mark stdio MCP calls as transport: "stdio" and HTTP MCP calls as transport: "http".
  • Make whoami return the local shape for stdio MCP while preserving fail-closed behavior for ambiguous remote contexts.

Validation

  • bun test test/whoami.test.ts — 10 pass, 0 fail
  • bun run typecheck
  • git diff --check

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

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.

whoami returns unknown_transport over stdio MCP transport (v0.28.6)

1 participant