Issue with NeuronAI MCP Server Instantiation via MCPConnector #77
-
|
Hey @ilvalerione , Hope you’ve been doing well! We’ve recently kicked off some initial POC testing for NeuronAI and I’m working alongside @smartens80 on this project. I’ve hit a bit of a snag with getting MCP servers to properly instantiate when invoked via Neuron, and I’m hoping you might be able to shed some light on it. ✅ What’s working:
❌ What’s not working:
🧪 What I’ve tried:To gain some visibility into what’s happening during tool invocation, I’ve used a few debug workarounds: protected function tools(): array
{
return [
// Audible checkpoint
...McpConnector::make([
'command' => 'say',
'args' => ['hello'],
])->tools(),
// Wrapper script that logs a timestamp when a process spawns
...McpConnector::make([
'command' => '/Users/robbielove/mcp-debug.sh',
'args' => [],
])->tools(),
// Audible endpoint (never reached)
...McpConnector::make([
'command' => 'say',
'args' => ['hello'],
])->tools(),
];
}The above works as expected up to the point of trying to spawn the MCP server. The second “hello” never runs — and no timestamp log file is created in the wrapper script — which suggests the MCP server never launches. Here’s an example of the direct (non-wrapper) config I attempted: ...McpConnector::make([
'command' => '/opt/homebrew/bin/node',
'args' => [
'/opt/homebrew/lib/node_modules/@modelcontextprotocol/server-everything/dist/index.js',
],
])->tools(),🔍 Debug insights:
📎 Questions:
Any help would be massively appreciated — happy to try out any fixes or diagnostic steps you suggest. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 24 replies
-
|
The command should be always As the example in the documentation shows you should run an ...McpConnector::make([
'command' => 'npx',
'args' => ['-y', '@modelcontextprotocol/server-everything'],
])->tools()The process I went through for this implementation was just to install In the example above if you ask the agent To monitor what the agent does internally, including tool calls, you can connect it to Inspector: https://docs.neuron-ai.dev/advanced/observability |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ilvalerione, Thanks for confirming the npx approach. I tried installing @modelcontextprotocol/server-everything globally and invoking it exactly as you suggested: That does spawn the process—but any single MCP tool failure still aborts the entire agent and I get a 500 with: even though all my other tools are perfectly fine. Here’s why this is a two-part blocker: 1️⃣ I can’t even get a single (useful) tool (e.g. the MySQL MCP server) to work consistently
eg.: 2️⃣ The agent’s all-or-nothing loading model is a UX killer
Without at least one of those, every time I add a new MCP tool I’m going to end up spending hours restarting, hunting for missing logs, and so on. What I need right now
My goal here is:
Happy to help test whatever change or setting you suggest. Thanks, Robbie |
Beta Was this translation helpful? Give feedback.
-
|
I created stdio server using 'https://mcp.so/server/server/php-mcp' package, couldn't use it with the native code: I created a workaround on McpClient class added initialize function and use it, everything works now. |
Beta Was this translation helpful? Give feedback.
-
|
upgraded from version 1.10.20 to the latest and mcp for php is broken, any insight into it? |
Beta Was this translation helpful? Give feedback.
-
|
The tool is loaded and exit immediately, something weird, didn't debug it - just downgraded. |
Beta Was this translation helpful? Give feedback.
You can try this configuration:
Let me know if it changes the behavior.