
alan-thegentleman/gentleman-book-mcp 是从 https://github.com/alan-thegentleman/gentleman-book-mcp. 导入的 MCP 服务器候选人。
概览
alan-thegentleman/gentleman-book-mcp 是从 https://github.com/alan-thegentleman/gentleman-book-mcp. 导入的 MCP 服务器候选人。
概述(AI 翻译)
让AI助手直接访问《绅士编程手册》
特色 • 安装 • 配置 • 使用情况 • 西班牙语
这是什么?
这是一个MCP(模型上下文协议)服务器,允许像Claude这样的AI助手阅读、搜索并理解《绅士编程手册》的内容。
可以把它看作是给你的AI助手一条直接通往18章软件架构知识、最佳实践和开发智慧的通道。
特色
🔧 第一关:基础工具
| 工具 | 描述 |
|---|---|
list_chapters |
列出所有18章及元数据 |
read_chapter |
阅读任何章节或特定章节 |
search_book |
基于关键词的搜索涵盖所有内容 |
get_book_index |
完整目录 |
📦 第二关:资源与提示
| 类型 | 姓名 | 描述 |
|---|---|---|
| 资源 | book://index/es |
西班牙语目录 |
| 资源 | book://index/en |
英文目录 |
| 提示 | explain_concept |
解释书中的任何概念 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
📚 Gentleman Book MCP Server
Give AI assistants direct access to the Gentleman Programming Book
Features • Installation • Configuration • Usage • Español
What is this?
This is an MCP (Model Context Protocol) server that allows AI assistants like Claude to read, search, and understand content from the Gentleman Programming Book.
Think of it as giving your AI assistant a direct line to 18 chapters of software architecture knowledge, best practices, and development wisdom.
Features
🔧 Level 1: Basic Tools
| Tool | Description |
|---|---|
list_chapters |
List all 18 chapters with metadata |
read_chapter |
Read any chapter or specific section |
search_book |
Keyword-based search across all content |
get_book_index |
Complete table of contents |
📦 Level 2: Resources & Prompts
| Type | Name | Description |
|---|---|---|
| Resource | book://index/es |
Spanish table of contents |
| Resource | book://index/en |
English table of contents |
| Prompt | explain_concept |
Explain any concept from the book |
| Prompt | compare_patterns |
Compare architectural patterns |
| Prompt | summarize_chapter |
Get chapter summaries |
🧠 Level 3: Semantic Search (AI-Powered)
| Tool | Description |
|---|---|
semantic_search |
Natural language search using embeddings |
build_semantic_index |
Build the vector index |
semantic_status |
Check semantic engine status |
Supports both OpenAI and Ollama for embeddings generation.
Installation
Prerequisites
- Go 1.21 or higher
- The Gentleman Programming Book cloned locally
Build from source
# Clone this repository
git clone https://github.com/Alan-TheGentleman/gentleman-book-mcp.git
cd gentleman-book-mcp
# Build the binary
go build -o bin/gentleman-book-mcp ./cmd/server
# The binary is now at ./bin/gentleman-book-mcp
Verify installation
安装
npx @anthropic-ai/mcp-inspector ./bin/gentleman-book-mcp配置
{
"mcpServers": {
"gentleman-book": {
"command": "/absolute/path/to/gentleman-book-mcp",
"env": {
"BOOK_PATH": "/path/to/gentleman-programming-book/src/data/book"
}
}
}
}