Skip to content

Accept tunnel-prefixed MCP paths - #19

Merged
f merged 1 commit into
f:mainfrom
zacklavin11:fix/prefixed-mcp-path
Jun 20, 2026
Merged

f merged 1 commit into
f:mainfrom
zacklavin11:fix/prefixed-mcp-path

Conversation

@zacklavin11

Copy link
Copy Markdown
Contributor

Summary

  • normalize Poke tunnel requests from /<connection-id>/mcp to /mcp before routing
  • keep the compatibility path narrow to UUID-shaped connection IDs
  • add regression coverage for prefixed MCP POST, prefixed SSE GET, and non-connection prefixes

Root Cause

Poke can proxy tool calls to the local gateway with the tunnel connection ID still in the request path, for example /<connection-id>/mcp. The local MCP server only accepted exact /mcp, so the tunnel could appear connected while real tool calls returned 404 locally.

Validation

  • npm test
  • npm run lint

Related to #18.

@tharuxpert

Copy link
Copy Markdown

Tested this PR locally with the new tunnel and verified it resolves the local 404 routing error completely. All tests passed. Thanks @zacklavin11 for the quick fix!

@KJdotIO

KJdotIO commented Jun 11, 2026

Copy link
Copy Markdown

Experienced the same issue and my fix was essentially the exact same. this should be merged.

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.

4 participants