octocode-mcp 7.0.2 → 7.0.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +587 -413
- package/dist/index.js +1 -1
- package/dist/src/prompts.d.ts +1 -0
- package/dist/src/tools/github_fetch_content.d.ts +2 -1
- package/dist/src/tools/github_search_code.d.ts +2 -1
- package/dist/src/tools/github_search_pull_requests.d.ts +2 -1
- package/dist/src/tools/github_search_repos.d.ts +2 -1
- package/dist/src/tools/github_view_repo_structure.d.ts +2 -1
- package/dist/src/tools/toolConfig.d.ts +2 -1
- package/dist/src/tools/toolsManager.d.ts +4 -1
- package/dist/src/types.d.ts +6 -0
- package/dist/tests/tools/callback.test.d.ts +1 -0
- package/package.json +4 -3
package/dist/src/prompts.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
|
|
2
|
+
import type { ToolInvocationCallback } from '../types.js';
|
|
3
|
+
export declare function registerFetchGitHubFileContentTool(server: McpServer, callback?: ToolInvocationCallback): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
|
|
2
|
+
import type { ToolInvocationCallback } from '../types.js';
|
|
3
|
+
export declare function registerGitHubSearchCodeTool(server: McpServer, callback?: ToolInvocationCallback): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
|
|
2
|
+
import type { ToolInvocationCallback } from '../types.js';
|
|
3
|
+
export declare function registerSearchGitHubPullRequestsTool(server: McpServer, callback?: ToolInvocationCallback): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
|
|
2
|
+
import type { ToolInvocationCallback } from '../types.js';
|
|
3
|
+
export declare function registerSearchGitHubReposTool(server: McpServer, callback?: ToolInvocationCallback): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
|
|
2
|
+
import type { ToolInvocationCallback } from '../types.js';
|
|
3
|
+
export declare function registerViewGitHubRepoStructureTool(server: McpServer, callback?: ToolInvocationCallback): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { ToolInvocationCallback } from '../types.js';
|
|
2
3
|
export interface ToolConfig {
|
|
3
4
|
name: string;
|
|
4
5
|
description: string;
|
|
5
6
|
isDefault: boolean;
|
|
6
7
|
type: 'search' | 'content' | 'history' | 'debug';
|
|
7
|
-
fn: (server: McpServer) => RegisteredTool;
|
|
8
|
+
fn: (server: McpServer, callback?: ToolInvocationCallback) => RegisteredTool;
|
|
8
9
|
}
|
|
9
10
|
export declare const GITHUB_SEARCH_CODE: ToolConfig;
|
|
10
11
|
export declare const GITHUB_FETCH_CONTENT: ToolConfig;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { ToolInvocationCallback } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* Register tools based on configuration
|
|
5
|
+
* @param server - The MCP server instance
|
|
6
|
+
* @param callback - Optional callback
|
|
4
7
|
*/
|
|
5
|
-
export declare function registerTools(server: McpServer): {
|
|
8
|
+
export declare function registerTools(server: McpServer, callback?: ToolInvocationCallback): {
|
|
6
9
|
successCount: number;
|
|
7
10
|
failedTools: string[];
|
|
8
11
|
};
|
package/dist/src/types.d.ts
CHANGED
|
@@ -325,6 +325,12 @@ export interface PullRequestSearchResultData {
|
|
|
325
325
|
/** Complete pull request search result */
|
|
326
326
|
export interface PullRequestSearchResult extends BaseToolResult<GitHubPullRequestSearchQuery>, PullRequestSearchResultData {
|
|
327
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Optional callback invoked when a tool is called with queries
|
|
330
|
+
* @param toolName - The name of the tool being invoked
|
|
331
|
+
* @param queries - Array of query objects passed to the tool
|
|
332
|
+
*/
|
|
333
|
+
export type ToolInvocationCallback = (toolName: string, queries: unknown[]) => Promise<void>;
|
|
328
334
|
/** Processed result from bulk query execution */
|
|
329
335
|
export interface ProcessedBulkResult<TData = Record<string, unknown>, TQuery = object> {
|
|
330
336
|
researchGoal?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "octocode-mcp",
|
|
3
|
-
"version": "7.0.2",
|
|
3
|
+
"version": "7.0.3-alpha.2",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -108,5 +108,6 @@
|
|
|
108
108
|
"type": "stdio",
|
|
109
109
|
"command": "octocode-mcp",
|
|
110
110
|
"args": []
|
|
111
|
-
}
|
|
112
|
-
|
|
111
|
+
},
|
|
112
|
+
"stableVersion": "7.0.3"
|
|
113
|
+
}
|