A universal RPC layer that lets agents call functions in any language across network boundaries.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agentrpc --env AGENTRPC_API_SECRET='<AGENTRPC_API_SECRET>' --env ANGENTRPC_API_SECRET='<ANGENTRPC_API_SECRET>' -- npx -y agentrpc mcp~/.codex/config.toml
[mcp_servers.agentrpc]
command = "npx"
args = ["-y", "agentrpc", "mcp"]
env = { AGENTRPC_API_SECRET = "<AGENTRPC_API_SECRET>", ANGENTRPC_API_SECRET = "<ANGENTRPC_API_SECRET>" }
# codex mcp add agentrpc --env AGENTRPC_API_SECRET='<AGENTRPC_API_SECRET>' --env ANGENTRPC_API_SECRET='<ANGENTRPC_API_SECRET>' -- npx -y agentrpc mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentrpc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}需要的环境变量
AGENTRPC_API_SECRETANGENTRPC_API_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。