server/tool-definitions.ts

mcp-local-rag · src/server/tool-definitions.ts · typescript · MIT
files

MCP tool schema definitions for RAGServer

// Source: https://github.com/shinpr/mcp-local-rag | License: MIT | Copyright 2025 Shinsuke Kagawa
// Provided via justclaw.it.com; keep this notice with the code.
// MCP tool schema definitions for RAGServer

import type { Tool } from '@modelcontextprotocol/sdk/types.js'
import { MAX_NEIGHBOR_COUNT, MAX_QUERY_LIMIT, MIN_QUERY_LIMIT } from '../utils/limits.js'
import { CONTENT_FORMATS } from '../utils/raw-data-utils.js'
import { QUALITY_PROFILES } from '../utils/visual-profile.js'

/**
 * All MCP tool definitions for the RAG server.
 * These are purely declarative schema objects that describe
 * what tools exist and their input parameters.
 */
export const toolDefinitions: Tool[] = [
  {
    name: 'query_documents',
    description:
      'Search ingested documents with hybrid keyword + se

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key