Skip to content

Commit 2ea4cdf

Browse files
committed
Add index_repo tool to MCP server
This tool allows creating/updating indexes dynamically from: - GitHub repositories (requires owner and repo) - GitLab repositories (requires project_id) - BitBucket repositories (requires workspace and repo) - Websites (requires url) Features: - Validates required parameters for each source type - Checks if store supports write operations - Refreshes runner state after indexing - Invalidates cached client for updated indexes - Returns success message with stats (type, filesIndexed, duration) Agent-Id: agent-4dd9b0b4-3ecf-4a2a-850a-49fd55aba0b5
1 parent 0592040 commit 2ea4cdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/clients/mcp-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
ListToolsRequestSchema,
3939
} from "@modelcontextprotocol/sdk/types.js";
4040
import type { IndexStoreReader, IndexStore } from "../stores/types.js";
41+
import type { Source } from "../sources/types.js";
4142
import { MultiIndexRunner } from "./multi-index-runner.js";
4243
import {
4344
SEARCH_DESCRIPTION,

0 commit comments

Comments
 (0)