UNPKG

onyx-mcp-server

Version:

Model Context Protocol (MCP) server for seamless integration with Onyx AI knowledge bases

86 lines 3.04 kB
/** * Type definitions for the Onyx MCP Server */ /** * Tool schemas for MCP */ export const toolSchemas = { search_onyx: { name: 'search_onyx', description: 'Search the Onyx backend for relevant documents', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'The topic to search for', }, chunksAbove: { type: 'integer', description: 'Number of chunks to include above the matching chunk (default: 1)', default: 1 }, chunksBelow: { type: 'integer', description: 'Number of chunks to include below the matching chunk (default: 1)', default: 1 }, retrieveFullDocuments: { type: 'boolean', description: 'Whether to retrieve full documents instead of just matching chunks (default: false)', default: false }, documentSets: { type: 'array', items: { type: 'string', }, description: 'List of document set names to search within (empty for all)', }, maxResults: { type: 'integer', description: 'Maximum number of results to return (default: 5)', minimum: 1, maximum: 10, }, }, required: ['query'], }, }, chat_with_onyx: { name: 'chat_with_onyx', description: 'Chat with Onyx to get comprehensive answers', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'The question to ask Onyx' }, personaId: { type: 'integer', description: 'The ID of the persona to use (default: 15)', default: 15 }, chatSessionId: { type: 'string', description: 'Existing chat session ID to continue a conversation (optional)' }, documentSets: { type: 'array', items: { type: 'string', }, description: 'List of document set names to search within (empty for all)' }, enableAutoDetectFilters: { type: 'boolean', description: 'Whether to enable auto-detection of filters (default: true)', default: true } }, required: ['query'] } } }; //# sourceMappingURL=index.js.map