UNPKG

@sanderkooger/mcp-server-ragdocs

Version:

An MCP server for semantic documentation search and retrieval using vector databases to augment LLM capabilities.

24 lines (23 loc) 487 B
export class BaseTool { formatResponse(data) { return { content: [ { type: 'text', text: JSON.stringify(data, null, 2) } ] }; } handleError(error) { return { content: [ { type: 'text', text: `Error: ${error}` } ], isError: true }; } }