@githits/mcp 0.11.2 → 0.11.4
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/README.md +7 -0
- package/dist/client.d.ts +37 -0
- package/dist/client.js +1 -1
- package/dist/index.d.ts +36 -0
- package/dist/index.js +17 -15
- package/dist/shared/{chunk-mjxp4hpz.js → chunk-gcryn04g.js} +49 -40
- package/dist/smoke-test.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,13 @@ Reusable MCP server APIs and tool registrations for GitHits.
|
|
|
4
4
|
|
|
5
5
|
This package exposes transport-neutral helpers for servers that want the GitHits MCP tool surface without the local `githits` CLI startup, auth storage, or Commander wiring.
|
|
6
6
|
|
|
7
|
+
The production server at `https://mcp.githits.com` lives in the separate
|
|
8
|
+
`remote-mcp` repository and consumes a released version of this package for
|
|
9
|
+
tool registration, descriptors, `quick_start`, and tool logic. That host owns
|
|
10
|
+
HTTP transport, request-scoped service composition, auth/session handling,
|
|
11
|
+
deployment, and observability; package behavior reaches it after a dependency
|
|
12
|
+
update and deployment rather than through a parallel implementation.
|
|
13
|
+
|
|
7
14
|
> **Browser boundary:** only the selected `@githits/mcp/tools` resolved runtime
|
|
8
15
|
> graph is browser-safe. Installing `@githits/mcp` still installs its MCP SDK
|
|
9
16
|
> and other Node-oriented dependencies; the package root and
|
package/dist/client.d.ts
CHANGED
|
@@ -201,6 +201,37 @@ interface UnifiedSearchParams {
|
|
|
201
201
|
offset?: number;
|
|
202
202
|
waitTimeoutMs?: number;
|
|
203
203
|
}
|
|
204
|
+
interface UnifiedSearchEvidenceRange {
|
|
205
|
+
startLine: number;
|
|
206
|
+
endLine: number;
|
|
207
|
+
matchLine?: number;
|
|
208
|
+
rangeKind?: string;
|
|
209
|
+
matchSpansTruncated: boolean;
|
|
210
|
+
}
|
|
211
|
+
interface UnifiedSearchIndexedRange {
|
|
212
|
+
startLine: number;
|
|
213
|
+
endLine: number;
|
|
214
|
+
}
|
|
215
|
+
interface UnifiedSearchDefinitionRange {
|
|
216
|
+
filePath: string;
|
|
217
|
+
repositoryFilePath: string;
|
|
218
|
+
startLine: number;
|
|
219
|
+
endLine: number;
|
|
220
|
+
}
|
|
221
|
+
interface UnifiedSearchSymbolContextBase {
|
|
222
|
+
name: string;
|
|
223
|
+
qualifiedPath?: string;
|
|
224
|
+
kind?: string;
|
|
225
|
+
}
|
|
226
|
+
interface UnifiedSearchEnclosingSymbolContext extends UnifiedSearchSymbolContextBase {
|
|
227
|
+
relation: "encloses_match";
|
|
228
|
+
definitionRange: UnifiedSearchDefinitionRange;
|
|
229
|
+
}
|
|
230
|
+
interface UnifiedSearchAssociatedSymbolContext extends UnifiedSearchSymbolContextBase {
|
|
231
|
+
relation: "associated_with_indexed_chunk";
|
|
232
|
+
definitionRange?: UnifiedSearchDefinitionRange;
|
|
233
|
+
}
|
|
234
|
+
type UnifiedSearchSymbolContext = UnifiedSearchEnclosingSymbolContext | UnifiedSearchAssociatedSymbolContext;
|
|
204
235
|
interface UnifiedSearchLocator {
|
|
205
236
|
registry?: string;
|
|
206
237
|
packageName?: string;
|
|
@@ -210,10 +241,15 @@ interface UnifiedSearchLocator {
|
|
|
210
241
|
sourceUrl?: string;
|
|
211
242
|
repoUrl?: string;
|
|
212
243
|
gitRef?: string;
|
|
244
|
+
commitSha?: string;
|
|
213
245
|
requestedRef?: string;
|
|
214
246
|
filePath?: string;
|
|
247
|
+
repositoryFilePath?: string;
|
|
215
248
|
startLine?: number;
|
|
216
249
|
endLine?: number;
|
|
250
|
+
evidenceRange?: UnifiedSearchEvidenceRange;
|
|
251
|
+
indexedRange?: UnifiedSearchIndexedRange;
|
|
252
|
+
symbolContext?: UnifiedSearchSymbolContext;
|
|
217
253
|
fileContentHash?: string;
|
|
218
254
|
symbolRef?: string;
|
|
219
255
|
qualifiedPath?: string;
|
|
@@ -542,6 +578,7 @@ interface CodeDiffErrorDetails {
|
|
|
542
578
|
side?: string;
|
|
543
579
|
publishedVersions?: string[];
|
|
544
580
|
publishedVersionsTruncated?: boolean;
|
|
581
|
+
availableVersions?: AvailableVersion[];
|
|
545
582
|
registry?: string;
|
|
546
583
|
retryAfterMs?: number;
|
|
547
584
|
stage?: string;
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,toPkgseerRegistryLowercase}from"./shared/chunk-
|
|
1
|
+
import{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,toPkgseerRegistryLowercase}from"./shared/chunk-gcryn04g.js";import"./shared/chunk-51x6tx02.js";export{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,toPkgseerRegistryLowercase};
|
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,37 @@ interface UnifiedSearchParams {
|
|
|
149
149
|
offset?: number;
|
|
150
150
|
waitTimeoutMs?: number;
|
|
151
151
|
}
|
|
152
|
+
interface UnifiedSearchEvidenceRange {
|
|
153
|
+
startLine: number;
|
|
154
|
+
endLine: number;
|
|
155
|
+
matchLine?: number;
|
|
156
|
+
rangeKind?: string;
|
|
157
|
+
matchSpansTruncated: boolean;
|
|
158
|
+
}
|
|
159
|
+
interface UnifiedSearchIndexedRange {
|
|
160
|
+
startLine: number;
|
|
161
|
+
endLine: number;
|
|
162
|
+
}
|
|
163
|
+
interface UnifiedSearchDefinitionRange {
|
|
164
|
+
filePath: string;
|
|
165
|
+
repositoryFilePath: string;
|
|
166
|
+
startLine: number;
|
|
167
|
+
endLine: number;
|
|
168
|
+
}
|
|
169
|
+
interface UnifiedSearchSymbolContextBase {
|
|
170
|
+
name: string;
|
|
171
|
+
qualifiedPath?: string;
|
|
172
|
+
kind?: string;
|
|
173
|
+
}
|
|
174
|
+
interface UnifiedSearchEnclosingSymbolContext extends UnifiedSearchSymbolContextBase {
|
|
175
|
+
relation: "encloses_match";
|
|
176
|
+
definitionRange: UnifiedSearchDefinitionRange;
|
|
177
|
+
}
|
|
178
|
+
interface UnifiedSearchAssociatedSymbolContext extends UnifiedSearchSymbolContextBase {
|
|
179
|
+
relation: "associated_with_indexed_chunk";
|
|
180
|
+
definitionRange?: UnifiedSearchDefinitionRange;
|
|
181
|
+
}
|
|
182
|
+
type UnifiedSearchSymbolContext = UnifiedSearchEnclosingSymbolContext | UnifiedSearchAssociatedSymbolContext;
|
|
152
183
|
interface UnifiedSearchLocator {
|
|
153
184
|
registry?: string;
|
|
154
185
|
packageName?: string;
|
|
@@ -158,10 +189,15 @@ interface UnifiedSearchLocator {
|
|
|
158
189
|
sourceUrl?: string;
|
|
159
190
|
repoUrl?: string;
|
|
160
191
|
gitRef?: string;
|
|
192
|
+
commitSha?: string;
|
|
161
193
|
requestedRef?: string;
|
|
162
194
|
filePath?: string;
|
|
195
|
+
repositoryFilePath?: string;
|
|
163
196
|
startLine?: number;
|
|
164
197
|
endLine?: number;
|
|
198
|
+
evidenceRange?: UnifiedSearchEvidenceRange;
|
|
199
|
+
indexedRange?: UnifiedSearchIndexedRange;
|
|
200
|
+
symbolContext?: UnifiedSearchSymbolContext;
|
|
165
201
|
fileContentHash?: string;
|
|
166
202
|
symbolRef?: string;
|
|
167
203
|
qualifiedPath?: string;
|