mcp issues, logs have nothing, but nanocoder see them. #2014

Open
opened 2026-02-16 17:33:45 -05:00 by yindo · 7 comments
Owner

Originally created by @mannp on GitHub (Oct 8, 2025).

Originally assigned to: @thdxr on GitHub.

I am trying to get some mcp servers going with opencode 0.14.6 but I see nothing in the logs for mcps have failed connections;

http://127.0.0.1:4096/mcp

context7	"failed"
pexpect "failed"
mcp-nixos "failed"

Nanocoder with the same mcp servers, sees them all fine

Connecting to 3 MCP servers...
Connected to MCP server "context7" with 2 tools
Connected to MCP server "pexpect" with 1 tools
Connected to MCP server "mcp-nixos" with 18 tools
/mcp

 │  • context7: 2 tools                                                                                                 │
 │  Tools: resolve-library-id, get-library-docs
 │  • pexpect: 1 tool                                                                                                   │
 │  Tools: run_pexpect  
 │  • mcp-nixos: 18 tools                                                                                               │
 │  Tools: nixos_search, nixos_info, nixos_channels, nixos_stats, home_manager_search, home_manager_info,               │
 │  home_manager_stats, home_manager_list_options, home_manager_options_by_prefix, darwin_search, darwin_info,          │
 │  darwin_stats, darwin_list_options, darwin_options_by_prefix, nixos_flakes_stats, nixos_flakes_search,               │
 │  nixhub_package_versions, nixhub_find_version 

Is there anything like /mcp in opencode, as it's a nice touch.

I do use opencode but struggling to get these mcps going.

Originally created by @mannp on GitHub (Oct 8, 2025). Originally assigned to: @thdxr on GitHub. I am trying to get some mcp servers going with opencode 0.14.6 but I see nothing in the logs for mcps have failed connections; ``` http://127.0.0.1:4096/mcp context7 "failed" pexpect "failed" mcp-nixos "failed" ``` Nanocoder with the same mcp servers, sees them all fine ``` Connecting to 3 MCP servers... Connected to MCP server "context7" with 2 tools Connected to MCP server "pexpect" with 1 tools Connected to MCP server "mcp-nixos" with 18 tools ``` ``` /mcp │ • context7: 2 tools │ │ Tools: resolve-library-id, get-library-docs │ • pexpect: 1 tool │ │ Tools: run_pexpect │ • mcp-nixos: 18 tools │ │ Tools: nixos_search, nixos_info, nixos_channels, nixos_stats, home_manager_search, home_manager_info, │ │ home_manager_stats, home_manager_list_options, home_manager_options_by_prefix, darwin_search, darwin_info, │ │ darwin_stats, darwin_list_options, darwin_options_by_prefix, nixos_flakes_stats, nixos_flakes_search, │ │ nixhub_package_versions, nixhub_find_version ``` Is there anything like /mcp in opencode, as it's a nice touch. I do use opencode but struggling to get these mcps going.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 8, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #829: MCP server failed to start (unstable MCP servers) - describes similar MCP connection failures and startup issues
  • #876: MCP server call fails - shows MCP servers failing without clear error messages
  • #1878: MCPClientError: Attempted to send a request from a closed client - related to MCP connection problems
  • #504: big mess in terminal when MCP server fails - discusses MCP server failures and poor error reporting
  • #1899: Command to show available mcp servers - requests a command to show MCP server status (similar to your request for /mcp functionality)
  • #567: feature request: mcp slash command - specifically requests /mcp command functionality

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 8, 2025): This issue might be a duplicate of existing issues. Please check: - #829: MCP server failed to start (unstable MCP servers) - describes similar MCP connection failures and startup issues - #876: MCP server call fails - shows MCP servers failing without clear error messages - #1878: MCPClientError: Attempted to send a request from a closed client - related to MCP connection problems - #504: big mess in terminal when MCP server fails - discusses MCP server failures and poor error reporting - #1899: Command to show available mcp servers - requests a command to show MCP server status (similar to your request for /mcp functionality) - #567: feature request: mcp slash command - specifically requests /mcp command functionality Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

Hm how are you configuring your mcps context7 works fine for me

@rekram1-node commented on GitHub (Oct 8, 2025): Hm how are you configuring your mcps context7 works fine for me
Author
Owner

@mannp commented on GitHub (Oct 8, 2025):

  "mcp": {
    "context7": {
      "command": [
        "/nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp"
      ],
      "enabled": true,
      "type": "local"
    }
}
@mannp commented on GitHub (Oct 8, 2025): ``` "mcp": { "context7": { "command": [ "/nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp" ], "enabled": true, "type": "local" } } ```
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

and in your terminal running:
/nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp

will run the mcp server?

This may be a misconfiguration, can u show your nanocoder config for reference

@rekram1-node commented on GitHub (Oct 8, 2025): and in your terminal running: /nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp will run the mcp server? This may be a misconfiguration, can u show your nanocoder config for reference
Author
Owner

@mannp commented on GitHub (Oct 8, 2025):

will run the mcp server?

Yes;

> /nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp                                                            nix-shell-env acl-2.3.2-bin age-1.2.1 a…
Context7 Documentation MCP Server running on stdio

This may be a misconfiguration, can u show your nanocoder config for reference

Here's the nanocoder snippet

{"nanocoder":{"mcpServers":[{"args":[],"command":"/nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp","name":"context7"}

@mannp commented on GitHub (Oct 8, 2025): > will run the mcp server? Yes; ``` > /nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp  nix-shell-env acl-2.3.2-bin age-1.2.1 a… Context7 Documentation MCP Server running on stdio ``` > This may be a misconfiguration, can u show your nanocoder config for reference Here's the nanocoder snippet `{"nanocoder":{"mcpServers":[{"args":[],"command":"/nix/store/hjx47f2n32pwligw8fsk3drnsdrz4f8z-context7-mcp-1.0.17/bin/context7-mcp","name":"context7"}`
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

Oh lol @mannp i found issue, we lazy load the mcps so until you send a message it says "failed" thats an easy fix but your server is probably connecting fine but the endpoint kinda lies

Your mcp server should be working, to test ask model what tools it has or try:

use context7 to research redis

@rekram1-node commented on GitHub (Oct 8, 2025): Oh lol @mannp i found issue, we lazy load the mcps so until you send a message it says "failed" thats an easy fix but your server is probably connecting fine but the endpoint kinda lies Your mcp server should be working, to test ask model what tools it has or try: use context7 to research redis
Author
Owner

@mannp commented on GitHub (Oct 8, 2025):

Cool, glad you found the issue 👍 and its fixable 😀

@mannp commented on GitHub (Oct 8, 2025): Cool, glad you found the issue 👍 and its fixable 😀
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2014