跳到正文
cccskills
免费在 GitHub 公开

mcp-server

Guide for creating new MCP server integrations

中文简介正在准备中。当前显示原文说明。

集成工具Figman8n
查看安装方法

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

MCP Server Creation Guide

Use this skill when creating a new MCP server integration.

MCP Folder Structure

MCPs live in: ~/.cursor/projects/<project>/mcps/<server-name>/

mcps/
├── user-notion/
│   └── tools/
│       ├── API-retrieve-a-page.json
│       └── ...
├── cursor-ide-browser/
│   └── tools/
│       ├── browser_navigate.json
│       └── ...
└── user-n8n-mcp/
    └── tools/
        └── ...

Tool Descriptor Format

Each tool is a JSON file:

{
  "name": "tool-name",
  "description": "What this tool does",
  "arguments": {
    "type": "object",
    "properties": {
      "param1": { "type": "string", "description": "..." }
    },
    "required": ["param1"]
  }
}

Usage Pattern

  1. Read tool descriptor before calling
  2. Use CallMcpTool with server, toolName, arguments
  3. Handle response appropriately

Example Call

CallMcpTool:
  server: "user-notion"
  toolName: "API-retrieve-a-page"
  arguments: { "page_id": "abc123" }

Existing MCPs Reference

MCPCapabilities
user-notionPage/block CRUD, search, comments
cursor-ide-browserNavigation, clicks, screenshots, console
user-n8n-mcpWorkflow search, details, execution
user-context7Library docs lookup
figmaDesign specs, code generation from frames

Creating a New MCP

  1. Create folder: mcps/<server-name>/tools/
  2. Add tool descriptors as JSON files
  3. Configure server in ~/.cursor/mcp.json
  4. Restart Cursor (Cmd+Shift+P > "Reload Window")
  5. Test with CallMcpTool

Authentication Patterns

Pattern 1: API Token (env block)

For MCPs that use API keys (Notion, n8n):

"mcp-name": {
  "command": "npx",
  "args": ["-y", "@package/mcp-server"],
  "env": {
    "API_KEY": "your-token-here"
  }
}

Pattern 2: URL-based (no auth)

For MCPs that connect to local servers (Figma desktop):

"mcp-name": {
  "url": "http://127.0.0.1:PORT/mcp"
}

Pattern 3: OAuth (remote URL)

For MCPs that use browser OAuth (Figma remote):

"mcp-name": {
  "url": "https://service.com/mcp"
}

After adding, click "Connect" in Cursor MCP settings to authorize.

Troubleshooting

Installation loops infinitely:

  • Cancel and manually edit ~/.cursor/mcp.json
  • Add config block directly, then restart Cursor

MCP not appearing:

  • Check JSON syntax is valid
  • Verify package name is correct
  • Restart Cursor after changes

Best Practices

  • Always read tool schema before calling
  • Handle errors gracefully
  • Use descriptive tool names
  • Document required vs optional parameters

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ar-aging

免费

Produce an accounts-receivable aging report and surface overdue invoices for a Well workspace. Use when the user asks who owes them money, an AR aging report, overdue invoices, days sales outstanding (DSO), or which customers to chase.

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Iterate until success or limit, composing existing skills with Jidoka integration

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Build a balance sheet (bilan) from a Well workspace. Use when the user asks for a balance sheet, bilan, assets/liabilities/equity, or financial position at a point in time.

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Generate and maintain BPMN 2.0 diagrams linked to Gherkin scenarios

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Forecast cash flow and runway for a Well workspace from booked invoices and collected bank transactions. Use when the user asks for a cash-flow forecast, runway, how long until they run out of cash, projected balance, or expected inflows/outflows.

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Review code changes against hard rules and conventions

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

查看 WellApp-ai 的全部技能

报告此技能的问题