mcptools icon indicating copy to clipboard operation
mcptools copied to clipboard

Local SSE issue

Open stefanstranger opened this issue 1 year ago • 1 comments

I've developed a MCP Server running as an Azure Function. I can use MCP Inspector when I run this function locally but when I try to use MCPTools I don't see anything.

The Azure Function is running locally at: http://localhost:7071/runtime/webhooks/mcp/sse

I can test the MCP server running locally with MCP Inspector but not with MCPTools.

Image

I the logging of the Azure Function running locally I see the request from MCPTools.

[2025-05-17T06:52:52.391Z] Executing HTTP request: {
[2025-05-17T06:52:52.393Z]   "requestId": "5a9613e1-ebf0-46a8-805e-c28ea283fda5",
[2025-05-17T06:52:52.394Z]   "method": "GET",
[2025-05-17T06:52:52.396Z]   "userAgent": "Go-http-client/1.1",
[2025-05-17T06:52:52.398Z]   "uri": "/runtime/webhooks/mcp/sse"
[2025-05-17T06:52:52.399Z] }
[2025-05-17T06:52:52.401Z] Creating message handler for client 'bafjgqduuto9a2vx'
[2025-05-17T06:52:52.403Z] Message handler created with ID: 'bafjgqduuto9a2vx' on instance 'hdthvd1g7wh8cgtb'
[2025-05-17T06:52:52.404Z] Handling SSE request for client 'bafjgqduuto9a2vx'.
[2025-05-17T06:52:52.409Z] Executing HTTP request: {
[2025-05-17T06:52:52.410Z]   "requestId": "c90fc8d5-02b7-4d3d-bf80-2e1439343887",
[2025-05-17T06:52:52.411Z]   "method": "POST",
[2025-05-17T06:52:52.412Z]   "userAgent": "Go-http-client/1.1",
[2025-05-17T06:52:52.413Z]   "uri": "/runtime/webhooks/mcp/message"
[2025-05-17T06:52:52.415Z] }
[2025-05-17T06:52:52.418Z] Executed HTTP request: {
[2025-05-17T06:52:52.420Z]   "requestId": "c90fc8d5-02b7-4d3d-bf80-2e1439343887",
[2025-05-17T06:52:52.421Z]   "identities": "(WebJobsAuthLevel:Admin, WebJobsAuthLevel:Admin)",
[2025-05-17T06:52:52.422Z]   "status": "202",
[2025-05-17T06:52:52.423Z]   "duration": "9"
[2025-05-17T06:52:52.424Z] }
[2025-05-17T06:52:54.859Z] Executing HTTP request: {
[2025-05-17T06:52:54.862Z]   "requestId": "cb00e17b-24ac-4aaa-ab8a-8a62485bcd5e",
[2025-05-17T06:52:54.865Z]   "method": "POST",
[2025-05-17T06:52:54.867Z]   "userAgent": "node",
[2025-05-17T06:52:54.869Z]   "uri": "/runtime/webhooks/mcp/messages"
[2025-05-17T06:52:54.871Z] }
[2025-05-17T06:52:54.875Z] Executed HTTP request: {
[2025-05-17T06:52:54.877Z]   "requestId": "cb00e17b-24ac-4aaa-ab8a-8a62485bcd5e",
[2025-05-17T06:52:54.878Z]   "identities": "(WebJobsAuthLevel:Admin, WebJobsAuthLevel:Admin)",
[2025-05-17T06:52:54.880Z]   "status": "202",
[2025-05-17T06:52:54.881Z]   "duration": "15"
[2025-05-17T06:52:54.883Z] }
[2025-05-17T06:53:02.415Z] Closing message handler with ID: bafjgqduuto9a2vx
[2025-05-17T06:53:02.418Z] Executed HTTP request: {
[2025-05-17T06:53:02.419Z]   "requestId": "5a9613e1-ebf0-46a8-805e-c28ea283fda5",
[2025-05-17T06:53:02.420Z]   "identities": "(WebJobsAuthLevel:Admin, WebJobsAuthLevel:Admin)",
[2025-05-17T06:53:02.421Z]   "status": "200",
[2025-05-17T06:53:02.423Z]   "duration": "10026"
[2025-05-17T06:53:02.424Z] }

Any idea why this does not work?

stefanstranger avatar May 17 '25 06:05 stefanstranger

I was able to reproduce this by setting up a server from https://github.com/Azure-Samples/remote-mcp-functions-python.

I will take a look at this shortly and try to understand what the issue is.

ayakutt avatar May 20 '25 06:05 ayakutt