
NexaLayer
io.github.NexaLayer由 GitHub 账号 NexaLayer 发布v0.2.0更新于 Oct 27, 2026
Managed proxy sessions, health, rotation, usage, and spend controls for AI agents.
概览
NexaLayer 让助手浏览代理产品、创建和轮换付费代理会话,并查看会话健康、用量、预算与支出。
- 可以做什么
- 按类型、国家和库存筛选浏览代理产品目录及当前价格与可用性
- 读取会话详情、健康状态、用量、预算、告警、余额和交易记录
- 创建或轮换付费代理会话,可选择返回代理凭据
- 修改 API 密钥与每日预算上限
- 任务结束时终止会话
- 查询服务状态与已知问题,提交并轮询支持工单
- 适用场景
- 当智能体需要托管代理会话,且希望助手先报价、再创建或轮换会话,并按预算跟踪用量与支出时使用。适合购买和策略变更都需经所有者明确批准的工作流。
- 运行要求
- 以 stdio 在本地运行,通常通过 npx 使用 npm 包或 Docker 镜像。需要在 NEXALAYER_API_KEY 环境变量中提供 NexaLayer API 密钥,并能访问 NexaLayer API;NEXALAYER_BASE_URL 为可选项。付费会话需要账户余额或试用额度。
安装
在 SourceWeft 中
- 打开 控制台中的 NexaLayer,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
NexaLayer MCP Server
This directory contains the MCP server package and implementation. For the repository overview, installation options, complete 16-tool catalog, and backend relationship, see the root README.
Connect an MCP client to NexaLayer products, sessions, health, usage, and spend controls.
The server writes protocol messages only to stdout. API errors go through MCP tool results. Tool annotations mark reads, paid writes, policy changes, and destructive cleanup so compatible clients can apply approval policies.
Tools
- Read: products and exact prices, session detail, health, usage, budget, alerts, balance, and transactions.
- Paid write: create or rotate a Session. Use a unique
idempotency_keyand owner approval. - Policy write: change API-Key and daily budget limits. Require owner approval.
- Cleanup: terminate a Session when the task ends. Early termination does not imply a refund. If the upstream is down, billing stops at the first terminate attempt and NexaLayer retries the release in the background.
- Support (no charge):
nexalayer_check_status,nexalayer_known_issues,nexalayer_report_issue, andnexalayer_get_ticket.
nexalayer_list_products returns a compact, cursor-paginated catalog. It defaults to 20 currently available products, supports type, country, in_stock, limit, and cursor, and excludes internal pricing and supplier fields.
nexalayer_create_session incurs charges against the account balance. Read the current quote and budget, then obtain owner approval before calling it. POST /sessions does not honor include_credentials and omits proxy credentials. PRICE_MISMATCH (409): re-read prices, retry once. BUDGET_EXCEEDED and INSUFFICIENT_BALANCE (402): ask the owner, don't retry.
nexalayer_get_session and nexalayer_rotate_session accept optional include_credentials (default false) and pass it to the API. Credentials are omitted unless include_credentials=true; never log them.
Always read nexalayer_list_products before purchase because it returns the current openAgent-backed quote and availability. Exclusive static proxy sessions are $1.43–$5.86/month (launch pricing, live API authoritative).
Common API error codes include AUTH_INVALID_KEY, INSUFFICIENT_BALANCE, BUDGET_EXCEEDED, PRICE_MISMATCH, IDEMPOTENCY_CONFLICT, and RATE_LIMIT_EXCEEDED.
PRICE_MISMATCH is HTTP 409: re-read prices, retry once. BUDGET_EXCEEDED and INSUFFICIENT_BALANCE are HTTP 402: ask the owner, don't retry.
Errors and support
Failed API calls return an MCP tool error (isError: true) with a one-line summary and the full NexaLayer error object in structuredContent.error: code, retryable, retry_after, suggested_action, side_effects, doc_url, known_issue_id, and request_id. Branch on those fields, not on the message text.
When an error is not self-explanatory:
The server keeps the last 20 request ids and error codes it saw and attaches them to nexalayer_report_issue automatically, along with the MCP client name and package version. Never put API keys, proxy passwords, or full_url in a ticket. Response targets are early-access targets, not guarantees: S1 4h, S2 24h, S3 3 business days, S4 best effort. Human contact: [email protected] (Telegram @LEWISMIN).
Docker
Build the stdio MCP server from the repository root:
The container can start and expose its tool catalog without credentials, which allows MCP directories and clients to inspect it safely:
Pass the API Key only at runtime when calling NexaLayer tools:
NEXALAYER_BASE_URL remains optional. The image uses stdio and does not expose a network port or contain credentials.
Request an API key and one-time trial credit at https://nexalayer.net/agents?source=mcp-readme.
来源:mcp/README.md,提交 00db651
工具
0版本历史
6- v0.2.0最新Oct 19, 2026
- v0.1.6Oct 17, 2026
- v0.1.5Oct 16, 2026
- v0.1.4Oct 16, 2026
- v0.1.3Oct 15, 2026
- v0.1.1Oct 15, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分