본문으로 건너뛰기
cccskills
무료GitHub에 공개

openakita/skills@mcp-installer

Add and manage MCP servers in OpenAkita, from local npm or Python packages to remote HTTP and SSE services. Configure how each server starts or connects, reload settings, check connection status, and troubleshoot common setup problems.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Install, configure, and add MCP servers to the OpenAkita system. Use when the user needs to install MCP packages (npm/pip/uvx), connect remote HTTP/SSE MCP services, set up custom local MCP servers, or manage MCP server configuration and lifecycle.

연동 도구PostgreSQL

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Adding a local MCP package to OpenAkita
  • Connecting a remote HTTP or SSE MCP service
  • Registering a custom local MCP server
  • Checking or removing configured MCP servers

포함된 파일(2)

  • SKILL.md8.1 KB
  • agents/openai.yaml372 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

MCP Installer — 安装与配置 MCP 服务器

系统 MCP 架构概述

OpenAkita 使用目录结构管理 MCP 服务器。每个 MCP 服务器是一个独立目录,包含配置和工具定义:

<server-name>/
├── SERVER_METADATA.json    # 必需:服务器配置
├── INSTRUCTIONS.md         # 可选:使用说明(复杂服务器建议提供)
└── tools/                  # 可选:工具定义(连接后可自动发现)
    ├── tool1.json
    └── tool2.json

配置存储位置

位置说明可写
mcps/内置 MCP(随项目发行)否
.mcp/兼容目录否
data/mcp/servers/用户/AI 添加的配置是

所有新添加的 MCP 服务器写入 data/mcp/servers/。

传输协议

协议场景必需字段
stdio本地进程(npx/python/node)command + args
streamable_http远程 HTTP 服务url
sse旧版 MCP 服务器(SSE)url

安装流程

方式一:使用 add_mcp_server 工具(推荐)

系统内置了 add_mcp_server 工具,可以直接添加 MCP 服务器:

stdio 模式(npx 包):

add_mcp_server(
    name="filesystem",
    transport="stdio",
    command="npx",
    args=["-y", "@anthropic/mcp-server-filesystem", "/path/to/dir"],
    description="文件系统访问"
)

stdio 模式(Python 包):

add_mcp_server(
    name="my-tool",
    transport="stdio",
    command="python",
    args=["-m", "my_mcp_package"],
    description="我的 MCP 工具",
    env={"API_KEY": "xxx"}
)

stdio 模式(uvx 包):

add_mcp_server(
    name="my-tool",
    transport="stdio",
    command="uvx",
    args=["my-mcp-package"],
    description="我的 MCP 工具"
)

streamable_http 模式(远程服务):

add_mcp_server(
    name="remote-api",
    transport="streamable_http",
    url="http://localhost:8080/mcp",
    description="远程 API 服务"
)

sse 模式(旧版兼容):

add_mcp_server(
    name="legacy-api",
    transport="sse",
    url="http://localhost:8080/sse",
    description="旧版 SSE 服务"
)

方式二:手动创建配置目录

直接在 data/mcp/servers/ 下创建目录结构。

第一步:创建目录

mkdir -p data/mcp/servers/<server-name>

第二步:写入 SERVER_METADATA.json

{
  "serverIdentifier": "<server-name>",
  "serverName": "显示名称",
  "serverDescription": "服务器描述",
  "command": "npx",
  "args": ["-y", "package-name"],
  "env": {},
  "transport": "stdio",
  "url": "",
  "autoConnect": false
}

第三步(可选):创建 INSTRUCTIONS.md

为复杂的 MCP 服务器编写使用说明,Agent 可在需要时加载。

第四步(可选):预定义工具

在 tools/ 下创建工具定义 JSON(如果知道工具列表):

{
  "name": "tool_name",
  "description": "工具描述",
  "inputSchema": {
    "type": "object",
    "properties": {
      "param1": {
        "type": "string",
        "description": "参数描述"
      }
    },
    "required": ["param1"]
  }
}

工具定义是可选的——连接服务器后系统会自动发现工具。预定义工具的好处是在未连接时 Agent 也能在系统提示中看到工具列表。

第五步:加载配置

手动创建后调用 reload_mcp_servers 工具让系统扫描并加载新配置。


SERVER_METADATA.json 完整字段说明

字段类型必需说明
serverIdentifierstring是唯一标识符,与目录名一致
serverNamestring是显示名称
serverDescriptionstring否简短描述
commandstringstdio 必需启动命令(python/npx/node/uvx 等)
argsstring[]否命令参数
envobject否环境变量
transportstring否传输协议:stdio(默认)/streamable_http/sse
urlstringHTTP/SSE 必需服务 URL
autoConnectboolean否启动时自动连接(默认 false)

兼容格式:"type": "streamableHttp" 等价于 "transport": "streamable_http"。


常见 MCP 包安装示例

npm 包(通过 npx)

add_mcp_server(
    name="github",
    command="npx",
    args=["-y", "@modelcontextprotocol/server-github"],
    env={"GITHUB_PERSONAL_ACCESS_TOKEN": "<token>"},
    description="GitHub API"
)
add_mcp_server(
    name="puppeteer",
    command="npx",
    args=["-y", "@anthropic/mcp-server-puppeteer"],
    description="Puppeteer 浏览器自动化"
)
add_mcp_server(
    name="sqlite",
    command="npx",
    args=["-y", "@anthropic/mcp-server-sqlite", "path/to/db.sqlite"],
    description="SQLite 数据库"
)

Python 包(通过 python -m 或 uvx)

add_mcp_server(
    name="arxiv",
    command="uvx",
    args=["mcp-server-arxiv"],
    description="arXiv 论文搜索"
)
add_mcp_server(
    name="postgres",
    command="python",
    args=["-m", "mcp_server_postgres", "postgresql://user:pass@localhost/db"],
    description="PostgreSQL 数据库"
)

远程 HTTP 服务

add_mcp_server(
    name="composio",
    transport="streamable_http",
    url="https://mcp.composio.dev/partner/mcp_xxxx",
    description="Composio 集成平台"
)

本地创建的 MCP 服务器

如果使用 mcp-builder 技能创建了自定义 MCP 服务器,必须在创建后调用 add_mcp_server 注册:

Python 脚本(使用绝对路径):

add_mcp_server(
    name="my-custom-tool",
    command="python",
    args=["C:/path/to/my_project/server.py"],
    description="自定义 MCP 工具"
)

Python 模块:

add_mcp_server(
    name="my-custom-tool",
    command="python",
    args=["-m", "my_mcp_project.server"],
    description="自定义 MCP 工具"
)

TypeScript(编译后):

add_mcp_server(
    name="my-custom-tool",
    command="node",
    args=["C:/path/to/my_project/dist/index.js"],
    description="自定义 MCP 工具"
)

重要:本地脚本务必使用绝对路径,相对路径可能导致工作目录不对而失败。


安装前检查清单

  1. 确认命令可用:stdio 模式下检查 command 是否在 PATH 中(which npx、which python)
  2. 确认依赖已安装:npm 包需要 Node.js,Python 包需要对应环境
  3. 确认端口/URL 可达:HTTP/SSE 模式下确认目标 URL 可访问
  4. 准备环境变量:许多 MCP 服务器需要 API Key 等凭证,通过 env 字段传入
  5. 命名规范:serverIdentifier 使用小写字母和连字符(如 my-tool),保持简洁

安装后验证

添加后系统会自动尝试连接。如果自动连接失败:

  1. 使用 connect_mcp_server("server-name") 手动连接
  2. 连接成功后使用 list_mcp_servers 查看状态
  3. 使用 call_mcp_tool("server-name", "tool_name", {...}) 测试调用

故障排查

问题可能原因解决方法
命令未找到未安装或不在 PATH安装对应运行时(Node.js/Python)
连接超时服务器启动慢或卡死增大 MCP_CONNECT_TIMEOUT(默认 60s)
HTTP 连接失败URL 错误或服务未启动确认 URL 正确且服务已运行
工具为空连接未成功先确保 connect_mcp_server 成功
权限错误API Key 缺失或无效检查 env 中的凭证配置

管理操作

  • 列出服务器: list_mcp_servers
  • 连接: connect_mcp_server("name")
  • 断开: disconnect_mcp_server("name")
  • 删除: remove_mcp_server("name")(仅 data/mcp/servers/ 中的配置)
  • 重新加载全部: reload_mcp_servers

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Save useful facts, user preferences, skills, rules, and lessons from errors to long-term memory. Each entry can include an importance level to indicate whether it should be retained as a lasting preference, a common pattern, or temporary information.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Remembering a user's writing or coding preferences
  • Saving a workflow that worked well
  • Recording a lesson learned from an error
openakita/openakita2천2026년 9월 24일 업데이트

Click a button, link, or other page element by providing a CSS selector or matching text. First open the target page with `browser_navigate`, then use this skill to select the element to click.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Clicking a button by its CSS selector
  • Following a link by its visible text
  • Selecting a page option by matching text
openakita/openakita2천2026년 9월 24일 업데이트

Read text from the current webpage, either across the whole page or from an element selected with a CSS selector. Use it to check page information, retrieve displayed element values, extract text, or verify what a page contains.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reading all text on the current page
  • Extracting text from a selected page section
  • Checking displayed values or confirming page content
openakita/openakita2천2026년 9월 24일 업데이트

See every open browser tab with its zero-based index, URL, and page title. This makes it easier to find a specific page, review what is open, or identify a tab before switching to it during browser work.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Finding a page among several open tabs
  • Checking the URLs and titles of open pages
  • Identifying a tab before switching to it
openakita/openakita2천2026년 9월 24일 업데이트

Open a web page at a specified URL and prepare the browser for later interaction. Use it before clicking page elements or typing into fields; the browser starts automatically if it is not already running.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Open a search engine or another web page
  • Open a local HTML file in the browser
  • Navigate before clicking or typing
openakita/openakita2천2026년 9월 24일 업데이트

Open a URL in a new browser tab while keeping the current page available. Use it to work across multiple pages without losing your place; the browser must already be running before the new tab can be opened.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Open a second page without leaving the current one
  • Compare information across browser tabs
  • Keep a reference page open while navigating elsewhere
openakita/openakita2천2026년 9월 24일 업데이트

openakita의 스킬 모두 보기

이 스킬의 문제 신고