SIN-Code MCP Server Builder Skill
Scaffolds new MCP servers for the OpenSIN-Code ecosystem with templates for Python, Node, Go; provides tools to add tools, test, validate, register, publish, and audit servers.
README
⚠️ DEPRECATED — This skill has been merged into sin-code-bundle
As of v0.9.3 (2026-06-06), this standalone skill is now a subcommand of the
sin-code-bundleCLI:
Old New standalone skill sin mcp-serverMigrate now:
pip install --upgrade sin-code-bundleThis repo is archived; no further updates will be made. See issue #29 for the consolidation rationale.
SIN-Code-MCP-Server-Builder-Skill
Meta-skill that scaffolds new MCP servers for the OpenSIN-Code ecosystem. Supports
python-fastmcp,node-mcp, andgo-mcptemplates — 8 FastMCP tools, 113 tests, 100% CoDocs.
What it does
The OpenSIN-Code ecosystem runs 30+ MCP servers (sin-websearch, sin-scheduler, sin-marketplace, sin-slash, sin-goal-mode, sin-infisical, …). Every one of them followed the same canonical pattern: pyproject.toml + src/<pkg>/mcp_server.py + tests/ + *.doc.md + ceo-audit.yml. This meta-skill codifies that pattern — give it a name + a list of tools and you get a fully scaffolded, CoDocs-compliant, ceo-audit-ready MCP server in one tool call.
Features
- 3 templates —
python-fastmcp(FastMCP),node-mcp(official SDK),go-mcp(go-sdk) - 8 FastMCP tools — scaffold, template_list, add_tool, test, register, validate, publish, audit
- 113 tests covering scaffolding, template rendering, tool addition, test generation, registration, validation, MCP server
- 100% CoDocs — every
.pyhas a sibling.doc.md - 6 bash scripts —
mcp-scaffold.sh,mcp-add-tool.sh,mcp-test.sh,mcp-register.sh,mcp-validate.sh,mcp-publish.sh - ceo-audit workflow with grade gate B
Quick Start
git clone https://github.com/OpenSIN-Code/SIN-Code-MCP-Server-Builder-Skill.git
cd SIN-Code-MCP-Server-Builder-Skill
pip install -e ".[dev]"
Run the MCP server
sin-mcp-server-builder-mcp
# or
python -m sin_mcp_server_builder.mcp_server
Scaffold a new MCP server
./scripts/mcp-scaffold.sh -n "My Tool" -d "Does cool things" -T python-fastmcp -o "do_x,do_y"
Validate a freshly scaffolded server
./scripts/mcp-validate.sh ./my-new-tool
MCP Tools
| Tool | Purpose |
|---|---|
mcp_scaffold |
Scaffold a new MCP server from a spec |
mcp_template_list |
List available templates |
mcp_tool_add |
Add a new tool to an existing MCP server (preserves CoDocs) |
mcp_tool_test |
Generate pytest tests for a tool |
mcp_register |
Register the server in opencode.json |
mcp_validate |
Validate tools (type hints, docstrings, CoDocs) |
mcp_publish |
Publish to PyPI / npm |
mcp_audit |
Run ceo-audit (47 quality gates) |
Architecture
MCP Client (OpenCode, Claude, …)
↓ FastMCP (stdio)
mcp_server.py
↓
┌──────────────────────────────────────────────┐
│ Scaffolder │ ToolAdder │ TestGenerator │
│ Templates │ Registrar │ Validator │
│ Publisher │ Auditor │
└──────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────┐
│ python-fastmcp / node-mcp / go-mcp templates │
│ (CoDocs + ceo-audit.yml + tests + scripts) │
└──────────────────────────────────────────────┘
Project Structure
SIN-Code-MCP-Server-Builder-Skill/
├── src/sin_mcp_server_builder/
│ ├── __init__.py — Package entry, public API
│ ├── mcp_server.py — FastMCP server (8 tools)
│ ├── scaffolder.py — Scaffold new servers from a spec
│ ├── templates.py — Jinja2 engine + template registry
│ ├── tool_adder.py — Add tools to existing servers
│ ├── test_gen.py — Generate pytest tests
│ ├── registrar.py — Update opencode.json
│ ├── validator.py — Static validator (47 gates subset)
│ ├── publisher.py — PyPI / npm publish
│ └── auditor.py — ceo-audit runner
├── templates/
│ ├── python-fastmcp/ — Python + FastMCP
│ ├── node-mcp/ — Node.js + @modelcontextprotocol/sdk
│ └── go-mcp/ — Go + go-sdk
├── scripts/ — Bash CLI wrappers
├── tests/ — 113 tests
├── .github/workflows/ceo-audit.yml
├── pyproject.toml
├── README.md
├── SKILL.md
└── AGENTS.md
Testing
pytest -q
pytest --cov=src/sin_mcp_server_builder --cov-report=term-missing
CoDocs
Every .py file has a sibling .doc.md companion. Run sin codocs check to verify.
CI
The ceo-audit.yml workflow runs on every push to main and:
- Installs the package + dev deps
- Runs
pytest -q - Lints with
black+ruff - Type-checks with
mypy - Runs
sin ceo-audit run . --profile=QUICK --grade=B
License
MIT — OpenSIN-Code
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。