Skip to main content
Glama

mofox-docs-mcp

Neo-MoFox 공식 문서 MCP 서버: Model Context Protocol을 통해 MoFox-Bot-Docs 문서 사이트의 검색 및 읽기 기능을 제공하여, Claude, Cursor, Neo-MoFox 등의 MCP 클라이언트가 공식 문서를 직접 검색하고 읽을 수 있습니다.

데이터 소스는 문서 사이트 JSON API(https://docs.mofox-sama.com/api/docs/*)이며, MoFox 플러그인 마켓의 mofox_docs 플러그인과 동일한 llms.json 인덱스를 사용하므로 동작이 동일합니다.

기능

도구

도구

설명

search_docs(query, limit?, offset?)

키워드로 문서를 검색합니다. 쿼리를 공백으로 단어를 분리하고, '일치하는 키워드 수'를 기준으로 내림차순으로 반환합니다 (예: "Windows 部署 安装"이면 guides/deployment/deployment_guide가 우선 매칭됩니다). 페이지네이션을 지원합니다.

list_docs(limit?, offset?)

문서를 나열합니다. section 기준으로 정렬하며, 배포 가이드(guides/deployment)가 가장 먼저 옵니다. 각 항목에는 title / description / preview / section이 포함됩니다.

get_doc(doc_id)

지정한 문서의 전체 본문(텍스트)을 가져옵니다. doc_id 형식은 guides/deployment/deployment_guide와 같습니다.

리소스

리소스

설명

mofox://docs

전체 인덱스(llms.json)로, 각 문서의 제목 / 소개 / 본문 미리보기를 포함합니다.

mofox://docs/{id}

단일 문서의 전체 내용 (예: mofox://docs/guides/configuration/bot_config_guide).

Related MCP server: mdbook-mcp-server

빠른 시작

방법 1: npx로 직접 실행 (권장)

npx -y mofox-docs-mcp

방법 2: 클론 / 로컬 빌드

npm install
npm run build
npm start

Neo-MoFox 연동

config/mcp.toml을 편집합니다:

[mcp.stdio_servers.mofox-docs]
command = "npx"
args = ["-y", "mofox-docs-mcp"]
instructions = "提供 Neo-MoFox 官方文档的搜索与阅读功能,当用户询问框架功能、配置、插件开发、API 用法时使用"

Neo-MoFox를 재시작하면 적용됩니다.

기타 MCP 클라이언트

{
  "mcpServers": {
    "mofox-docs": {
      "command": "npx",
      "args": ["-y", "mofox-docs-mcp"]
    }
  }
}

설정 옵션

매개변수

설명

기본값

--base-url <url>

문서 사이트 주소

https://docs.mofox-sama.com

--timeout <초>

요청 타임아웃

30

--cache-ttl <초>

인덱스 캐시 유지 시간 (llms.json)

300

같은 이름의 환경 변수도 지원합니다: MOFOX_DOCS_BASE_URL, MOFOX_DOCS_TIMEOUT, MOFOX_DOCS_CACHE_TTL.

개발

npm run build   # 编译到 dist/
npm start       # 运行

License

MIT

Available Tools

3 tools
get_docA

获取指定文档的完整正文(纯文本)。doc_id 形如 guides/deployment/deployment_guide,可从 search_docs / list_docs 结果的 id 字段获取。

Inputs: doc_id (required).

list_docsA

列出 Neo-MoFox 官方文档。按 section 排序,部署指南(guides/deployment)排最前,每篇含 title / description / preview / section。支持 offset 分页。

Inputs: limit, offset.

search_docsA

按关键词检索 Neo-MoFox 官方文档。查询按空白拆分为多个关键词,按「命中关键词数量」降序返回(命中全部关键词的文档排最前,至少命中一个即返回)。匹配标题 / 简介 / 正文预览 / 分类 / id / 路径。结果不含完整正文,需要全文时再用 get_doc 获取。

Inputs: query (required), limit, offset.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: search_docs finds relevant docs by keywords, list_docs provides browsable pagination, and get_doc returns complete content for a specific doc. There is no meaningful overlap between them.

    Naming Consistency5/5

    All tool names follow a clean verb_noun pattern: search_docs, list_docs, and get_doc. The slight singular/plural difference between docs and doc is natural and does not create confusion.

    Tool Count5/5

    With only three tools, the server covers the core documentation workflow of search, browse, and retrieve without redundancy. This is an appropriately minimal surface for a docs-focused server.

    Completeness5/5

    The tools form a complete documentation lifecycle: discover content through search and listing, then fetch the full text via get_doc. There are no obvious gaps, as the server's documented purpose is fully supported.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers