AgentRPC + mcphub.nvim: Complete MCP Integration
AgentRPC is a MCP server that Connect to any function, any language, across network boundaries using AgentRPC..
When integrated with mcphub.nvim, you can:
- Register functions across languages and networks
- Call functions across network boundaries
- List all registered functions across languages
This guide provides step-by-step instructions to set up AgentRPC in mcphub.nvim, including configuration, examples, and troubleshooting.
What You'll Achieve
After completing this setup:
- AgentRPC will be fully integrated and operational
- You can use AgentRPC tools directly in mcphub.nvim
- All AgentRPC capabilities will be available for your workflows
- Access to 4 different tools
Prerequisites
Before starting, ensure you have:
- API secret from AgentRPC dashboard
- mcphub.nvim installed and configured
- Compatible operating system (Neovim)
Installation
Step 1: Install AgentRPC
Configuration
Step 2: Configure mcphub.nvim
-
Locate your configuration file:
- Windows:
%LOCALAPPDATA%\mcphub\servers.json - macOS:
~/.config/mcphub/servers.json - Linux:
~/.config/mcphub/servers.json
- Windows:
-
Add server configuration:
{
"mcpServers": {
"agentrpc": {
"command": "agentrpc",
"args": [],
"env": {
"AGENTRPC_API_SECRET": "rpc_secret_1234567890",
"AGENTRPC_NAMESPACE": "my-team-functions"
}
}
}
}
- Restart mcphub.nvim
Completely quit and restart mcphub.nvim to load the new configuration.
Examples
Once configured, you can use AgentRPC in mcphub.nvim:
Multi-Language Microservices
undefined
Ask mcphub.nvim: "Call Python ML model from TypeScript app via Go API"
Expected Result: undefined
Cross-Cloud Function Calls
undefined
Ask mcphub.nvim: "Execute distributed data processing across three clouds"
Expected Result: undefined
Kubernetes Function Registry
undefined
Ask mcphub.nvim: "List available functions in production cluster"
Expected Result: undefined
Testing Your Setup
- Launch mcphub.nvim
- Verify AgentRPC is available in the tools list
- Test basic AgentRPC functionality
Troubleshooting
Common Issues
Servers not showing in :McpHub
Symptoms: Empty server list, Configuration not loaded
Cause: Incorrect configuration file path or JSON syntax error
Solution:
- Verify servers.json exists in ~/.config/mcphub/ or .vscode/mcp.json in project root
- Check JSON syntax for errors (trailing commas, missing quotes)
- Run :checkhealth mcphub to diagnose issues
Tool execution fails
Symptoms: Error message when AI tries to use tool, No response
Cause: Server command failed or environment variables missing
Solution:
- Check server logs in :McpHub
- Verify "command" path is correct and executable
- Ensure required environment variables are set in the config
Chat plugin not recognizing tools
Symptoms: AI says it cannot perform the action, Tools not listed in chat
Cause: Integration issue with the specific chat plugin
Solution:
- Ensure you are using a supported version of the chat plugin
- Check mcphub.nvim documentation for plugin-specific setup instructions
- Restart Neovim to reload the integration
AgentRPC not appearing in mcphub.nvim
Symptoms: Server not listed, Tools not available
Cause: Configuration or installation issue
Solution:
- Verify configuration syntax
- Check AgentRPC installation
- Restart mcphub.nvim
- Check logs for error messages
Next Steps
Now that AgentRPC is integrated with mcphub.nvim:
- Explore all AgentRPC capabilities through mcphub.nvim
- Check out other MCP servers that work with mcphub.nvim
- Join the MCP community for tips and support
- Consider contributing to AgentRPC development
Need Help?
- Search for AgentRPC documentation
- Check the mcphub.nvim MCP guide
- Join the MCP community discussions