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.
@@ -2,6 +2,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  export declare const PROMPT_NAMES: {
3
3
  readonly RESEARCH: "research";
4
4
  readonly KUDOS: "kudos";
5
+ readonly USE: "use";
5
6
  };
6
7
  /**
7
8
  * Register all prompts with the MCP server
@@ -1,2 +1,3 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- export declare function registerFetchGitHubFileContentTool(server: McpServer): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
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
- export declare function registerGitHubSearchCodeTool(server: McpServer): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
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
- export declare function registerSearchGitHubPullRequestsTool(server: McpServer): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
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
- export declare function registerSearchGitHubReposTool(server: McpServer): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
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
- export declare function registerViewGitHubRepoStructureTool(server: McpServer): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool;
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
  };
@@ -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
+ }