Litefuse Docs MCP Server
Litefuse Docs MCP server 把 Litefuse 文档暴露给 AI agent 使用。
核心使用场景:通过 Cursor(或其他 AI Coding Agent)自动把 Litefuse Tracing 集成进你的代码库,详见 快速开始,其中包含详细说明和示例 prompt。
这是 Litefuse 文档的公开 MCP server。我们还提供了一个需要鉴权的 MCP server,用于与 Litefuse 数据平台的其他部分集成(文档)。
安装
Add Litefuse Docs MCP to Cursor via the one-click install:
Manual configuration
Add the following to your mcp.json:
{
"mcpServers": {
"litefuse-docs": {
"url": "https://litefuse.ai/api/mcp"
}
}
}关于
- Endpoint:
https://litefuse.ai/api/mcp - Transport:
streamableHttp - 鉴权:无
- 工具:
searchLitefuseDocs:对 Litefuse 文档进行语义搜索(RAG),返回从相关文档中合成的简明回答。适用于较宽泛的问题;针对具体页面更建议使用 getLitefuseDocsPage。getLitefuseDocsPage:获取某个 Litefuse 文档页面的原始 Markdown。可传入文档路径(如/docs/observability/overview)或完整的https://litefuse.aiURL。适用于具体页面、集成或代码示例。getLitefuseOverview:通过获取 llms.txt 得到一份高层级的索引。建议在会话开始时调用一次,用于发现关键的文档入口。避免重复调用。
参考
- MCP server 的实现:mcp.ts
- 基于该 MCP server 的 Agent 化接入
- Ask AI:基于 Litefuse 文档的 RAG 聊天,回答你的问题
- litefuse.ai/llms.txt:包含页面标题与详细子文件链接的精简概览(llms-docs.txt、llms-integrations.txt、llms-self-hosting.txt)
REST 接口
底层的文档搜索(searchLitefuseDocs 工具)也作为独立的 REST API 提供,地址为 https://litefuse.ai/api/search-docs。
curl "https://litefuse.ai/api/search-docs?query=Litefuse+Docs+MCP+Server"当你需要在 MCP 之外使用轻量级语义搜索时,可以直接调用这个接口。
这个页面对你有帮助吗?