Agent Skills
› n8n-io/n8n
› n8n:setup-mcps
n8n:setup-mcps
GitHub用于在OpenCode中为n8n开发配置MCP服务器。通过检查现有配置、询问用户选择并写入JSON文件,完成Linear、Notion等工具的集成设置与OAuth认证引导。
触发场景
用户输入/setup-mcps命令
用户请求为n8n设置MCP服务器
安装
npx skills add n8n-io/n8n --skill n8n:setup-mcps -g -y
SKILL.md
Frontmatter
{
"name": "n8n:setup-mcps",
"description": "Configure MCP servers for n8n development in OpenCode. Use when the user says \/setup-mcps or asks to set up MCP servers for n8n."
}
MCP Setup for n8n Development in OpenCode
Configure commonly used MCP servers for n8n engineers using OpenCode MCP config.
Instructions
- Check which MCPs are already configured by running, if available:
opencode mcp list
Parse by URL or command, not just server name. Skip any MCP whose URL is already present.
Known MCP URLs:
- Linear:
https://mcp.linear.app/mcp - Notion:
https://mcp.notion.com/mcp - Context7:
https://mcp.context7.com/mcp - Figma:
https://mcp.figma.com/mcp
- Ask the user which unconfigured MCPs they want to add. If all are already configured, tell the user and stop.
| Option | Label | Description |
|---|---|---|
| Linear | Linear |
Linear ticket management with OAuth |
| Notion | Notion |
Notion workspace integration with OAuth |
| Context7 | Context7 |
Library documentation lookup |
| Figma | Figma |
Figma design integration with OAuth |
- Ask once whether to install in user or project scope.
| Scope | Config path | When to use |
|---|---|---|
| user | ~/.config/opencode/opencode.json |
Default. Available in all projects. |
| project | ./opencode.json |
Only when the user explicitly wants repo-local config. |
- Add the selected MCP entries under the
mcpobject in the selected config. Preserve existing config keys and existing MCP entries.
{
"mcp": {
"linear": {
"type": "remote",
"url": "https://mcp.linear.app/mcp",
"enabled": true
},
"notion": {
"type": "remote",
"url": "https://mcp.notion.com/mcp",
"enabled": true
},
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": true
},
"figma": {
"type": "remote",
"url": "https://mcp.figma.com/mcp",
"enabled": true
}
}
}
- After editing config, tell the user to authenticate OAuth-backed servers with:
opencode mcp auth <server-name>
Use the configured server names, for example linear, notion, or figma.
Context7 does not require OAuth by default.
版本历史
- c31d0e5 当前 2026-08-20 19:08


