Sample MCP server with RAG to demonstrate how to use internal docs to answer developer questions inside cursor chat.
Single tool with partial schema and basic description. The search_docs tool has a non-empty description (80 chars) and visible input schema with two parameters (query, k). However, the schema lacks critical details: no output schema is documented, parameter descriptions are minimal (no format/range constraints), and no error handling guidance is provided. The tool name 'search_docs' starts with a verb but is generic, 'search' alone does not distinguish this from search_issues, search_users, or search_messages. Output schema is completely absent from source, making it impossible for LLMs to plan downstream operations. The k parameter has a default but no min/max bounds, inviting out-of-range requests. No per-parameter type validation or format constraints are visible in the implementation. The server operates on STDIO only, which is a hard transport cap. Overall, this is a minimal implementation suitable for local development but lacking production-grade structure.
Search documentation using semantic similarity with RAG vector store
No output schema documented. LLMs cannot infer what fields the search result contains, forcing them to guess at response structure and blocking downstream tool chaining.
Generic tool name 'search_docs' does not distinguish this tool from other search variants. Name should reflect the semantic RAG nature or domain (e.g., 'search_documentation_rag', 'search_internal_docs').
Parameter 'k' lacks min/max bounds and detailed constraint documentation. Description says 'default: 3' but does not specify valid range (e.g., 1-50), inviting LLMs to pass invalid values.
Parameter 'query' description is minimal (13 chars: 'The search query string'). No format constraints, minimum/maximum length, or guidance on special characters or multi-language support.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 45 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
No error handling or recovery guidance. Tool description does not explain what constitutes success, what errors might occur (empty results, vector DB unavailable, invalid API key), or how LLMs should respond.
STDIO transport only. This server cannot be used by hosted MCP clients (Cursor, Claude.dev, third-party agents) and limits testing to local stdio connections.