界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

mcp-and-services

mcp-and-services

【开发与工程】Configure and troubleshoot LEANN's local MCP stdio server, Claude and OpenClaw clients, and read-only HTTP search service.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: mcp-and-services description: "Configure and troubleshoot LEANN's local MCP stdio server, Claude and OpenClaw clients, and read-only HTTP search service." disable-model-invocation: true metadata: disco-role: operating license: MIT

LEANN MCP and Services

Use this sub-skill when the task is about leann_mcp, MCP JSON-RPC tools, Claude Code/Desktop, OpenClaw integration, or leann serve.

Route the task

  1. For MCP lifecycle, exact tool schemas, result/error envelopes, and direct protocol probes, read MCP protocol and tools.
  2. For Claude or OpenClaw registration, project working directories, and the separate leann-memory identity, read client and OpenClaw setup.
  3. For HTTP endpoints, request/response models, host/port controls, and exposure boundaries, read HTTP service.
  4. For startup, protocol, index, manifest, path, or network failures, use the decision table in troubleshooting.
  5. To generate a parseable MCP client configuration or a reviewed HTTP command without launching anything, run python scripts/generate_service_config.py --help from this directory, or invoke that script by its path from any working directory.

Operating rules

  • Treat MCP as line-delimited JSON-RPC over stdio. Reserve stdout for one JSON response per line; send diagnostics to stderr.
  • Run the MCP child and HTTP service from the project root that owns .leann/indexes/. Index names are project-relative on the build, status, and HTTP paths even though leann_list can discover registered projects.
  • Keep the default HTTP bind at 127.0.0.1. The service has no built-in authentication or TLS; require an explicit deployment control before any non-loopback bind.
  • Assume tools can read indexed local files and return passage text, metadata, and paths. Minimize filesystem permissions and never expose private indexes to an untrusted client or network.
  • Do not place secrets in generated MCP JSON. Embedding or language-model credentials belong to the embeddings-and-chat sub-skill.

Boundaries

  • Slack/Twitter content acquisition and reader behavior: rag-applications.
  • Search quality, filters, and index lifecycle semantics: api-and-indexing.
  • General CLI build/watch/daemon operations: cli-operations.
  • Embedding/LLM provider setup and credentials: embeddings-and-chat.
我的收藏