UNPKG

deepsource-mcp-server

Version:
61 lines (60 loc) 1.67 kB
/** * @fileoverview Tool registration module for DeepSource MCP tools * * This module handles the registration of all DeepSource tools with the * MCP server. It centralizes tool registration logic and provides a * clean interface for registering tools. * * @packageDocumentation */ import { ToolRegistry } from './tool-registry.js'; /** * Registers all DeepSource tools with the tool registry * * @param registry - The tool registry to register tools with */ export declare function registerDeepSourceTools(registry: ToolRegistry): void; /** * Tool categories for organization */ export declare enum ToolCategory { PROJECT_MANAGEMENT = "project_management", CODE_QUALITY = "code_quality", SECURITY = "security", ANALYSIS = "analysis", DEPENDENCIES = "dependencies" } /** * Tool metadata for categorization and filtering */ export interface ToolMetadata { category: ToolCategory; tags: string[]; requiresAuth: boolean; supportsFiltering: boolean; supportsPagination: boolean; } /** * Metadata for all DeepSource tools */ export declare const TOOL_METADATA: Record<string, ToolMetadata>; /** * Gets tools by category * * @param category - The tool category * @returns Array of tool names in the category */ export declare function getToolsByCategory(category: ToolCategory): string[]; /** * Gets tools by tag * * @param tag - The tag to filter by * @returns Array of tool names with the tag */ export declare function getToolsByTag(tag: string): string[]; /** * Gets paginated tools * * @returns Array of tool names that support pagination */ export declare function getPaginatedTools(): string[];