octocode-mcp 7.0.14-alpha.1 → 7.0.15-alpha.1

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,12 +41,13 @@ 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
48
  export declare function getInstructionsSync(): string;
57
49
  export declare function getPromptsSync(): CompleteMetadata['prompts'];
58
50
  export declare const TOOL_NAMES: CompleteMetadata["toolNames"];
59
- export type ToolName = (typeof TOOL_NAMES)[keyof typeof TOOL_NAMES];
60
51
  export declare const BASE_SCHEMA: CompleteMetadata["baseSchema"];
61
52
  export declare const GENERIC_ERROR_HINTS: readonly string[];
62
53
  export declare function getCompleteMetadata(): Promise<CompleteMetadata>;
@@ -142,6 +133,7 @@ export declare const GITHUB_SEARCH_REPOS: {
142
133
  };
143
134
  scope: {
144
135
  owner: string;
136
+ repo: string;
145
137
  };
146
138
  filters: {
147
139
  stars: string;
@@ -216,3 +208,4 @@ export declare const GITHUB_VIEW_REPO_STRUCTURE: {
216
208
  depth: string;
217
209
  };
218
210
  };
211
+ 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-alpha.1",
3
+ "version": "7.0.15-alpha.1",
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",
@@ -114,5 +114,5 @@
114
114
  "command": "octocode-mcp",
115
115
  "args": []
116
116
  },
117
- "stableVersion": "7.0.14"
117
+ "stableVersion": "7.0.15"
118
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;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};