Token导航 LogoToken导航

MCP Server · 运维云端

Unanet API MCP

基于Cloudflare Workers的MCP服务器,提供工具开发框架和自动化脚本,支持快速构建和测试AI代理工具。

未说明官方级别未说明来源级核验工具 2
Cloudflare WorkersAI代理工具TypeScript

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
mutsuoara
提供方
mutsuoara

工具数量

2

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Unanet API MCP 属于运维云端类 MCP Server,公开资料标注 2 个工具,通过传输方式未标注接入,客户端适配情况以官方文档为准,没有现成的安装命令;接入前先确认权限范围。

分类

运维云端

传输方式

未说明

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 2 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

unanet-api-mcp

MCP server powered by Cloudflare Workers

Quick Start

Prerequisites

  • Node.js 18+ (LTS recommended)
  • npm 9+

Development

# Start development server
npm run dev

Server runs at http://localhost:8788/sse

Health Check

curl http://localhost:8788/health

Expected: {"status":"ok","service":"unanet-api-mcp","version":"1.0.0"}

Development Scripts

Quick Commands (for AI Agents)

# Scaffold a new tool
npm run tools:add my_tool -- --description "Tool description"

# Add authentication
mcp-server-kit add-auth 
  # stytch, auth0, or workos

# List all tools
npm run tools:list

# Validate project
npm run validate

# Run quality checks (type-check + lint + unit tests)
npm run check

# Pre-commit checks (format + check + validate)
npm run precommit

Testing

# Run all tests
npm run test:all

# Run unit tests only
npm run test:unit

# Run integration tests (requires dev server running)
npm run test:integration

# Generate coverage report
npm run test:coverage

# Watch mode (re-run on changes)
npm run test:watch

Deployment

# Deploy to Cloudflare Workers
npm run deploy

Tools

This MCP server provides the following tools:

  • health - Returns server health status
  • echo - Echoes back the provided message (useful for testing)

Project Structure

unanet-api-mcp/
├── src/
│   ├── index.ts              # MCP server entry point
│   └── tools/                # Tool implementations
│       ├── health.ts
│       └── echo.ts
├── test/
│   ├── unit/                 # Unit tests
│   └── integration/          # Integration tests
│       ├── adapters/         # MCP client adapters
│       ├── specs/            # Test specifications (YAML)
│       └── cli.ts            # Integration test CLI
├── wrangler.jsonc            # Cloudflare Workers config
├── tsconfig.json             # TypeScript configuration
└── package.json              # Dependencies and scripts

Adding New Tools

Using mcp-server-kit CLI (Recommended for AI Agents)

# Auto-scaffold a new tool with tests
mcp-server-kit add tool weather --description "Get weather information"

# This automatically:
# - Creates src/tools/weather.ts with TODO markers
# - Generates test/unit/tools/weather.test.ts
# - Generates test/integration/specs/weather.yaml
# - Registers tool in src/index.ts
# - Updates .mcp-template.json metadata

Manual Process

  1. Create a new file in src/tools/
  2. Implement the tool using the MCP SDK
  3. Register the tool in src/index.ts
  4. Add unit tests in test/unit/
  5. Add integration test spec in test/integration/specs/

Validation

# Check project structure and configuration
mcp-server-kit validate

# This checks:
# - All tools are registered in index.ts
# - Test files exist for all tools
# - Integration test YAMLs are valid
# - Metadata is in sync

For AI Agents 🤖

This project is optimized for AI agent development. Use the patterns and utilities below to build tools efficiently.

Quick Reference

Example Tools (in src/tools/):

  • _example-simple.ts - Basic tool pattern
  • _example-validated.ts - Complex Zod validation
  • _example-async.ts - Async operations & error handling

Optional Utilities (in src/utils/):

  • mcp-helpers.ts - Response formatting helpers
  • validation.ts - Reusable Zod schemas

Test Utilities (in test/utils/):

  • test-utils.ts - Testing helpers for Vitest

Tool Development Workflow

  1. Scaffold (automates the forgettable):
   mcp-server-kit add tool my_tool --description "Tool description"
  1. Implement (focus on logic):

- Define Zod schema for parameters - Implement tool handler - Use utilities if helpful (optional)

  1. Test (validate correctness):
   npm run test:unit         # Fast unit tests
   npm run test:integration  # End-to-end tests
  1. Validate (catch issues):
   mcp-server-kit validate

Common Patterns

Simple Tool (No Validation)
export function registerMyTool(server: McpServer): void {
  server.tool("my_tool", "Description", {}, async () => {
    return {
      content: [{ type: "text", text: "result" }],
    };
  });
}
Tool with Parameters
const MyParamsSchema = z.object({
  input: z.string().describe("Input parameter"),
  limit: z.number().int().positive().default(10).describe("Max results"),
});

export function registerMyTool(server: McpServer): void {
  server.tool("my_tool", "Description", MyParamsSchema.shape, async ({ input, limit }) => {
    // Implementation
    return {
      content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
    };
  });
}
Error Handling
async (params) => {
  try {
    const result = await someAsyncOperation(params);
    return {
      content: [{ type: "text", text: JSON.stringify(result) }],
    };
  } catch (error) {
    // Return error, don't throw
    return {
      content: [{ type: "text", text: JSON.stringify({ error: true, message: ... }) }],
      isError: true,
    };
  }
}

Testing Patterns

import { describe, it, expect } from "vitest";
import { createMockServer, expectToolSuccess, parseToolResponse } from "../../utils/test-utils.js";
import { registerMyTool } from "../../../src/tools/my-tool.js";

describe("My Tool", () => {
  it("should handle valid input", async () => {
    const server = createMockServer();
    registerMyTool(server);

    const response = await expectToolSuccess(server, "my_tool", { input: "test" });
    const data = parseToolResponse(response);

    expect(data).toEqual({ result: "test" });
  });
});

Validation Helpers

Use reusable schemas from src/utils/validation.ts:

import { urlSchema, paginationParams, dateRangeParams } from "../utils/validation.js";

const MyParamsSchema = z.object({
  url: urlSchema.describe("API endpoint"),
  ...paginationParams(50, 10),
  ...dateRangeParams(),
});

Response Helpers

Optional helpers from src/utils/mcp-helpers.ts:

import { createToolResponse, createErrorResponse } from "../utils/mcp-helpers.js";

// Simple response
return createToolResponse({ status: "ok" });

// Error response
return createErrorResponse(error, "Operation failed");

Best Practices for Agents

✅ DO:

  • Use mcp-server-kit add tool for scaffolding
  • Implement tool logic (the creative part)
  • Write unit tests using test utilities
  • Run mcp-server-kit validate before committing
  • Check _example-*.ts files when stuck

❌ DON'T:

  • Manually create/register tool files (use CLI)
  • Forget error handling in async operations
  • Throw errors in tool handlers (return error responses)
  • Skip validation of user inputs (use Zod)
  • Forget to update tests when changing tools

Documentation

License

MIT

工具与能力

工具数量

2

资源数量

0

提示词数量

0

能力标签

MCP服务器TypeScript本地部署工具开发框架AI代理工具自动化脚本CloudflareWorkers

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 只提供 2 个工具,职责集中,接入后不容易误操作。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Unanet API MCP

MCP World · 本页

2未说明未标注1 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Unanet API MCP 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

Unanet API MCP 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

Unanet API MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Unanet API MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Unanet API MCP 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP