@opengeni/capabilities 0.1.1 → 0.3.0-canary.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/README.md +18 -2
- package/THIRD_PARTY_NOTICES +2 -2
- package/dist/graphql.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +374 -123
- package/dist/index.js.map +1 -1
- package/dist/integration-definitions.d.ts +57 -0
- package/dist/integration-presentations.d.ts +32 -0
- package/dist/mcp-bridge.d.ts +41 -0
- package/dist/openapi.d.ts +1 -1
- package/dist/types.d.ts +4 -2
- package/package.json +2 -2
- package/src/graphql.ts +24 -8
- package/src/index.ts +3 -1
- package/src/{providers.ts → integration-definitions.ts} +161 -137
- package/src/integration-presentations.ts +185 -0
- package/src/mcp-bridge.ts +117 -0
- package/src/openapi.ts +21 -5
- package/src/types.ts +4 -2
- package/dist/providers.d.ts +0 -44
package/README.md
CHANGED
|
@@ -13,11 +13,27 @@ Security defaults:
|
|
|
13
13
|
|
|
14
14
|
- credentials are resolved for one exact destination and verified before use;
|
|
15
15
|
- header, query, and cookie placements are bounded and validated atomically;
|
|
16
|
-
- Google/Microsoft
|
|
16
|
+
- curated Google/Microsoft Integration Definition OAuth stays in the normal encrypted Connection spine;
|
|
17
17
|
- redirects are never followed on credential-bearing requests;
|
|
18
18
|
- response bodies, schemas, operation counts, and deadlines are bounded;
|
|
19
19
|
- mutating operations are marked approval-required by default;
|
|
20
20
|
- a safe read/query may refresh and retry exactly once on `401`, while a
|
|
21
21
|
mutation is never replayed after an ambiguous provider authorization result;
|
|
22
22
|
and
|
|
23
|
-
- errors contain structural recovery facts, never provider bodies or secrets.
|
|
23
|
+
- errors contain structural recovery facts, never provider bodies or secrets.
|
|
24
|
+
|
|
25
|
+
## Local MCP bridge kit
|
|
26
|
+
|
|
27
|
+
`src/mcp-bridge.ts` defines the shared contract for provider APIs exposed as
|
|
28
|
+
in-process MCP servers. A bridge declares a secret-free catalog identity,
|
|
29
|
+
actual authority class, reviewed tool-surface class, 1-32 exact HTTPS
|
|
30
|
+
destinations, and the safe-read-only replay rule. Adapter matching is generic
|
|
31
|
+
and fails closed on ambiguity. The descriptor is not authorization: each
|
|
32
|
+
adapter still revalidates its Connection or host-owned authority before every
|
|
33
|
+
provider request.
|
|
34
|
+
|
|
35
|
+
The Gmail REST adapter is the static reviewed example. OpenAPI and GraphQL
|
|
36
|
+
Integration Definitions keep their existing local MCP adapters without
|
|
37
|
+
claiming this descriptor. Google Drive remains one functional Integration row
|
|
38
|
+
with its existing Connection and facet authority. See
|
|
39
|
+
`docs/design/first-party-mcp-bridges.md`.
|
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -2,8 +2,8 @@ This package contains adapted portions of Executor (https://github.com/executorj
|
|
|
2
2
|
copyright (c) 2026 Rhys Sullivan, used under the MIT License.
|
|
3
3
|
|
|
4
4
|
The adapted concepts include deterministic MCP tool identifiers, OpenAPI and
|
|
5
|
-
GraphQL extraction/invocation boundaries, auth-placement modeling,
|
|
6
|
-
|
|
5
|
+
GraphQL extraction/invocation boundaries, auth-placement modeling, curated
|
|
6
|
+
Integration Definition normalization, and MCP manifest projection. Executor's Effect/FumaDB
|
|
7
7
|
application architecture, persistence, secret stores, runtime hosts, and UI
|
|
8
8
|
state are not included.
|
|
9
9
|
|
package/dist/graphql.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface GraphqlOperationBinding {
|
|
|
12
12
|
}
|
|
13
13
|
export type GraphqlRevision = IntegrationRevision<GraphqlOperationBinding, "graphql">;
|
|
14
14
|
export interface CompileGraphqlOptions {
|
|
15
|
-
readonly
|
|
15
|
+
readonly definitionId: string;
|
|
16
16
|
readonly endpoint: string;
|
|
17
17
|
readonly name?: string;
|
|
18
18
|
readonly sourceUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ export * from "./auth.js";
|
|
|
2
2
|
export * from "./graphql.js";
|
|
3
3
|
export * from "./http.js";
|
|
4
4
|
export * from "./mcp-manifest.js";
|
|
5
|
+
export * from "./mcp-bridge.js";
|
|
5
6
|
export * from "./openapi.js";
|
|
6
|
-
export * from "./
|
|
7
|
+
export * from "./integration-definitions.js";
|
|
8
|
+
export * from "./integration-presentations.js";
|
|
7
9
|
export * from "./revision.js";
|
|
8
10
|
export * from "./types.js";
|