Use MCP server from local disk? #45
-
I'm trying to get some simple tools to work which I have on my local disk: {
"mcpServers": {
"my-tools": {
"command": "uv",
"args": [
"--directory",
"/Users/fredrik/code/public/mcp-tools",
"run",
"server.py"
]
}
}
} Claude Desktop picks up on this, but codecompanion.nvim with mcphub.nvim does not. Is it expected that this should work with codecompanion.nvim + mcphub.nvim? I am launching both Claude Desktop and Neovim from the same directory, having the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Is the config file path for mcphub.nvim that same file path? It's odd that you dont see the server at all. If possible can you share the server.py so that I can test it on my system |
Beta Was this translation helpful? Give feedback.
-
Okay, from your config file I see total 6 servers. In the UI I see only 4. Ollama is also missing. Can you show me your "Config" view of the UI or mcphub.setup({ config = "filepath.json"}) ? I think the config is not pointing to the correct file. Do you have multiple config files for claude and mcphub? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hooo, that is a rare case 😄 . The reason it does this is so that multiple neovim session can just use a single server rather than each creating thier own. This is intentional. So, when you previously start the first neovim with the old config file the server was started with just the 4 servers. Now, whenever you open the second neovim it automatically connects to the already running server rather than starting a new one thereby showing only 4.