Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels