@dxos/introspect-mcp 0.0.0 → 0.8.4-main.3fbcb4aa9b
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 +8 -0
- package/README.md +6 -1
- package/dist/lib/node-esm/{chunk-63HTIHM3.mjs → chunk-A3LNEW4B.mjs} +6 -2
- package/dist/lib/node-esm/{chunk-63HTIHM3.mjs.map → chunk-A3LNEW4B.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/index.mjs.map +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/tools/index.mjs +1 -1
- package/dist/types/src/tools/shaping.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -17
- package/src/server/http.test.ts +1 -1
- package/src/server/server.ts +7 -1
- package/src/tools/shaping.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/introspect-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.4-main.3fbcb4aa9b",
|
|
4
4
|
"description": "MCP server exposing DXOS monorepo introspection.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -31,23 +31,26 @@
|
|
|
31
31
|
"dist",
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"start": "tsx --conditions=source src/cli.ts"
|
|
36
|
-
},
|
|
37
34
|
"dependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
35
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
36
|
+
"effect": "3.20.0",
|
|
37
|
+
"zod": "^4.0.0",
|
|
38
|
+
"@dxos/effect-zod": "0.8.4-main.3fbcb4aa9b",
|
|
39
|
+
"@dxos/introspect": "0.8.4-main.3fbcb4aa9b",
|
|
40
|
+
"@dxos/introspect-tools": "0.8.4-main.3fbcb4aa9b",
|
|
41
|
+
"@dxos/log": "0.8.4-main.3fbcb4aa9b",
|
|
42
|
+
"@dxos/util": "0.8.4-main.3fbcb4aa9b"
|
|
46
43
|
},
|
|
47
44
|
"devDependencies": {
|
|
48
|
-
"@types/node": "
|
|
49
|
-
"tsx": "
|
|
50
|
-
"typescript": "
|
|
51
|
-
"vitest": "
|
|
45
|
+
"@types/node": "22.10.2",
|
|
46
|
+
"tsx": "^4.21.0",
|
|
47
|
+
"typescript": "^6.0.3",
|
|
48
|
+
"vitest": "4.1.5"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"start": "tsx --conditions=source src/cli.ts"
|
|
52
55
|
}
|
|
53
|
-
}
|
|
56
|
+
}
|
package/src/server/http.test.ts
CHANGED
|
@@ -31,7 +31,7 @@ describe('http integration', () => {
|
|
|
31
31
|
let client: Client;
|
|
32
32
|
|
|
33
33
|
beforeAll(async () => {
|
|
34
|
-
const tsx = join(FIXTURE_ROOT, '..', '..', '..', '..', '..', 'node_modules', '.bin', 'tsx');
|
|
34
|
+
const tsx = join(FIXTURE_ROOT, '..', '..', '..', '..', '..', '..', 'node_modules', '.bin', 'tsx');
|
|
35
35
|
serverProcess = spawn(
|
|
36
36
|
tsx,
|
|
37
37
|
['--conditions=source', CLI_PATH, '--root', FIXTURE_ROOT, '--http', String(PORT), '--host', HOST],
|
package/src/server/server.ts
CHANGED
|
@@ -73,7 +73,13 @@ const toToolResult = (shaped: ToolResult): McpToolResult => {
|
|
|
73
73
|
if (shaped.truncated) {
|
|
74
74
|
payload.truncated = shaped.truncated;
|
|
75
75
|
}
|
|
76
|
+
|
|
76
77
|
return {
|
|
77
|
-
content: [
|
|
78
|
+
content: [
|
|
79
|
+
{
|
|
80
|
+
type: 'text',
|
|
81
|
+
text: JSON.stringify(payload, null, 2),
|
|
82
|
+
},
|
|
83
|
+
],
|
|
78
84
|
};
|
|
79
85
|
};
|
package/src/tools/shaping.ts
CHANGED
|
@@ -138,6 +138,8 @@ export const shapeListPlugins = (all: Plugin[], opts: ListOptions = {}): ToolRes
|
|
|
138
138
|
description: p.description,
|
|
139
139
|
icon: p.icon,
|
|
140
140
|
iconHue: p.iconHue,
|
|
141
|
+
tags: p.tags,
|
|
142
|
+
dependsOn: p.dependsOn,
|
|
141
143
|
}),
|
|
142
144
|
compact: (p) => ({ id: p.id, name: p.name }),
|
|
143
145
|
truncationHint: 'raise `limit` (max 200) or filter with `id` substring.',
|
|
@@ -157,6 +159,8 @@ export const shapePluginDetail = (detail: PluginDetail): ToolResult => ({
|
|
|
157
159
|
description: detail.description,
|
|
158
160
|
icon: detail.icon,
|
|
159
161
|
iconHue: detail.iconHue,
|
|
162
|
+
tags: detail.tags,
|
|
163
|
+
dependsOn: detail.dependsOn,
|
|
160
164
|
metaLocation: detail.metaLocation,
|
|
161
165
|
surfaces: detail.surfaces.map((s) => ({ id: s.id, role: s.role })),
|
|
162
166
|
capabilities: detail.capabilities.map((c) => ({ type: c.type })),
|