You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The example servers, in the folder examples/servers, in combination with the clients from README.md do not work.
Using mcp_simple_tool as an example, starting the servers with the command mcp-simple-tool or mcp-simple-tool --transport sse --port 8000 is not correct. I believe that should be uv run mcp-simple-tool or uv run mcp-simple-tool --transport sse --port 8000 respectively.
The client code is not able to talk to the server. I am not sure which method (stdio vs sse) the example should be using. Additionally, the import for the client does not exist.
frommcp.clientimportClientSession# ClientSessionasyncwithClientSession() assession:
awaitsession.initialize()
# List available toolstools=awaitsession.list_tools()
print(tools)
# Call the fetch toolresult=awaitsession.call_tool("fetch", {
"url": "https://example.com"
})
print(result)
The text was updated successfully, but these errors were encountered:
Describe the bug
The example servers, in the folder
examples/servers
, in combination with the clients from README.md do not work.Using mcp_simple_tool as an example, starting the servers with the command
mcp-simple-tool
ormcp-simple-tool --transport sse --port 8000
is not correct. I believe that should beuv run mcp-simple-tool
oruv run mcp-simple-tool --transport sse --port 8000
respectively.The client code is not able to talk to the server. I am not sure which method (stdio vs sse) the example should be using. Additionally, the import for the client does not exist.
The text was updated successfully, but these errors were encountered: