@appport/mcp 1.1.0 → 1.3.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/LICENSE +126 -0
- package/README.md +9 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/project.d.ts +8 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +13 -2
- package/dist/project.js.map +1 -1
- package/dist/projection.d.ts +15 -0
- package/dist/projection.d.ts.map +1 -0
- package/dist/projection.js +12 -0
- package/dist/projection.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +6 -1
- package/dist/server.js.map +1 -1
- package/package.json +8 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship.
|
|
43
|
+
|
|
44
|
+
"Contribution" shall mean any work of authorship, including
|
|
45
|
+
the original version of the Work and any modifications or additions
|
|
46
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
47
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
48
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
49
|
+
the copyright owner.
|
|
50
|
+
|
|
51
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
52
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
53
|
+
subsequently incorporated within the Work.
|
|
54
|
+
|
|
55
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
56
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
57
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
58
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
59
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
60
|
+
Work and such Derivative Works in Source or Object form.
|
|
61
|
+
|
|
62
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
63
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
64
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
65
|
+
(except as stated in this section) patent license to make, have made,
|
|
66
|
+
use, offer to sell, sell, import, and otherwise transfer the Work.
|
|
67
|
+
|
|
68
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
69
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
70
|
+
modifications, and in Source or Object form, provided that You
|
|
71
|
+
meet the following conditions:
|
|
72
|
+
|
|
73
|
+
(a) You must give any other recipients of the Work or
|
|
74
|
+
Derivative Works a copy of this License; and
|
|
75
|
+
|
|
76
|
+
(b) You must cause any modified files to carry prominent notices
|
|
77
|
+
stating that You changed the files; and
|
|
78
|
+
|
|
79
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
80
|
+
that You distribute, all copyright, patent, trademark, and
|
|
81
|
+
attribution notices from the Source form of the Work; and
|
|
82
|
+
|
|
83
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
84
|
+
distribution, then any Derivative Works that You distribute must
|
|
85
|
+
include a readable copy of the attribution notices contained
|
|
86
|
+
within such NOTICE file.
|
|
87
|
+
|
|
88
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
89
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
90
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
91
|
+
this License, without any additional terms or conditions.
|
|
92
|
+
|
|
93
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
94
|
+
names, trademarks, service marks, or product names of the Licensor.
|
|
95
|
+
|
|
96
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
97
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
98
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
99
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
100
|
+
implied.
|
|
101
|
+
|
|
102
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
103
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
104
|
+
shall any Contributor be liable to You for damages.
|
|
105
|
+
|
|
106
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
107
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
108
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
109
|
+
or other liability obligations and/or rights consistent with this
|
|
110
|
+
License.
|
|
111
|
+
|
|
112
|
+
END OF TERMS AND CONDITIONS
|
|
113
|
+
|
|
114
|
+
Copyright 2026 AppPort contributors
|
|
115
|
+
|
|
116
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
117
|
+
you may not use this file except in compliance with the License.
|
|
118
|
+
You may obtain a copy of the License at
|
|
119
|
+
|
|
120
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
121
|
+
|
|
122
|
+
Unless required by applicable law or agreed to in writing, software
|
|
123
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
124
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
125
|
+
See the License for the specific language governing permissions and
|
|
126
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -164,3 +164,12 @@ AppPort idempotency key, timeout and trace ID (previously dropped), and its
|
|
|
164
164
|
results now carry `structuredContent` and `_meta`. Prefer `createMcpHandler` /
|
|
165
165
|
`createMcpServer`, which speak MCP; `fromToolName` is lossy for capability names
|
|
166
166
|
containing `_` and is not used internally.
|
|
167
|
+
|
|
168
|
+
## `@appport/mcp/bridge` (1.3.0)
|
|
169
|
+
|
|
170
|
+
`@appport/mcp/bridge` exports the projection only: `createMcpBridge`, `toMcpTools`, `toToolName`, `fromToolName`, `MCP_META`,
|
|
171
|
+
`MCP_ERROR_META`, `mcpErrorCategory` and their types. It never imports `@modelcontextprotocol/sdk`, at runtime or in its declarations.
|
|
172
|
+
The root `@appport/mcp` exports the same names plus the MCP server (`createMcpServer`, `createMcpHandler`), which does. The MCP SDK's own
|
|
173
|
+
declarations reference the DOM-only `HeadersInit`, so a Node-only TypeScript project (no `DOM` lib, `skipLibCheck: false`) can import
|
|
174
|
+
`@appport/mcp/bridge` but must either add the DOM lib or enable `skipLibCheck` to import the `@appport/mcp` root.
|
|
175
|
+
`@appport/sdk` takes its MCP bridge exports from this subpath.
|
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export { createMcpServer, createMcpHandler } from "./server.js";
|
|
12
12
|
export type { McpAuthInfo, McpCallerContext, McpCallerRequest, McpHandler, McpServerOptions } from "./server.js";
|
|
13
|
-
export
|
|
14
|
-
export type { McpBridgeOptions, McpTool } from "./project.js";
|
|
15
|
-
export { MCP_ERROR_META, MCP_META, mcpErrorCategory } from "./translate.js";
|
|
16
|
-
export type { McpCallMetadata, McpErrorCategory, McpToolResult } from "./translate.js";
|
|
17
|
-
export { createMcpBridge } from "./bridge.js";
|
|
18
|
-
export type { McpBridge } from "./bridge.js";
|
|
13
|
+
export * from "./projection.js";
|
|
19
14
|
/** Turns an AppPort error into the text an agent should see. */
|
|
20
15
|
export declare function describeError(error: unknown): string;
|
|
21
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChE,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChE,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,cAAc,iBAAiB,CAAC;AAIhC,gEAAgE;AAChE,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEpD"}
|
package/dist/index.js
CHANGED
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
* `@modelcontextprotocol/sdk`.
|
|
10
10
|
*/
|
|
11
11
|
export { createMcpServer, createMcpHandler } from "./server.js";
|
|
12
|
-
export
|
|
13
|
-
export { MCP_ERROR_META, MCP_META, mcpErrorCategory } from "./translate.js";
|
|
14
|
-
export { createMcpBridge } from "./bridge.js";
|
|
12
|
+
export * from "./projection.js";
|
|
15
13
|
import { AppPortError } from "@appport/protocol";
|
|
16
14
|
/** Turns an AppPort error into the text an agent should see. */
|
|
17
15
|
export function describeError(error) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAShE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAShE,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,gEAAgE;AAChE,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,uCAAuC,CAAC;AAC9G,CAAC"}
|
package/dist/project.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AppPortManifest, type AuthorizationRequirement, type CapabilityEffect, type CapabilityIntegration, type CapabilityManifestEntry, type IdempotencySupport, type JSONSchema } from "@appport/protocol";
|
|
2
2
|
/**
|
|
3
3
|
* Projection of AppPort capabilities onto MCP tools.
|
|
4
4
|
*
|
|
@@ -17,6 +17,13 @@ export interface McpTool {
|
|
|
17
17
|
version: number;
|
|
18
18
|
authorization: string[];
|
|
19
19
|
outputSchema: JSONSchema;
|
|
20
|
+
/** Whether the capability only observes state or may change it. Absent only if the manifest omits it. */
|
|
21
|
+
effect?: CapabilityEffect;
|
|
22
|
+
idempotency?: IdempotencySupport;
|
|
23
|
+
emits?: string[];
|
|
24
|
+
authorizationContract?: AuthorizationRequirement;
|
|
25
|
+
/** Published purpose, authority and declared effects (`appport.integration/1`). */
|
|
26
|
+
integration?: CapabilityIntegration;
|
|
20
27
|
};
|
|
21
28
|
}
|
|
22
29
|
export interface McpBridgeOptions {
|
package/dist/project.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;GAMG;AAEH,iFAAiF;AACjF,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,CAAC;IACxB,yEAAyE;IACzE,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,YAAY,EAAE,UAAU,CAAC;QACzB,yGAAyG;QACzG,MAAM,CAAC,EAAE,gBAAgB,CAAC;QAC1B,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,qBAAqB,CAAC,EAAE,wBAAwB,CAAC;QACjD,mFAAmF;QACnF,WAAW,CAAC,EAAE,qBAAqB,CAAC;KACrC,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,OAAO,CAAC;IACtD,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAGlE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,GAAE,gBAAqB,GAAG,OAAO,EAAE,CA0C/F"}
|
package/dist/project.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getIntegration, integrationKey } from "@appport/protocol";
|
|
1
2
|
/**
|
|
2
3
|
* Deterministic capability → tool name projection: `.` becomes `_`, then the
|
|
3
4
|
* optional prefix is applied. The tool name is a derived label, never an
|
|
@@ -30,7 +31,12 @@ export function toMcpTools(manifest, options = {}) {
|
|
|
30
31
|
.filter((entry) => includeBuiltins || !entry.name.startsWith("appport."))
|
|
31
32
|
.filter((entry) => entry.inputSchema.type === "object")
|
|
32
33
|
.filter((entry) => options.include?.(entry) ?? true)
|
|
33
|
-
.map((entry) =>
|
|
34
|
+
.map((entry) => {
|
|
35
|
+
const version = entry.definitions.find((definition) => definition.version === entry.latestVersion);
|
|
36
|
+
const integration = getIntegration(manifest)?.capabilities[integrationKey(entry.name, entry.latestVersion)];
|
|
37
|
+
return { entry, version, integration };
|
|
38
|
+
})
|
|
39
|
+
.map(({ entry, version, integration }) => ({
|
|
34
40
|
name: toToolName(entry.name, options.prefix),
|
|
35
41
|
description: entry.description ??
|
|
36
42
|
`Invokes the ${entry.name} capability of ${manifest.application.name} (version ${entry.latestVersion}).`,
|
|
@@ -39,7 +45,12 @@ export function toMcpTools(manifest, options = {}) {
|
|
|
39
45
|
capability: entry.name,
|
|
40
46
|
version: entry.latestVersion,
|
|
41
47
|
authorization: entry.authorization,
|
|
42
|
-
outputSchema: entry.outputSchema
|
|
48
|
+
outputSchema: entry.outputSchema,
|
|
49
|
+
...(entry.effect ? { effect: entry.effect } : {}),
|
|
50
|
+
...(entry.idempotency ? { idempotency: entry.idempotency } : {}),
|
|
51
|
+
...(version?.emits?.length ? { emits: [...version.emits] } : {}),
|
|
52
|
+
...(entry.authorizationContract ? { authorizationContract: entry.authorizationContract } : {}),
|
|
53
|
+
...(integration ? { integration } : {})
|
|
43
54
|
}
|
|
44
55
|
}));
|
|
45
56
|
const seen = new Map();
|
package/dist/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EAQf,MAAM,mBAAmB,CAAC;AAwC3B;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,UAAkB,EAAE,MAAe;IAC5D,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC5C,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CA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CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxC;KACF,CAAC,CAAC,CAAC;IAEN,MAAM,IAAI,GAAG,IAAI,GAAG,EAAkB,CAAC;IACvC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,0CAA0C,QAAQ,UAAU,IAAI,CAAC,QAAQ,CAAC,UAAU,sBAAsB,IAAI,CAAC,IAAI,GAAG,CACvH,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MCP projection of an AppPort application: tool derivation, call translation and the bridge.
|
|
3
|
+
*
|
|
4
|
+
* Nothing here touches `@modelcontextprotocol/sdk`, at runtime or in its declarations. That matters to a consumer: the MCP SDK's own
|
|
5
|
+
* declarations reference the DOM-only `HeadersInit`, so any module graph that reaches them cannot compile in a Node-only TypeScript
|
|
6
|
+
* project. `@appport/mcp/bridge` is therefore safe to import from code that must stay Node-only (the SDK root does exactly that);
|
|
7
|
+
* `@appport/mcp` (the root) additionally exports the MCP server, which does use the MCP SDK.
|
|
8
|
+
*/
|
|
9
|
+
export { toMcpTools, toToolName, fromToolName } from "./project.js";
|
|
10
|
+
export type { McpBridgeOptions, McpTool } from "./project.js";
|
|
11
|
+
export { MCP_ERROR_META, MCP_META, mcpErrorCategory } from "./translate.js";
|
|
12
|
+
export type { McpCallMetadata, McpErrorCategory, McpToolResult } from "./translate.js";
|
|
13
|
+
export { createMcpBridge } from "./bridge.js";
|
|
14
|
+
export type { McpBridge } from "./bridge.js";
|
|
15
|
+
//# sourceMappingURL=projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../src/projection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MCP projection of an AppPort application: tool derivation, call translation and the bridge.
|
|
3
|
+
*
|
|
4
|
+
* Nothing here touches `@modelcontextprotocol/sdk`, at runtime or in its declarations. That matters to a consumer: the MCP SDK's own
|
|
5
|
+
* declarations reference the DOM-only `HeadersInit`, so any module graph that reaches them cannot compile in a Node-only TypeScript
|
|
6
|
+
* project. `@appport/mcp/bridge` is therefore safe to import from code that must stay Node-only (the SDK root does exactly that);
|
|
7
|
+
* `@appport/mcp` (the root) additionally exports the MCP server, which does use the MCP SDK.
|
|
8
|
+
*/
|
|
9
|
+
export { toMcpTools, toToolName, fromToolName } from "./project.js";
|
|
10
|
+
export { MCP_ERROR_META, MCP_META, mcpErrorCategory } from "./translate.js";
|
|
11
|
+
export { createMcpBridge } from "./bridge.js";
|
|
12
|
+
//# sourceMappingURL=projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection.js","sourceRoot":"","sources":["../src/projection.ts"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AE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,gBAAgB,GAAG,SAAS,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;CAC/G;AAqFD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,kBAAkB,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAEvG;AAED,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,WAAW,CAAA;CAAE,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEpG;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,kBAAkB,EAAE,OAAO,GAAE,gBAAqB,GAAG,UAAU,CAoB5G"}
|
package/dist/server.js
CHANGED
|
@@ -19,7 +19,12 @@ function describeTool(tool) {
|
|
|
19
19
|
"dev.appport/capability": {
|
|
20
20
|
name: tool._appport.capability,
|
|
21
21
|
version: tool._appport.version,
|
|
22
|
-
authorization: tool._appport.authorization
|
|
22
|
+
authorization: tool._appport.authorization,
|
|
23
|
+
...(tool._appport.effect ? { effect: tool._appport.effect } : {}),
|
|
24
|
+
...(tool._appport.idempotency ? { idempotency: tool._appport.idempotency } : {}),
|
|
25
|
+
...(tool._appport.emits ? { emits: tool._appport.emits } : {}),
|
|
26
|
+
...(tool._appport.authorizationContract ? { authorizationContract: tool._appport.authorizationContract } : {}),
|
|
27
|
+
...(tool._appport.integration ? { integration: tool._appport.integration } : {})
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
};
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":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CAAC;gBAAS,CAAC;YACT,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appport/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Expose AppPort capabilities as MCP tools.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"engines": { "node": ">=20" },
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/rkendel1/appport.git",
|
|
@@ -15,6 +16,10 @@
|
|
|
15
16
|
".": {
|
|
16
17
|
"types": "./dist/index.d.ts",
|
|
17
18
|
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./bridge": {
|
|
21
|
+
"types": "./dist/projection.d.ts",
|
|
22
|
+
"import": "./dist/projection.js"
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
25
|
"files": [
|
|
@@ -26,8 +31,8 @@
|
|
|
26
31
|
"clean": "tsc -b --clean"
|
|
27
32
|
},
|
|
28
33
|
"dependencies": {
|
|
29
|
-
"@appport/core": "1.0
|
|
30
|
-
"@appport/protocol": "1.0
|
|
34
|
+
"@appport/core": "1.1.0",
|
|
35
|
+
"@appport/protocol": "1.1.0",
|
|
31
36
|
"@modelcontextprotocol/sdk": "^1.31.0"
|
|
32
37
|
},
|
|
33
38
|
"publishConfig": {
|