python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

can postman request mcp server?

Open wenyuanliu opened this issue 8 months ago • 2 comments

I want to debug my mcp server interface by postman request, Is it available?

When I try to request my MCP server through postman post method,the response is error like this: { "jsonrpc": "2.0", "id": "server-error", "error": { "code": -32600, "message": "Bad Request: Missing session ID" } }

my request body is: { "jsonrpc": "2.0", "id": 1, "method": "call_tool", "params": { "session_id": "test-session-1", // 这里必须有 "toolCalls": [ { "name": "list_trace_files", "arguments": {} } ] }

wenyuanliu avatar May 30 '25 03:05 wenyuanliu

The error is showing that you have not modelled the sessions ID properly in the POSTMAN, HTTP, POST method. Check for it properly over the server.

vishalmaurya850 avatar May 30 '25 14:05 vishalmaurya850

这是来自QQ邮箱的假期自动回复邮件。   您好,刘文苑已收到你的来信,愿您快乐每一天!!^=^

wenyuanliu avatar May 30 '25 14:05 wenyuanliu

sse and streamable-http are different methods. sse is two lines. If you use postman, you can call streamable-http to try

xuzexin-hz avatar Jun 20 '25 06:06 xuzexin-hz

这是来自QQ邮箱的假期自动回复邮件。   您好,刘文苑已收到你的来信,愿您快乐每一天!!^=^

wenyuanliu avatar Jun 20 '25 06:06 wenyuanliu

The best client for development is Inspector.

Kludex avatar Jun 20 '25 14:06 Kludex

这是来自QQ邮箱的假期自动回复邮件。   您好,刘文苑已收到你的来信,愿您快乐每一天!!^=^

wenyuanliu avatar Jul 23 '25 07:07 wenyuanliu