Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error calling tool xxx: context deadline exceeded #11

Open
jfdenise opened this issue Jan 16, 2025 · 1 comment
Open

Error calling tool xxx: context deadline exceeded #11

jfdenise opened this issue Jan 16, 2025 · 1 comment

Comments

@jfdenise
Copy link

I have implemented a very simple tools that returns a string containing some raw Prometheus metrics.
When testing the server with npx @modelcontextprotocol/inspector the server runs perfectly and is very fast.

I am calling: ./mcphost_Linux_x86_64/mcphost --config mcp.json --model ollama:qwen2.5:3b

The output is:

2025/01/16 18:42:26 INFO Model loaded provider=ollama model=qwen2.5:3b
2025/01/16 18:42:26 INFO Initializing server... name=fetch
2025/01/16 18:42:26 INFO Initializing server... name=wildfly
2025/01/16 18:42:27 INFO Server connected name=wildfly
2025/01/16 18:42:27 INFO Server connected name=fetch
2025/01/16 18:42:27 INFO Tools loaded server=fetch count=1
2025/01/16 18:42:27 INFO Tools loaded server=wildfly count=1
┃ Enter your prompt (Type /help for commands, Ctrl+C to quit)                   

When I am asking a question releated to the metrics, I am getting the following error and and reply....

2025/01/16 18:43:33 INFO 🔧 Using tool name=wildfly__getMetrics

Error calling tool getMetrics: context deadline exceeded

Even when enabling --debug, I have no clue of what is going on.

Thank-you for your assistance.

@moresearch
Copy link

moresearch commented Mar 17, 2025

mcphost -m ollama:granite3.2:8b-instruct-q8_0 2025/03/17 11:56:33 INFO Model loaded provider=ollama model=granite3.2:8b-instruct-q8_0 2025/03/17 11:56:33 INFO Initializing server... name=github 2025/03/17 11:56:35 INFO Initializing server... name=filesystem Error: error creating MCP clients: failed to initialize MCP client for filesystem: context deadline exceeded

Same issue here! What is that all about?

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

No branches or pull requests

2 participants