mcp-layer 0.1.1 → 0.2.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 +4 -0
- package/package.json +4 -2
- package/src/index.js +12 -0
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
- **CLI layers** that expose MCP tools as commands with validated input.
|
|
19
19
|
- **REST gateways** that generate endpoints and schemas from MCP tool definitions.
|
|
20
|
+
- **GraphQL gateways** that expose generated and generic operations on top of MCP catalogs.
|
|
20
21
|
- **UI renderers** that surface MCP Apps resources using `_meta.ui` metadata.
|
|
21
22
|
- **New MCP layers** that programmatically reason about tool/resource catalogs.
|
|
22
23
|
|
|
@@ -44,6 +45,7 @@ await link.close();
|
|
|
44
45
|
| [`@mcp-layer/connect`](packages/connect/README.md) | Connect to MCP servers over stdio and return a closeable Session. |
|
|
45
46
|
| [`@mcp-layer/attach`](packages/attach/README.md) | Attach to in-process MCP SDK servers or Platformatic Fastify MCP plugins and return a Session. |
|
|
46
47
|
| [`@mcp-layer/schema`](packages/schema/README.md) | Extract tools/resources/prompts/templates into a unified Zod-backed schema (including MCP Apps metadata). |
|
|
48
|
+
| [`@mcp-layer/gateway`](packages/gateway/README.md) | Shared adapter runtime primitives for catalog bootstrap, validation, resilience, telemetry, and deterministic mapping. |
|
|
47
49
|
| [`@mcp-layer/test-server`](packages/test-server/README.md) | Feature-complete MCP server for integration tests and local exploration. |
|
|
48
50
|
| [`@mcp-layer/openapi`](packages/openapi/README.md) | Generate OpenAPI 3.1 specs from MCP catalogs. |
|
|
49
51
|
| [`@mcp-layer/rest`](packages/rest/README.md) | Fastify plugin that exposes MCP servers over REST. |
|
|
@@ -55,6 +57,7 @@ await link.close();
|
|
|
55
57
|
| [`@mcp-layer/cli`](packages/cli/README.md) | CLI framework for turning MCP schemas into commands. |
|
|
56
58
|
| [`@mcp-layer/openapi`](packages/openapi/README.md) | OpenAPI 3.1 generation for REST surfaces. |
|
|
57
59
|
| [`@mcp-layer/rest`](packages/rest/README.md) | Fastify plugin for HTTP REST exposure. |
|
|
60
|
+
| [`@mcp-layer/graphql`](packages/graphql/README.md) | Fastify plugin and schema builder for GraphQL exposure on MCP catalogs. |
|
|
58
61
|
|
|
59
62
|
## CLI quick try
|
|
60
63
|
|
|
@@ -85,6 +88,7 @@ await session.close();
|
|
|
85
88
|
## Design principles
|
|
86
89
|
|
|
87
90
|
- **Single source of truth**: normalized schemas flow from the MCP server, not from tool-specific parsing.
|
|
91
|
+
- **Layered adapters**: `schema -> gateway -> rest/graphql` keeps protocol logic centralized while adapters stay thin.
|
|
88
92
|
- **Minimal surface area**: each package does one job and composes cleanly with the others.
|
|
89
93
|
- **Real integration tests**: no mocks; the test server is used as a real MCP target.
|
|
90
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-layer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Layers of functionality that can be add to any MCP server. ",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,9 +34,11 @@
|
|
|
34
34
|
"@mcp-layer/config": "1.0.1",
|
|
35
35
|
"@mcp-layer/connect": "1.0.1",
|
|
36
36
|
"@mcp-layer/error": "0.2.0",
|
|
37
|
+
"@mcp-layer/gateway": "0.2.0",
|
|
38
|
+
"@mcp-layer/graphql": "0.2.0",
|
|
37
39
|
"@mcp-layer/manager": "0.2.0",
|
|
38
40
|
"@mcp-layer/openapi": "1.1.1",
|
|
39
|
-
"@mcp-layer/rest": "1.2.
|
|
41
|
+
"@mcp-layer/rest": "1.2.1",
|
|
40
42
|
"@mcp-layer/schema": "1.0.2",
|
|
41
43
|
"@mcp-layer/session": "1.0.0",
|
|
42
44
|
"@mcp-layer/test-server": "1.0.1"
|
package/src/index.js
CHANGED
|
@@ -34,6 +34,18 @@ export * as connect from '@mcp-layer/connect';
|
|
|
34
34
|
*/
|
|
35
35
|
export * as error from '@mcp-layer/error';
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Package namespace from `@mcp-layer/gateway`.
|
|
39
|
+
* @type {typeof import('@mcp-layer/gateway')}
|
|
40
|
+
*/
|
|
41
|
+
export * as gateway from '@mcp-layer/gateway';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Package namespace from `@mcp-layer/graphql`.
|
|
45
|
+
* @type {typeof import('@mcp-layer/graphql')}
|
|
46
|
+
*/
|
|
47
|
+
export * as graphql from '@mcp-layer/graphql';
|
|
48
|
+
|
|
37
49
|
/**
|
|
38
50
|
* Package namespace from `@mcp-layer/manager`.
|
|
39
51
|
* @type {typeof import('@mcp-layer/manager')}
|