MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

GitHub Action to test MCP servers in CI — protocol compliance, schema validation, tool smoke-testing

创建于 3/29/2026
更新于 about 7 hours ago
Repository documentation and setup instructions

action-mcp-test

GitHub Action to test MCP (Model Context Protocol) servers in CI. Protocol compliance, schema validation, and tool smoke-testing in a single step.

MCP Compliance

Usage

- uses: renezander030/action-mcp-test@v1
  with:
    command: 'node dist/server.js'  # stdio transport
- uses: renezander030/action-mcp-test@v1
  with:
    url: 'http://localhost:3000/mcp'  # Streamable HTTP transport

What it tests

| Category | Tests | Description | |----------|-------|-------------| | Lifecycle | server_connect, server_info, ping | Connection, handshake, server metadata | | Tools | list_tools, schema_validation, unknown_tool_error | Tool discovery, JSON Schema validation, error handling | | Resources | list_resources | Resource enumeration and structure | | Prompts | list_prompts | Prompt enumeration and structure |

Tool smoke-testing

Create mcp-test.json in your repo root:

{
  "fixtures": [
    {
      "tool": "get_weather",
      "args": { "city": "Berlin" },
      "expect": {
        "success": true,
        "outputContains": "temperature"
      }
    }
  ]
}
- uses: renezander030/action-mcp-test@v1
  with:
    command: 'node dist/server.js'
    config: 'mcp-test.json'

Inputs

| Input | Required | Default | Description | |-------|----------|---------|-------------| | command | One of command/url | - | Start command for stdio transport | | url | One of command/url | - | URL for Streamable HTTP transport | | config | No | mcp-test.yml | Path to test fixtures config | | timeout | No | 30 | Timeout in seconds | | skip | No | - | Categories to skip: lifecycle,tools,resources,prompts |

Outputs

| Output | Description | |--------|-------------| | passed | Number of tests passed | | failed | Number of tests failed | | score | Compliance score (0-100) | | report | Path to JSON test report |

Job Summary

The action writes a formatted test report to the GitHub Job Summary with pass/fail table and compliance badge.

License

MIT

快速设置
此服务器的安装指南

安装包 (如果需要)

npx @modelcontextprotocol/server-action-mcp-test

Cursor 配置 (mcp.json)

{ "mcpServers": { "renezander030-action-mcp-test": { "command": "npx", "args": [ "renezander030-action-mcp-test" ] } } }