UNPKG

opengov-mcp-server

Version:

MCP server that enables a client, such as Claude Desktop, to access open government data through Socrata APIs

61 lines (60 loc) 2.05 kB
import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { DatasetMetadata, CategoryInfo, TagInfo, ColumnInfo, PortalMetrics } from '../utils/api.js'; declare function handleCatalog(params: { query?: string; domain?: string; limit?: number; offset?: number; }): Promise<DatasetMetadata[]>; declare function handleCategories(params: { domain?: string; }): Promise<CategoryInfo[]>; declare function handleTags(params: { domain?: string; }): Promise<TagInfo[]>; declare function handleDatasetMetadata(params: { datasetId: string; domain?: string; }): Promise<Record<string, unknown>>; declare function handleColumnInfo(params: { datasetId: string; domain?: string; }): Promise<ColumnInfo[]>; declare function handleDataAccess(params: { datasetId: string; domain?: string; query?: string; limit?: number; offset?: number; select?: string; where?: string; order?: string; group?: string; having?: string; q?: string; }): Promise<Record<string, unknown>[]>; declare function handleSiteMetrics(params: { domain?: string; }): Promise<PortalMetrics>; export declare const UNIFIED_SOCRATA_TOOL: Tool; export declare function handleSocrataTool(params: Record<string, unknown>): Promise<unknown>; export declare const handleCatalogTool: typeof handleCatalog; export declare const handleCategoriesTool: typeof handleCategories; export declare const handleTagsTool: typeof handleTags; export declare const handleDatasetMetadataTool: typeof handleDatasetMetadata; export declare const handleColumnInfoTool: typeof handleColumnInfo; export declare const handleDataAccessTool: typeof handleDataAccess; export declare const handleSiteMetricsTool: typeof handleSiteMetrics; export declare const SOCRATA_TOOLS: { [x: string]: unknown; name: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | undefined; }; description?: string | undefined; }[]; export {};