mcpField
A
AgentsPodium Hosting

AgentsPodium Hosting

远程服务
hosting.defispace.com云与基础设施07 周前更新

关于 AgentsPodium Hosting

AgentsPodium Hosting 的网关让其他 AI Agent 通过 MCP 或 A2A 创建和管理托管 Agent 实例。每次请求使用调用者自己的 AgentsPodium API 密钥,并转发至账户 API。

主要功能

  1. 01创建、监控和管理实例
  2. 02查看平台与实例健康状态
  3. 03暂停、恢复、重建或删除实例
  4. 04配置 LLM 密钥、对等节点和 Webhook
  5. 05查询付款选项
  6. 06提供托管文档资源

适用场景

  1. 01通过 Agent 创建新的托管实例
  2. 02检查实例健康状态或终端信息
  3. 03暂停或恢复现有实例
  4. 04为实例配置对等节点或 Webhook

MCP 相关

通过无状态 Streamable HTTP MCP 服务公开实例、平台和付款管理工具,以及托管文档资源。调用需携带 AgentsPodium API 密钥或会话令牌。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.agentspodium.com/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://mcp.agentspodium.com/mcp需要授权

工具

13

此工具无需参数。

详细介绍

agent-gateway

让其他 AI Agent 通过两种机器协议——MCP(Streamable HTTP)和 A2A(Agent2Agent JSON-RPC)——驱动 AgentsPodium 托管服务(创建/监控/管理实例);这两种协议都由现有的账户 API https://agentspodium.com/api 提供支持。

网关不保存任何状态,也不持有任何自己的密钥。每次调用都携带调用方自己的 AgentsPodium API 密钥(Authorization: Bearer ak_live_...,或会话令牌),并将其原样转发到账户 API。缺少此请求头时,始终会返回 401,并附带 JSON 响应,其中指向 https://agentspodium.com/account(“面向 Agent 的 API 密钥”)和 https://hosting.defispace.com/docs/auth。

一个进程同时服务两个主机名;在两个主机名共用的路径上(仅 GET /),根据 Host 请求头进行选择。其他所有请求默认使用 MCP 行为,而 mcp.agentspodium.com 和 a2a.agentspodium.com 则路由到同一个 Deployment。

本地运行

npm install
npm run build
ACCOUNT_API=https://agentspodium.com/api PORT=3200 npm start
# or, for iteration:
npm run dev

环境变量:

  • ACCOUNT_API — 账户 API 的基础 URL(默认值:https://agentspodium.com/api)。
  • PORT — HTTP 端口(默认值:3200)。
  • A2A_HOST — 用于在 GET / 时选择 A2A 行为的主机名(默认值:a2a.agentspodium.com)。

调用方式

MCP — mcp.agentspodium.com/mcp

Streamable HTTP,无状态(无会话 ID)。需要 Accept: application/json, text/event-stream。

# initialize
curl -s -X POST https://mcp.agentspodium.com/mcp \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0", "id": 1, "method": "initialize",
    "params": {
      "protocolVersion": "2025-06-18",
      "capabilities": {},
      "clientInfo": { "name": "example-client", "version": "0.1.0" }
    }
  }'

# call a tool
curl -s -X POST https://mcp.agentspodium.com/mcp \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0", "id": 2, "method": "tools/call",
    "params": { "name": "list_platforms", "arguments": {} }
  }'

工具:list_platforms、list_instances、create_instance、 get_instance_health、get_instance_term、set_llm_key、pause_instance、 resume_instance、rebuild_instance、delete_instance、get_payment_options、 set_peers、set_webhook。另有一个资源 agentspodium://docs(托管服务文档)。

A2A — a2a.agentspodium.com/
curl -s https://a2a.agentspodium.com/.well-known/agent-card.json

# structured (data part)
curl -s -X POST https://a2a.agentspodium.com/ \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0", "id": 1, "method": "message/send",
    "params": {
      "message": {
        "parts": [{ "kind": "data", "data": { "skill": "create-instance", "params": { "engine": "hermes", "tier": "small", "name": "My Agent" } } }]
      }
    }
  }'

# plain text (small command grammar)
curl -s -X POST https://a2a.agentspodium.com/ \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0", "id": 2, "method": "message/send",
    "params": { "message": { "parts": [{ "kind": "text", "text": "platforms" }] } }
  }'

文本语法:create <engine> <tier> [name ...]、health <id>、 term <id>、platforms、payment <id>。对于其他任何输入,都会返回 技能列表和准确的 JSON 结构。

无需身份验证即可公开访问:GET /catalog.json(代理账户 API 的 /a2a-catalog)。

部署

docker build -t agentpodium-agent-gateway apps/agent-gateway
# push, then apply:
kubectl apply -f apps/agent-gateway/deploy/gateway.yaml

deploy/gateway.yaml 会创建命名空间 ap-agentgw、一个端口为 3200 的 Deployment/Service,以及两个针对共享 akash-gateway Gateway 的 HTTPRoute(mcp.agentspodium.com、 a2a.agentspodium.com)。应用前,请将 __IMAGE_TAG__ 替换为构建的镜像标签。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。