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 · 0 comments
Open

Error calling tool xxx: context deadline exceeded #11

jfdenise opened this issue Jan 16, 2025 · 0 comments

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.

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

1 participant