Slice.js Documentation MCP
Enables AI assistants to search, list, and retrieve documentation from the Slice.js official GitHub repository. It provides full-text search capabilities and can deliver individual doc pages or a complete documentation bundle for comprehensive LLM context.
README
Slice.js Documentation MCP
An MCP (Model Context Protocol) server that provides access to Slice.js documentation from the official GitHub repository. This server allows AI assistants and tools to query, search, and retrieve documentation seamlessly.
Features
- Dynamic Documentation Discovery: Automatically discovers and indexes all documentation files from the GitHub repo
- Intelligent Caching: Infinite session cache to minimize API requests and improve performance
- Full-Text Search: Search across all documentation with keyword matching
- Content Retrieval: Fetch specific documentation pages or the complete documentation bundle
- Lazy Initialization: Docs structure is loaded on-demand when first needed
Installation
Global Installation (Recommended)
npm install -g slicejs-mcp
Using npx (No Installation Required)
npx slicejs-mcp
Usage
The MCP server runs as a stdio-based service, perfect for integration with AI assistants and MCP-compatible tools.
Basic Usage
npx slicejs-mcp
Integration with MCP Clients
This server is designed to work with MCP-compatible clients. When launched, it exposes 4 tools:
Tools
1. list_docs
Returns a list of all available documentation sections and categories.
Parameters: None
Response: JSON array of documentation items with id, title, and path.
Example:
[
{
"id": "getting-started",
"title": "Getting Started",
"path": "markdown/getting-started.md"
}
]
2. search_docs
Searches across all documentation using keywords or phrases.
Parameters:
query(string, required): Search termmax_results(number, optional, default: 5): Maximum number of results
Response: JSON array of search results with snippets and metadata.
3. get_doc_content
Fetches the full content of specific documentation page(s).
Parameters:
doc_id(string or string[], required): Documentation ID(s) to fetchinclude_metadata(boolean, optional, default: false): Include additional metadata
Response: JSON object(s) with document content, title, and optional metadata.
4. get_llm_full_context
Fetches the complete documentation bundle (~2000 lines) for comprehensive LLM context.
Parameters: None
Response: Complete documentation text
Note: This consumes considerable tokens but provides all documentation in one request.
Examples
List all documentation
// Via MCP client
await callTool("list_docs", {});
Search for routing information
await callTool("search_docs", {
query: "routing",
max_results: 3
});
Get specific documentation
await callTool("get_doc_content", {
doc_id: "getting-started/routing"
});
Get full documentation context
await callTool("get_llm_full_context", {});
Architecture
- Source: Documentation fetched from https://github.com/VKneider/slicejs_docs
- Caching: Infinite session cache prevents redundant API calls
- Initialization: Lazy loading of document structure on first tool use
- Rate Limiting: Optimized to stay within GitHub API limits (60 req/hour)
Development
Prerequisites
- Node.js >= 18
- npm or yarn
Setup
git clone <repo>
cd slicejs-mcp
npm install
npm run build
Running Locally
npm start
# or
node dist/index.js
Testing with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js
Contributing
Contributions welcome! Please ensure:
- All tools maintain backward compatibility
- Cache behavior is preserved
- Error handling is robust
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。