@githits/mcp 0.6.1 → 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/client.d.ts +4 -1
- package/dist/client.js +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +26 -26
- package/dist/shared/chunk-q54qd0qb.js +1194 -0
- package/package.json +1 -1
- package/dist/shared/chunk-69q445dy.js +0 -1194
package/dist/client.d.ts
CHANGED
|
@@ -511,6 +511,7 @@ interface FeedbackResult {
|
|
|
511
511
|
interface GitHitsServiceRuntimeOptions {
|
|
512
512
|
clientHeaders?: ClientHeaderBuilder;
|
|
513
513
|
userAgent?: string;
|
|
514
|
+
exampleRequestTimeoutMs?: number;
|
|
514
515
|
}
|
|
515
516
|
/**
|
|
516
517
|
* Service interface for GitHits REST API.
|
|
@@ -534,13 +535,15 @@ declare class GitHitsServiceImpl implements GitHitsService {
|
|
|
534
535
|
private readonly fetchFn?;
|
|
535
536
|
private readonly fetchTimeoutMs;
|
|
536
537
|
private readonly runtime;
|
|
537
|
-
constructor(apiUrl: string, token: string, fetchFn?: typeof fetch | undefined, fetchTimeoutMs?: number, runtime?: GitHitsServiceRuntimeOptions);
|
|
538
|
+
constructor(apiUrl: string, token: string, fetchFn?: typeof fetch | undefined, fetchTimeoutMs?: number | undefined, runtime?: GitHitsServiceRuntimeOptions);
|
|
538
539
|
search(params: SearchParams): Promise<string>;
|
|
539
540
|
getLanguages(): Promise<Language[]>;
|
|
540
541
|
searchLanguages(query: string, limit?: number): Promise<Language[]>;
|
|
541
542
|
submitFeedback(params: FeedbackParams): Promise<FeedbackResult>;
|
|
542
543
|
private headers;
|
|
543
544
|
private fetchOptions;
|
|
545
|
+
private request;
|
|
546
|
+
private parseLanguages;
|
|
544
547
|
private createError;
|
|
545
548
|
}
|
|
546
549
|
interface PackageSummaryParams {
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,endTelemetrySpan,flushTelemetry,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,startTelemetrySpan,toPkgseerRegistry,toPkgseerRegistryLowercase,withTelemetrySpan}from"./shared/chunk-
|
|
1
|
+
import{CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,endTelemetrySpan,flushTelemetry,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,startTelemetrySpan,toPkgseerRegistry,toPkgseerRegistryLowercase,withTelemetrySpan}from"./shared/chunk-q54qd0qb.js";export{withTelemetrySpan,toPkgseerRegistryLowercase,toPkgseerRegistry,startTelemetrySpan,getMcpUrl,getEnvApiToken,getCodeNavigationUrl,getApiUrl,flushTelemetry,endTelemetrySpan,createStaticTokenProvider,createClientHeaderBuilder,RefreshingGitHitsService,PackageIntelligenceServiceImpl,PKGSEER_REGISTRY_LIST,GitHitsServiceImpl,DEFAULT_MCP_URL,DEFAULT_CODE_NAV_URL,DEFAULT_API_URL,CodeNavigationServiceImpl};
|
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: {
|