MCP server for searching and reading local documentation from multiple sources (shared commands, project docs, project root)
The server implements 3 READ_ONLY tools with clear action-verb naming (search_docs, read_doc, list_all_docs). Tool definitions are present in app/server/server.go with input struct types (SearchInput, ReadInput) and output types (SearchOutput, ReadOutput, ListOutput). However, parameter descriptions are minimal or missing entirely in the visible schema. The input schema shown has type and description for 'query' in search_docs, but the 'path' and 'source' parameters in read_doc lack descriptions in the JSON schema visible in the code. Output schemas are defined as Go structs but their field descriptions are sparse. Error handling exists (ctx.Done checks, nil checks) but does not provide actionable recovery guidance. Overall, the definitions are functional but fall short of LLM-optimized clarity.
lists all documentation files from all configured sources
reads a specific documentation file
searches for documentation files matching the query
Output schemas lack field-level descriptions. All three tools return structured objects (SearchOutput, ReadOutput, ListOutput, DocInfo) defined as Go structs, but the struct fields have no docstrings or JSON schema field descriptions. LLMs cannot determine which fields are critical vs optional without explicit annotation.
Enum constraints expressed in descriptions rather than schema. The 'source' parameter in read_doc lists valid values ('commands', 'project-docs', 'project-root') in the description text rather than as a JSON Schema enum constraint. This forces LLMs to parse unstructured text and invites hallucinated values.
No pagination support on list_all_docs. The tool returns all documentation files in a single response without limit or offset parameters. For repositories with thousands of docs, this blows the context window and violates the baseline pattern for list tools (paginated-result). The maxSearchResults constant (10) is applied to search_docs but not to list output.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 13 | - | v1 |
Error handling lacks recovery guidance. The code checks for context cancellation and scanner errors but does not return actionable error messages. For example, if a file path is invalid or a source directory does not exist, the LLM receives only the error value with no guidance on how to proceed (e.g., 'Call list_all_docs() to see available paths').
Ambiguous dual-input pattern in read_doc. The tool accepts both a 'path' parameter with optional 'source:' prefix and a separate 'source' parameter. The description does not clarify which pattern is preferred, whether they conflict, or what happens if both are provided. This creates confusion for LLMs about which input style to use.