@githits/mcp 0.6.2 → 0.6.3
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/dist/index.d.ts +8 -2
- package/dist/index.js +24 -24
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ interface BuildMcpInstructionsOptions {
|
|
|
16
16
|
}
|
|
17
17
|
declare function buildMcpInstructions(options?: BuildMcpInstructionsOptions): string;
|
|
18
18
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
19
|
-
import { ToolAnnotations as ToolAnnotations2 } from "@modelcontextprotocol/sdk/types.js";
|
|
20
19
|
/**
|
|
21
20
|
* Registry taxonomy shared by code-navigation and package-intelligence
|
|
22
21
|
* services. Single source of truth for:
|
|
@@ -1052,7 +1051,14 @@ interface PackageIntelligenceService {
|
|
|
1052
1051
|
listPackageDocs(params: ListPackageDocsParams): Promise<PackageDocsList>;
|
|
1053
1052
|
readPackageDoc(params: ReadPackageDocParams): Promise<PackageDocResult>;
|
|
1054
1053
|
}
|
|
1054
|
+
import { ToolAnnotations } from "@modelcontextprotocol/sdk/types.js";
|
|
1055
1055
|
import { z } from "zod";
|
|
1056
|
+
/** Annotation fields required by OpenAI's MCP marketplace validation. */
|
|
1057
|
+
interface CompleteToolAnnotations extends ToolAnnotations {
|
|
1058
|
+
readOnlyHint: boolean;
|
|
1059
|
+
openWorldHint: boolean;
|
|
1060
|
+
destructiveHint: boolean;
|
|
1061
|
+
}
|
|
1056
1062
|
/**
|
|
1057
1063
|
* Standard result type for all MCP tools
|
|
1058
1064
|
*/
|
|
@@ -1107,7 +1113,7 @@ interface McpToolDescriptor<TSchema extends ZodRawShape = ZodRawShape> {
|
|
|
1107
1113
|
name: string;
|
|
1108
1114
|
description: string;
|
|
1109
1115
|
schema: TSchema;
|
|
1110
|
-
annotations
|
|
1116
|
+
annotations: CompleteToolAnnotations;
|
|
1111
1117
|
}
|
|
1112
1118
|
declare function getMcpToolDescriptors(): McpToolDescriptor[];
|
|
1113
1119
|
declare function registerMcpTools<TExtra = unknown>(server: McpServer, options: {
|