@honua/mcp-server 0.1.8-beta.0 → 0.1.9-beta.0
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/src/certification/admin-parity.d.ts.map +1 -1
- package/dist/src/certification/admin-parity.js +2 -2
- package/dist/src/entrypoint.d.ts +20 -0
- package/dist/src/entrypoint.d.ts.map +1 -0
- package/dist/src/entrypoint.js +38 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/proxy.d.ts.map +1 -1
- package/dist/src/proxy.js +2 -2
- package/dist/src/release/zero-to-map-cli.d.ts.map +1 -1
- package/dist/src/release/zero-to-map-cli.js +2 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-parity.d.ts","sourceRoot":"","sources":["../../../src/certification/admin-parity.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"admin-parity.d.ts","sourceRoot":"","sources":["../../../src/certification/admin-parity.ts"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAI/D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,aAAa,EAAE,2BAA2B,CAAC;IACpD,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAA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AC/C,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,UAAU,SAA0B,GACnC,OAAO,CAAC,kBAAkB,CAAC,CAwB7B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { writeFile } from "node:fs/promises";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
3
|
import { ADMIN_MCP_CONTRACT_SERVER_SHA, ADMIN_MCP_COVERAGE_SHA256, ADMIN_MCP_EXCLUDED_OPERATIONS, ADMIN_MCP_EXCLUSION_ROSTER_SHA256, ADMIN_MCP_PUBLISHED_TOOL_NAMES, ADMIN_PUBLISHED_OPERATION_COUNT, MCP_DEFAULT_STATIC_TOOL_COUNT, MCP_DEFAULT_TOTAL_TOOL_COUNT, } from "@honua/sdk-js/control-plane";
|
|
5
4
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
6
5
|
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
6
|
+
import { isMainEntrypoint } from "../entrypoint.js";
|
|
7
7
|
import { connectUpstream, createProxyServer, resolveProxyOptions } from "../proxy.js";
|
|
8
8
|
const DEFAULT_EXPECTATION = {
|
|
9
9
|
publishedToolNames: ADMIN_MCP_PUBLISHED_TOOL_NAMES,
|
|
@@ -227,7 +227,7 @@ function stableJson(value) {
|
|
|
227
227
|
}
|
|
228
228
|
return JSON.stringify(value) ?? "undefined";
|
|
229
229
|
}
|
|
230
|
-
if (
|
|
230
|
+
if (isMainEntrypoint(import.meta.url)) {
|
|
231
231
|
runAdminParityCertification(process.env, process.argv[2]).catch((error) => {
|
|
232
232
|
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
233
233
|
process.exitCode = 1;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True when the module identified by `moduleUrl` is the process entrypoint.
|
|
3
|
+
*
|
|
4
|
+
* The obvious spelling of this check — `process.argv[1] === fileURLToPath(import.meta.url)`
|
|
5
|
+
* — is correct only when the module file is invoked by its own path. npm installs a
|
|
6
|
+
* package's `bin` entries as symlinks under `node_modules/.bin`, so a user (or an agent)
|
|
7
|
+
* running the documented command gets `process.argv[1]` pointing at the shim, never at the
|
|
8
|
+
* module file. The strings differ, the guard does not match, and the binary exits 0 having
|
|
9
|
+
* done nothing at all (#1528).
|
|
10
|
+
*
|
|
11
|
+
* That is the worst available failure shape: no output, no diagnostic, no non-zero status —
|
|
12
|
+
* nothing for a caller to react to. It is how the honua-release#123 terminal driver recorded
|
|
13
|
+
* the pinned `honua-mcp-proxy` stage as blocked.
|
|
14
|
+
*
|
|
15
|
+
* Resolving both sides through `realpath` makes the shim and the module compare equal. The
|
|
16
|
+
* guard is kept rather than dropped because these modules are also imported by tests, which
|
|
17
|
+
* must not start a server as a side effect of importing.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isMainEntrypoint(moduleUrl: string): boolean;
|
|
20
|
+
//# sourceMappingURL=entrypoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../src/entrypoint.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAkB3D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { realpathSync } from "node:fs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
/**
|
|
4
|
+
* True when the module identified by `moduleUrl` is the process entrypoint.
|
|
5
|
+
*
|
|
6
|
+
* The obvious spelling of this check — `process.argv[1] === fileURLToPath(import.meta.url)`
|
|
7
|
+
* — is correct only when the module file is invoked by its own path. npm installs a
|
|
8
|
+
* package's `bin` entries as symlinks under `node_modules/.bin`, so a user (or an agent)
|
|
9
|
+
* running the documented command gets `process.argv[1]` pointing at the shim, never at the
|
|
10
|
+
* module file. The strings differ, the guard does not match, and the binary exits 0 having
|
|
11
|
+
* done nothing at all (#1528).
|
|
12
|
+
*
|
|
13
|
+
* That is the worst available failure shape: no output, no diagnostic, no non-zero status —
|
|
14
|
+
* nothing for a caller to react to. It is how the honua-release#123 terminal driver recorded
|
|
15
|
+
* the pinned `honua-mcp-proxy` stage as blocked.
|
|
16
|
+
*
|
|
17
|
+
* Resolving both sides through `realpath` makes the shim and the module compare equal. The
|
|
18
|
+
* guard is kept rather than dropped because these modules are also imported by tests, which
|
|
19
|
+
* must not start a server as a side effect of importing.
|
|
20
|
+
*/
|
|
21
|
+
export function isMainEntrypoint(moduleUrl) {
|
|
22
|
+
const invoked = process.argv[1];
|
|
23
|
+
if (!invoked) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
const modulePath = fileURLToPath(moduleUrl);
|
|
27
|
+
if (invoked === modulePath) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
// realpathSync throws for a path that does not exist, which is not an error here:
|
|
31
|
+
// it just means this module is not what was invoked.
|
|
32
|
+
try {
|
|
33
|
+
return realpathSync(invoked) === realpathSync(modulePath);
|
|
34
|
+
}
|
|
35
|
+
catch {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAoB,MAAM,yCAAyC,CAAC;AAItF,OAAO,EAAE,KAAK,mBAAmB,EAAgC,MAAM,qBAAqB,CAAC;AAM7F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;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ED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
3
|
import { HonuaClient } from "@honua/sdk-js";
|
|
5
4
|
import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
|
+
import { isMainEntrypoint } from "./entrypoint.js";
|
|
7
7
|
import { registerNlMapControlMcpTools } from "./nl-map-control.js";
|
|
8
8
|
import * as layerSchemaResource from "./resources/layer-schema.js";
|
|
9
9
|
import * as servicesResource from "./resources/services.js";
|
|
@@ -224,7 +224,7 @@ export async function runStandalone(env = process.env) {
|
|
|
224
224
|
async function main() {
|
|
225
225
|
await runStandalone();
|
|
226
226
|
}
|
|
227
|
-
if (
|
|
227
|
+
if (isMainEntrypoint(import.meta.url)) {
|
|
228
228
|
main().catch((err) => {
|
|
229
229
|
process.stderr.write(`Fatal: ${err instanceof Error ? err.message : String(err)}\n`);
|
|
230
230
|
process.exit(1);
|
package/dist/src/proxy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/proxy.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/proxy.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAmBnE;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,WAAW,YAAY;IAC3B,sFAAsF;IACtF,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAsBD,wBAAgB,mBAAmB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,YAAY,CAqBtF;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUlF;AAED,oFAAoF;AACpF,wBAAsB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAS5E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CA+C1D;AAOD;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBlF"}
|
package/dist/src/proxy.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
2
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
4
3
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
4
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
7
6
|
import { CallToolRequestSchema, GetPromptRequestSchema, ListPromptsRequestSchema, ListResourceTemplatesRequestSchema, ListResourcesRequestSchema, ListToolsRequestSchema, PromptListChangedNotificationSchema, ReadResourceRequestSchema, ResourceListChangedNotificationSchema, ToolListChangedNotificationSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
8
7
|
import { requireSecureCredentialEndpoint } from "./credential-endpoint.js";
|
|
8
|
+
import { isMainEntrypoint } from "./entrypoint.js";
|
|
9
9
|
import { SERVER_VERSION } from "./index.js";
|
|
10
10
|
function isConfigured(value) {
|
|
11
11
|
return value !== undefined && value.length > 0;
|
|
@@ -130,7 +130,7 @@ export async function runProxy(env = process.env) {
|
|
|
130
130
|
const transport = new StdioServerTransport();
|
|
131
131
|
await server.connect(transport);
|
|
132
132
|
}
|
|
133
|
-
if (
|
|
133
|
+
if (isMainEntrypoint(import.meta.url)) {
|
|
134
134
|
runProxy().catch((err) => {
|
|
135
135
|
process.stderr.write(`Fatal: ${err instanceof Error ? err.message : String(err)}\n`);
|
|
136
136
|
process.exit(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zero-to-map-cli.d.ts","sourceRoot":"","sources":["../../../src/release/zero-to-map-cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"zero-to-map-cli.d.ts","sourceRoot":"","sources":["../../../src/release/zero-to-map-cli.ts"],"names":[],"mappings":";AAyBA,OAAO,EACL,KAAK,sBAAsB,EAI5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,sBAAsB,EAE3B,KAAK,wBAAwB,EAG9B,MAAM,kBAAkB,CAAC;AAE1B,KAAK,aAAa,GAAG,cAAc,GAAG,SAAS,CAAC;AAEhD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,g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Aa,EAAE,kBAAkB,CAAC;IAC3C,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,CAuFA;AA8CD,2EAA2E;AAC3E,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GACtC,OAAO,CAAC,sBAAsB,CAAC,CAsBjC;AA8BD,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GAEZ;IACE,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD,SAAS,CAcZ"}
|
|
@@ -11,6 +11,7 @@ import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"
|
|
|
11
11
|
import { listAllTools } from "../certification/admin-parity.js";
|
|
12
12
|
import { validateAgainstSchema } from "../certification/json-schema.js";
|
|
13
13
|
import { requireSecureCredentialEndpoint } from "../credential-endpoint.js";
|
|
14
|
+
import { isMainEntrypoint } from "../entrypoint.js";
|
|
14
15
|
import { resolveProxyOptions } from "../proxy.js";
|
|
15
16
|
import { assertZeroToMapCheckpointBindings, assertZeroToMapCheckpointDigest, assertZeroToMapCheckpointFresh, consumeZeroToMapCheckpoint, createZeroToMapCheckpoint, parseZeroToMapCheckpoint, } from "./zero-to-map-checkpoint.js";
|
|
16
17
|
import { ZERO_TO_MAP_ACCESS_GRANTS, assertAwsEcsProvisionBindings, parseAwsEcsProvisionBinding, } from "./zero-to-map-provision.js";
|
|
@@ -866,7 +867,7 @@ function printHelp() {
|
|
|
866
867
|
}
|
|
867
868
|
class HelpRequested extends Error {
|
|
868
869
|
}
|
|
869
|
-
if (
|
|
870
|
+
if (isMainEntrypoint(import.meta.url)) {
|
|
870
871
|
runZeroToMapCli().then((code) => {
|
|
871
872
|
process.exitCode = code;
|
|
872
873
|
}, (error) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@honua/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9-beta.0",
|
|
4
4
|
"description": "Platform-free MCP server for geospatial services: expose discovery, query, and analysis over any public ArcGIS/Esri FeatureServer or OGC API endpoint to any MCP client, with no platform lock-in",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Honua",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"fast-uri": "^3.1.3"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@honua/sdk-js": "^0.1.
|
|
90
|
+
"@honua/sdk-js": "^0.1.9-beta.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@biomejs/biome": "1.9.4",
|