octocode-mcp 7.0.14 → 7.0.15-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,6 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import type { CompleteMetadata } from '../tools/toolMetadata.js';
3
3
  /**
4
4
  * Register all prompts with the MCP server
5
- * Each prompt is defined in its own file under the prompts directory
5
+ * Iterates over the prompts defined in the metadata and registers them dynamically
6
6
  */
7
7
  export declare function registerPrompts(server: McpServer, content: CompleteMetadata): void;
@@ -1,3 +1,14 @@
1
+ export interface PromptArgument {
2
+ name: string;
3
+ description: string;
4
+ required?: boolean;
5
+ }
6
+ export interface PromptMetadata {
7
+ name: string;
8
+ description: string;
9
+ content: string;
10
+ args?: PromptArgument[];
11
+ }
1
12
  export interface ToolMetadata {
2
13
  name: string;
3
14
  description: string;
@@ -9,28 +20,7 @@ export interface ToolMetadata {
9
20
  }
10
21
  export interface CompleteMetadata {
11
22
  instructions: string;
12
- prompts: {
13
- research: {
14
- name: string;
15
- description: string;
16
- content: string;
17
- };
18
- reviewSecurity: {
19
- name: string;
20
- description: string;
21
- content: string;
22
- };
23
- use: {
24
- name: string;
25
- description: string;
26
- content: string;
27
- };
28
- [key: string]: {
29
- name: string;
30
- description: string;
31
- content: string;
32
- };
33
- };
23
+ prompts: Record<string, PromptMetadata>;
34
24
  toolNames: {
35
25
  GITHUB_FETCH_CONTENT: 'githubGetFileContent';
36
26
  GITHUB_SEARCH_CODE: 'githubSearchCode';
@@ -51,28 +41,16 @@ export interface CompleteMetadata {
51
41
  };
52
42
  genericErrorHints: readonly string[];
53
43
  }
44
+ type ToolNamesValue = CompleteMetadata['toolNames'][keyof CompleteMetadata['toolNames']];
45
+ export type ToolName = ToolNamesValue;
54
46
  export declare function initializeToolMetadata(): Promise<void>;
55
47
  export declare function loadToolContent(): Promise<CompleteMetadata>;
56
- export declare function getInstructionsSync(): string;
57
- export declare function getPromptsSync(): CompleteMetadata['prompts'];
58
48
  export declare const TOOL_NAMES: CompleteMetadata["toolNames"];
59
- export type ToolName = (typeof TOOL_NAMES)[keyof typeof TOOL_NAMES];
60
49
  export declare const BASE_SCHEMA: CompleteMetadata["baseSchema"];
61
50
  export declare const GENERIC_ERROR_HINTS: readonly string[];
62
- export declare function getCompleteMetadata(): Promise<CompleteMetadata>;
63
- export declare function getToolsMetadata(): Promise<Record<string, ToolMetadata>>;
64
- export declare function getToolMetadata(toolName: string): Promise<ToolMetadata | undefined>;
65
- export declare function getToolDescription(toolName: string): Promise<string>;
66
- export declare function getToolSchema(toolName: string): Promise<Record<string, string>>;
67
51
  export declare function isToolAvailableSync(toolName: string): boolean;
68
- export declare function getToolHints(toolName: string, resultType: 'hasResults' | 'empty'): Promise<readonly string[]>;
69
52
  export declare function getToolHintsSync(toolName: string, resultType: 'hasResults' | 'empty'): readonly string[];
70
- export declare function getGenericErrorHints(): Promise<readonly string[]>;
71
53
  export declare function getGenericErrorHintsSync(): readonly string[];
72
- export declare function getBaseHints(): Promise<{
73
- hasResults: readonly string[];
74
- empty: readonly string[];
75
- }>;
76
54
  export declare function getDynamicHints(toolName: string, hintType: 'topicsHasResults' | 'topicsEmpty' | 'keywordsEmpty'): readonly string[];
77
55
  export declare function getBulkOperationsInstructions(): {
78
56
  base: string;
@@ -142,6 +120,7 @@ export declare const GITHUB_SEARCH_REPOS: {
142
120
  };
143
121
  scope: {
144
122
  owner: string;
123
+ repo: string;
145
124
  };
146
125
  filters: {
147
126
  stars: string;
@@ -216,3 +195,4 @@ export declare const GITHUB_VIEW_REPO_STRUCTURE: {
216
195
  depth: string;
217
196
  };
218
197
  };
198
+ export {};
@@ -30,7 +30,3 @@ export declare function getCacheStats(): CacheStats & {
30
30
  hitRate: number;
31
31
  cacheSize: number;
32
32
  };
33
- /**
34
- * Perform periodic cleanup (simplified - NodeCache handles this automatically)
35
- */
36
- export declare function performPeriodicCleanup(): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "dxt_version": "0.1",
3
3
  "name": "octocode-mcp",
4
4
  "display_name": "Octocode MCP Extension",
5
- "version": "7.0.14",
5
+ "version": "7.0.15",
6
6
  "description": "GitHub code search and npm package exploration MCP server",
7
7
  "long_description": "A comprehensive MCP server that provides GitHub code search, repository exploration, commit history, pull requests, issues, and npm package search capabilities. This extension enables AI assistants to efficiently search and analyze code across GitHub repositories and npm packages with advanced filtering and content retrieval features.",
8
8
  "author": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "octocode-mcp",
3
- "version": "7.0.14",
3
+ "version": "7.0.15-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",
@@ -74,10 +74,10 @@
74
74
  "rollup-plugin-string": "^3.0.0",
75
75
  "rollup-plugin-terser": "^7.0.2",
76
76
  "typescript": "^5.9.2",
77
- "vitest": "^4.0.4"
77
+ "vitest": "^4.0.13"
78
78
  },
79
79
  "engines": {
80
- "node": ">=18.12.0"
80
+ "node": ">=20.0.0"
81
81
  },
82
82
  "files": [
83
83
  "dist/**/*.js",
@@ -103,8 +103,8 @@
103
103
  "lint:fix": "eslint src/**/*.ts tests/**/*.ts --fix",
104
104
  "prepack": "yarn build",
105
105
  "prepublishOnly": "yarn lint && yarn test && rollup -c",
106
- "test": "vitest run",
107
- "test:coverage": "vitest run --coverage --coverage.include=\"src/**\"",
106
+ "test": "vitest run --coverage",
107
+ "test:coverage": "vitest run --coverage",
108
108
  "test:ui": "vitest --ui",
109
109
  "test:watch": "vitest --watch"
110
110
  },
@@ -113,5 +113,6 @@
113
113
  "type": "stdio",
114
114
  "command": "octocode-mcp",
115
115
  "args": []
116
- }
117
- }
116
+ },
117
+ "stableVersion": "7.0.15"
118
+ }
package/server.json CHANGED
@@ -8,12 +8,12 @@
8
8
  "url": "https://github.com/bgauryy/octocode-mcp",
9
9
  "source": "github"
10
10
  },
11
- "version": "7.0.14",
11
+ "version": "7.0.15",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "octocode-mcp",
16
- "version": "7.0.14",
16
+ "version": "7.0.15",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },
@@ -1,4 +0,0 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import type { CompleteMetadata } from '../tools/toolMetadata.js';
3
- export declare const PROMPT_NAME = "research";
4
- export declare function registerResearchPrompt(server: McpServer, content: CompleteMetadata): void;
@@ -1,4 +0,0 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import type { CompleteMetadata } from '../tools/toolMetadata.js';
3
- export declare const PROMPT_NAME = "review_security";
4
- export declare function registerSecurityReviewPrompt(server: McpServer, content: CompleteMetadata): void;
@@ -1,4 +0,0 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import type { CompleteMetadata } from '../tools/toolMetadata.js';
3
- export declare const PROMPT_NAME = "use";
4
- export declare function registerUsePrompt(server: McpServer, content: CompleteMetadata): void;