@sanderkooger/mcp-server-ragdocs
Version:
An MCP server for semantic documentation search and retrieval using vector databases to augment LLM capabilities.
11 lines (10 loc) • 340 B
JavaScript
export function isDocumentPayload(payload) {
if (!payload || typeof payload !== 'object')
return false;
const p = payload;
return (p._type === 'DocumentChunk' &&
typeof p.text === 'string' &&
typeof p.url === 'string' &&
typeof p.title === 'string' &&
typeof p.timestamp === 'string');
}