York
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PROJECTS_DIR | Yes | Local project root directory. Required. | |
| ALLOWED_PROJECTS | No | Comma-separated list of allowed project names. Empty allows all projects. | |
| YORK_KNOWLEDGE_ROOT | No | Path where knowledge Markdown files are stored. | ./data |
| YORK_VECTOR_DB_PATH | No | Path to the LanceDB vector database. | ./data/lancedb |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {
"tasks": {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| save_knowledge_toolB | 儲存知識文件到專案知識庫 Args: project_name: 專案名稱 name: 知識主題或檔案名稱 content: 要儲存的內容(Markdown 格式) tags: 標籤列表(選填) framework: 所屬框架(選填,例如:Laravel, React) framework_layer: 框架層級(選填,例如:Controller, Service) code_type: 程式碼類型(選填,例如:logic, feature, guide) symbol_name: 主要符號名稱(選填,例如:UserController) related_files: 相關檔案列表(選填) context_description: 上下文描述(選填) Returns: 包含檔案路徑的字典 |
| read_knowledge_toolC | 讀取知識文件 Args: project_name: 專案名稱 name: 檔案名稱 Returns: 知識文件內容與 metadata |
| list_knowledge_toolB | 列出專案的所有知識文件 Args: project_name: 專案名稱 tag: 標籤過濾(選填) Returns: 知識文件資訊列表 |
| delete_knowledge_toolC | 刪除知識文件 Args: project_name: 專案名稱 name: 檔案名稱 Returns: 刪除結果 |
| search_knowledge_toolB | 搜尋知識文件內容(三路混合檢索:關鍵字 + 向量語意 + 全文內容) Args: project_name: 專案名稱 query: 主要搜尋查詢(任何語言) query_variants: 同義查詢的其他語言版本,例如 ["nearby area search", "近郊地區搜尋"] 提供越多語言版本,跨語言命中率越高 framework: 框架過濾(選填) framework_layer: 框架層級過濾(選填) code_type: 程式碼類型過濾(選填) symbol_name: 符號名稱過濾(選填) Returns: 搜尋結果與使用指引 |
| expand_context_toolA | 擴展 Chunk 上下文(Small-to-Big Retrieval) search_knowledge 命中某個 chunk 後,用此工具取得 該 chunk 的「前一段」與「後一段」完整內容, 補充搜尋結果的上下文脈絡。 Args: chunk_id: 搜尋結果 context.chunk_id parent_id: 搜尋結果 context.parent_id Returns: { "before": {id, header_path, content, preview} | null, "current": {id, header_path, content, preview}, "after": {id, header_path, content, preview} | null } |
| reindex_knowledge_toolB | 重建專案的向量索引 掃描知識庫中的所有 Markdown 檔案並重新同步 Args: project_name: 專案名稱 Returns: 處理結果統計 |
| get_project_knowledge_toolC | 取得專案的完整知識彙整 (friday-knowledge.md) Args: project_name: 專案名稱 Returns: 知識彙整內容(Markdown) |
| detect_project_structure_toolB | 掃描目前專案結構並產生建議的配置檔內容 (YAML) Args: project_path: 專案根目錄絕對路徑 project_name: 專案名稱 (用於生成配置) Returns: YAML 配置建議內容 |
| get_project_structure_toolB | 讀取專案目前的結構配置檔 (project.structure.yml) Args: project_name: 專案名稱 Returns: YAML 配置內容 |
| save_project_structure_toolB | 儲存或更新專案的結構配置檔 (project.structure.yml) Args: project_name: 專案名稱 content: YAML 配置內容 Returns: 執行結果訊息 |
| list_projects_toolA | 列出所有可用的專案 Returns: 專案名稱列表 |
| get_vector_db_stats_toolB | 取得向量資料庫的狀態統計資訊 Returns: 資料庫統計資訊 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes: CRUD for knowledge files, search, index management, and project structure config. Minor potential confusion between read_knowledge_tool (single file) and get_project_knowledge_tool (aggregated knowledge), and between get_project_structure_tool and detect_project_structure_tool, but descriptions clarify these.
All 13 tools follow a consistent verb_noun_tool snake_case pattern (read_, save_, list_, get_, expand_, delete_, search_, reindex_, detect_). No camelCase mixing or inconsistent verb styles.
13 tools is well within the ideal 3-15 range and each tool earns its place: knowledge CRUD, search/retrieval helpers, index management, and project structure operations. No redundant or filler tools.
Knowledge lifecycle is well covered: create/read/list/delete/search/reindex/stats plus context expansion and aggregation; project structure config has get/save/detect. Minor gaps exist—no explicit project create/delete, and update relies on save_knowledge_tool overwriting—but core workflows are complete.