[GH-ISSUE #15677] ollama launch claude wrapper doesn't register MCP tools despite showing '✓ Connected' #56514

Open
opened 2026-04-29 10:56:59 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @jyxtn on GitHub (Apr 18, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15677

Environment

  • Claude Code: 2.1.114
  • Ollama: 0.20.4
  • OS: macOS
  • Command: ollama launch claude

Describe the bug
When launching Claude Code via ollama launch claude, MCP servers show as "✓ Connected" in claude mcp list but their tools are not registered and cannot be called.

Steps to reproduce

  1. Configure ~/.mcp.json with one or more MCP servers
  2. Launch Claude Code via ollama launch claude
  3. Run claude mcp list → servers show "✓ Connected"
  4. Attempt to call a tool (e.g. mcp__token-enhancer__fetch_clean) → "No such tool available"

Expected behavior
Tools should be available when server reports connected.

Actual behavior
Server connects, but tools are not registered in the session.

Confirmed working
Launching claude directly (native CLI) with the same ~/.mcp.json — all MCP tools register and work correctly. Direct JSON-RPC calls to the MCP server also succeed.

Conclusion
The ollama launch wrapper appears to skip or not propagate MCP tool registration during session init.

Originally created by @jyxtn on GitHub (Apr 18, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15677 **Environment** - Claude Code: 2.1.114 - Ollama: 0.20.4 - OS: macOS - Command: `ollama launch claude` **Describe the bug** When launching Claude Code via `ollama launch claude`, MCP servers show as "✓ Connected" in `claude mcp list` but their tools are not registered and cannot be called. **Steps to reproduce** 1. Configure `~/.mcp.json` with one or more MCP servers 2. Launch Claude Code via `ollama launch claude` 3. Run `claude mcp list` → servers show "✓ Connected" 4. Attempt to call a tool (e.g. `mcp__token-enhancer__fetch_clean`) → "No such tool available" **Expected behavior** Tools should be available when server reports connected. **Actual behavior** Server connects, but tools are not registered in the session. **Confirmed working** Launching `claude` directly (native CLI) with the same `~/.mcp.json` — all MCP tools register and work correctly. Direct JSON-RPC calls to the MCP server also succeed. **Conclusion** The `ollama launch` wrapper appears to skip or not propagate MCP tool registration during session init.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56514