@navigation-agent/mcp-server 0.3.0 → 0.3.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.
- package/dist/app/createMcpServer.d.ts +2 -2
- package/dist/bin/navigation-mcp.d.ts +1 -1
- package/dist/engine/protocol.d.ts +1 -1
- package/dist/engine/rustEngineClient.d.ts +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/services/findSymbolService.d.ts +3 -3
- package/dist/services/inspectTreeService.d.ts +3 -3
- package/dist/services/listEndpointsService.d.ts +3 -3
- package/dist/services/searchTextService.d.ts +3 -3
- package/dist/services/traceCallersService.d.ts +3 -3
- package/dist/services/traceFlowService.d.ts +3 -3
- package/dist/tools/registerCodeTools.d.ts +2 -2
- package/package.json +10 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EngineClient } from "../engine/rustEngineClient.
|
|
2
|
-
import { type RegisteredCodeTool } from "../tools/registerCodeTools.
|
|
1
|
+
import { type EngineClient } from "../engine/rustEngineClient.js";
|
|
2
|
+
import { type RegisteredCodeTool } from "../tools/registerCodeTools.js";
|
|
3
3
|
export interface CreateMcpServerOptions {
|
|
4
4
|
workspaceRoot: string;
|
|
5
5
|
engineClient?: EngineClient;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env -S
|
|
1
|
+
#!/usr/bin/env -S npx tsx
|
|
2
2
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MatchMode, PublicFramework, PublicLanguage, PublicEndpointKind, PublicSymbolKind } from "../contracts/public/code.
|
|
1
|
+
import type { MatchMode, PublicFramework, PublicLanguage, PublicEndpointKind, PublicSymbolKind } from "../contracts/public/code.js";
|
|
2
2
|
export declare const ENGINE_CAPABILITIES: readonly ["workspace.inspect_tree", "workspace.find_symbol", "workspace.list_endpoints", "workspace.search_text", "workspace.trace_flow", "workspace.trace_callers"];
|
|
3
3
|
export type EngineCapability = (typeof ENGINE_CAPABILITIES)[number];
|
|
4
4
|
export type AnalyzerLanguage = "auto" | "java" | "typescript" | "python" | "rust";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EngineRequest, EngineResponse } from "./protocol.
|
|
1
|
+
import type { EngineRequest, EngineResponse } from "./protocol.js";
|
|
2
2
|
export interface EngineClient {
|
|
3
3
|
request<TResult = unknown>(request: EngineRequest): Promise<EngineResponse<TResult>>;
|
|
4
4
|
close(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./app/createMcpServer.
|
|
2
|
-
export * from "./contracts/public/code.
|
|
3
|
-
export * from "./contracts/public/common.
|
|
4
|
-
export * from "./engine/protocol.
|
|
5
|
-
export * from "./engine/rustEngineClient.
|
|
6
|
-
export * from "./services/findSymbolService.
|
|
7
|
-
export * from "./services/inspectTreeService.
|
|
8
|
-
export * from "./services/listEndpointsService.
|
|
9
|
-
export * from "./services/searchTextService.
|
|
10
|
-
export * from "./services/traceCallersService.
|
|
11
|
-
export * from "./services/traceFlowService.
|
|
12
|
-
export * from "./tools/registerCodeTools.
|
|
1
|
+
export * from "./app/createMcpServer.js";
|
|
2
|
+
export * from "./contracts/public/code.js";
|
|
3
|
+
export * from "./contracts/public/common.js";
|
|
4
|
+
export * from "./engine/protocol.js";
|
|
5
|
+
export * from "./engine/rustEngineClient.js";
|
|
6
|
+
export * from "./services/findSymbolService.js";
|
|
7
|
+
export * from "./services/inspectTreeService.js";
|
|
8
|
+
export * from "./services/listEndpointsService.js";
|
|
9
|
+
export * from "./services/searchTextService.js";
|
|
10
|
+
export * from "./services/traceCallersService.js";
|
|
11
|
+
export * from "./services/traceFlowService.js";
|
|
12
|
+
export * from "./tools/registerCodeTools.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type FindSymbolData, type FindSymbolInput } from "../contracts/public/code.
|
|
2
|
-
import { type ResponseEnvelope } from "../contracts/public/common.
|
|
3
|
-
import type { EngineClient } from "../engine/rustEngineClient.
|
|
1
|
+
import { type FindSymbolData, type FindSymbolInput } from "../contracts/public/code.js";
|
|
2
|
+
import { type ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
|
+
import type { EngineClient } from "../engine/rustEngineClient.js";
|
|
4
4
|
export interface FindSymbolService {
|
|
5
5
|
execute(input: FindSymbolInput): Promise<ResponseEnvelope<FindSymbolData>>;
|
|
6
6
|
validateAndExecute(payload: Record<string, unknown>): Promise<ResponseEnvelope<FindSymbolData>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type InspectTreeData, type InspectTreeInput } from "../contracts/public/code.
|
|
2
|
-
import { type ResponseEnvelope } from "../contracts/public/common.
|
|
3
|
-
import type { EngineClient } from "../engine/rustEngineClient.
|
|
1
|
+
import { type InspectTreeData, type InspectTreeInput } from "../contracts/public/code.js";
|
|
2
|
+
import { type ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
|
+
import type { EngineClient } from "../engine/rustEngineClient.js";
|
|
4
4
|
export interface InspectTreeService {
|
|
5
5
|
execute(input: InspectTreeInput): Promise<ResponseEnvelope<InspectTreeData>>;
|
|
6
6
|
validateAndExecute(payload: Record<string, unknown>): Promise<ResponseEnvelope<InspectTreeData>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ListEndpointsData, type ListEndpointsInput } from "../contracts/public/code.
|
|
2
|
-
import { type ResponseEnvelope } from "../contracts/public/common.
|
|
3
|
-
import type { EngineClient } from "../engine/rustEngineClient.
|
|
1
|
+
import { type ListEndpointsData, type ListEndpointsInput } from "../contracts/public/code.js";
|
|
2
|
+
import { type ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
|
+
import type { EngineClient } from "../engine/rustEngineClient.js";
|
|
4
4
|
export interface ListEndpointsService {
|
|
5
5
|
execute(input: ListEndpointsInput): Promise<ResponseEnvelope<ListEndpointsData>>;
|
|
6
6
|
validateAndExecute(payload: Record<string, unknown>): Promise<ResponseEnvelope<ListEndpointsData>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type SearchTextData, type SearchTextInput } from "../contracts/public/code.
|
|
2
|
-
import { type ResponseEnvelope } from "../contracts/public/common.
|
|
3
|
-
import type { EngineClient } from "../engine/rustEngineClient.
|
|
1
|
+
import { type SearchTextData, type SearchTextInput } from "../contracts/public/code.js";
|
|
2
|
+
import { type ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
|
+
import type { EngineClient } from "../engine/rustEngineClient.js";
|
|
4
4
|
export interface SearchTextService {
|
|
5
5
|
execute(input: SearchTextInput): Promise<ResponseEnvelope<SearchTextData>>;
|
|
6
6
|
validateAndExecute(payload: Record<string, unknown>): Promise<ResponseEnvelope<SearchTextData>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type TraceCallersData, type TraceCallersInput } from "../contracts/public/code.
|
|
2
|
-
import { type ResponseEnvelope } from "../contracts/public/common.
|
|
3
|
-
import type { EngineClient } from "../engine/rustEngineClient.
|
|
1
|
+
import { type TraceCallersData, type TraceCallersInput } from "../contracts/public/code.js";
|
|
2
|
+
import { type ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
|
+
import type { EngineClient } from "../engine/rustEngineClient.js";
|
|
4
4
|
export interface TraceCallersService {
|
|
5
5
|
execute(input: TraceCallersInput): Promise<ResponseEnvelope<TraceCallersData>>;
|
|
6
6
|
validateAndExecute(payload: Record<string, unknown>): Promise<ResponseEnvelope<TraceCallersData>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type TraceFlowData, type TraceFlowInput } from "../contracts/public/code.
|
|
2
|
-
import { type ResponseEnvelope } from "../contracts/public/common.
|
|
3
|
-
import type { EngineClient } from "../engine/rustEngineClient.
|
|
1
|
+
import { type TraceFlowData, type TraceFlowInput } from "../contracts/public/code.js";
|
|
2
|
+
import { type ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
|
+
import type { EngineClient } from "../engine/rustEngineClient.js";
|
|
4
4
|
export interface TraceFlowService {
|
|
5
5
|
execute(input: TraceFlowInput): Promise<ResponseEnvelope<TraceFlowData>>;
|
|
6
6
|
validateAndExecute(payload: Record<string, unknown>): Promise<ResponseEnvelope<TraceFlowData>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CodeToolName } from "../contracts/public/code.
|
|
2
|
-
import type { ResponseEnvelope } from "../contracts/public/common.
|
|
1
|
+
import { type CodeToolName } from "../contracts/public/code.js";
|
|
2
|
+
import type { ResponseEnvelope } from "../contracts/public/common.js";
|
|
3
3
|
import * as z from "zod/v4";
|
|
4
4
|
export interface RegisteredCodeTool {
|
|
5
5
|
name: CodeToolName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navigation-agent/mcp-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MCP server for AI-assisted code navigation — find symbols, trace callers, list endpoints and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"node": ">=18"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
19
|
+
"dev": "npx tsx ./src/bin/navigation-mcp.ts --transport stdio",
|
|
20
20
|
"build": "tsc -p tsconfig.build.json && node ../../scripts/add-shebang.mjs dist/bin/navigation-mcp.js",
|
|
21
|
-
"test": "
|
|
22
|
-
"check": "tsc --noEmit"
|
|
21
|
+
"test": "npx tsx --test ./test/**/*.spec.ts",
|
|
22
|
+
"check": "tsc --noEmit -p tsconfig.json"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@navigation-agent/mcp-server-linux-x64": "0.3.
|
|
26
|
-
"@navigation-agent/mcp-server-linux-arm64": "0.3.
|
|
27
|
-
"@navigation-agent/mcp-server-darwin-x64": "0.3.
|
|
28
|
-
"@navigation-agent/mcp-server-darwin-arm64": "0.3.
|
|
29
|
-
"@navigation-agent/mcp-server-win32-x64": "0.3.
|
|
25
|
+
"@navigation-agent/mcp-server-linux-x64": "0.3.1",
|
|
26
|
+
"@navigation-agent/mcp-server-linux-arm64": "0.3.1",
|
|
27
|
+
"@navigation-agent/mcp-server-darwin-x64": "0.3.1",
|
|
28
|
+
"@navigation-agent/mcp-server-darwin-arm64": "0.3.1",
|
|
29
|
+
"@navigation-agent/mcp-server-win32-x64": "0.3.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|
|
37
|
+
"tsx": "^4.19.0",
|
|
37
38
|
"typescript": "^5.8.0"
|
|
38
39
|
},
|
|
39
40
|
"license": "MIT",
|