Skip to content

[MCP] Web search returns no output #469

@dreamnauts

Description

@dreamnauts

I'm trying to try MCP web search. MCP server I tried is the one available in Hugging Face Space.
https://huggingface.co/spaces/victor/websearch

My mcp.json is as following:

{
  "servers": {
    "gradio": {
      "transport": "sse",
      "url": "https://victor-websearch.hf.space/gradio_api/mcp/sse",
      "enabled": true,
      "timeout": 60
    }
  },
  "max_tool_calls": 2,
  "default_timeout": 30.0
}

It seems MCP server is recognized and loaded successfully.

2026-03-30 08:41:27,341 - omlx.mcp.client - DEBUG - [-] - Discovered tool: gradio__websearch_search_web
2026-03-30 08:41:27,341 - omlx.mcp.client - INFO - [-] - Connected to MCP server 'gradio' (1 tools available)
2026-03-30 08:41:27,341 - omlx.mcp.manager - INFO - [-] - Connected to 'gradio'
2026-03-30 08:41:27,342 - omlx.mcp.manager - INFO - [-] - MCP manager started: 1/1 servers, 1 tools available
2026-03-30 08:41:27,342 - omlx.server - INFO - [-] - MCP initialized with 1 tools

I learned that chat client needs to support client-side tool execution loop, so I used Open WebUI to test.
And yes, Open WebUI did execute web search. However, it's returning no result.

Image

In the log, content of the tool_calls has no value.

2026-03-30 08:42:53,734 - omlx.server - TRACE - [-] - Incoming POST /v1/chat/completions — body: {"stream": true, "model": "Qwen3.5-9B-MLX-4bit", "messages": [{"role": "user", "content": "Who is the prime minister of Japan now?"}, {"role": "assistant", "content": "<think>\nThe user is asking about the current Prime Minister of Japan. This is a straightforward factual question about current political leadership. Since this is general information (not breaking news or time-sensitive information that would require fresh news search), I should use the general \"search\" mode rather than \"news\" mode.\n\nLet me search for this information to get the most up-to-date answer.\n</think>", "tool_calls": [{"id": "call_c55b32c0", "type": "function", "function": {"name": "gradio__websearch_search_web", "arguments": "{\"num_results\": \"4\", \"query\": \"current prime minister of Japan 2025\", \"search_type\": \"search\"}"}}]}, {"role": "tool", "tool_call_id": "call_c55b32c0", "content": ""}]}

I'm a newbie here, so maybe I'm doing something wrong...
Let me know if the issue is on my setup, the MCP server or an issue on oMLX side. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions