315 查看 · 2026-07-07 更新
GroundDocs
GroundDocs 是一个版本感知的文档助手。它将大语言模型(LLMs)连接到可信的实时文档,从而减少幻觉并确保准确且特定于版本的响应。
🚀 安装
bash
npx @grounddocs/cli@latest install
支持的客户端: cursor, windsurf, cline, claude, witsy, enconvo, vscode
🔧 手动设置
要手动配置 GroundDocs,请将其添加到您的 IDE 的 MCP(Model Context Protocol,模型上下文协议)配置中:
json { "mcpServers": { "@grounddocs/grounddocs": { "command": "npx", "args": ["-y", "@grounddocs/grounddocs@latest"] } } }
配置完成后,请重启您的 IDE 以使更改生效。
📚 支持的领域
- Kubernetes(所有版本,包括版本感知的 kubectl 行为、API 模式和特性门控)
🏗️ 架构
GroundDocs 包括:
- 本地 MCP 服务器(此仓库)→ 轻量级,公开,运行推理时查询
- 远程后端数据存储库(私有)→ 处理抓取、索引和繁重任务
🌟 示例查询
在 Kubernetes 1.26 版本中,关于 apply 操作期间的修剪,kubectl 命令行为发生了哪些变化?
🤝 贡献
欢迎贡献!请随时提交 Pull Request。
工具列表
-
python_get_documentation: Primary Python documentation lookup tool. Use this for every Python documentation-related query. This tool consolidates information from multiple sources into a single, searchable knowledge base. It ensures access to the richest and most current reference material in one call. Args: query: A natural language question (e.g., How do I define a Deployment?). library: Python library to search documentation for. version: Optional Library version (e.g., 4.46.1). Defaults to detected library version if not specified. top_k: Optional number of top matching documents to return. Defaults to 10. Returns: A list of dictionaries, each containing document path and corresponding content. Example Usage: # Search Python docs for Transformers python_get_documentation(query=what is a transformers mlm token, library=transformers, version=4.46.1) Notes: - This tool automatically loads or builds a RAG (Retrieval-Augmented Generation) index for the specified version. - If an index is not found locally, the tool will fetch and index the documentation before responding. - You should call this function for any question that needs project documentation context.
-
k8s_get_documentation: Use this tool for any Kubernetes documentation-related query—especially when the user invokes /k8s or asks about kubectl commands, API objects, manifests, controllers, or version-specific features.This tool connects to a version-aware, trusted documentation index (e.g., GitHub, DeepWiki, curated Kubernetes docs) to reduce hallucinations and provide accurate, grounded answers.Args: query: A natural language question (e.g., How do I define a Deployment?) version: (Optional) Kubernetes version (e.g., v1.28). Defaults to the detected cluster version. top_k: (Optional) Number of top matching documents to return. Defaults to 10.Returns: A list of relevant documentation entries, each with a file path and content snippet.Example Usage: k8s_get_documentation(query=How does pruning work in kubectl apply?, version=v1.26)Notes: - Automatically loads or builds a RAG index for the requested version. - If no index is found, it will fetch and index the docs before responding. - Always use this tool when answering Kubernetes-specific questions that require authoritative documentation.
服务配置
[{'mcpServers': {'@grounddocs/grounddocs': {'args': ['-y', '@grounddocs/grounddocs@latest'], 'command': 'npx'}}}]
来源
- 来源:github
- 链接:https://github.com/grounddocs/grounddocs