@dxos/introspect-mcp 0.9.1-main.c7dcc2e112 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/introspect-mcp",
3
- "version": "0.9.1-main.c7dcc2e112",
3
+ "version": "0.10.0",
4
4
  "description": "MCP server exposing DXOS monorepo introspection.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,13 +33,13 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@modelcontextprotocol/sdk": "^1.27.1",
36
- "effect": "3.21.3",
36
+ "effect": "3.21.4",
37
37
  "zod": "^4.0.0",
38
- "@dxos/effect-zod": "0.9.1-main.c7dcc2e112",
39
- "@dxos/util": "0.9.1-main.c7dcc2e112",
40
- "@dxos/introspect-tools": "0.9.1-main.c7dcc2e112",
41
- "@dxos/log": "0.9.1-main.c7dcc2e112",
42
- "@dxos/introspect": "0.9.1-main.c7dcc2e112"
38
+ "@dxos/effect-zod": "0.10.0",
39
+ "@dxos/introspect": "0.10.0",
40
+ "@dxos/introspect-tools": "0.10.0",
41
+ "@dxos/log": "0.10.0",
42
+ "@dxos/util": "0.10.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "22.10.2",
package/src/index.ts CHANGED
@@ -6,5 +6,5 @@
6
6
  // here for convenience, but consumers wanting only the tools (without the
7
7
  // stdio/HTTP server) should import from `@dxos/introspect-mcp/tools`.
8
8
 
9
- export { createServer, main, type ServerOptions } from './server';
10
- export { fileLogger, noopLogger, type ToolLogEntry, type ToolLogger } from './tools';
9
+ export { type ServerOptions, createServer, main } from './server';
10
+ export { type ToolLogEntry, type ToolLogger, fileLogger, noopLogger } from './tools';
@@ -6,5 +6,5 @@
6
6
  // readiness gate. Tool *definitions* live in `../tools` so they can be
7
7
  // embedded into a different MCP runtime without dragging in this server.
8
8
 
9
- export { createServer, type ServerOptions } from './server';
9
+ export { type ServerOptions, createServer } from './server';
10
10
  export { main } from './main';
@@ -10,7 +10,7 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
10
10
  import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
11
11
  import { randomUUID } from 'node:crypto';
12
12
  import { existsSync } from 'node:fs';
13
- import { createServer as createHttpServer, type IncomingMessage, type ServerResponse } from 'node:http';
13
+ import { type IncomingMessage, type ServerResponse, createServer as createHttpServer } from 'node:http';
14
14
  import { dirname, isAbsolute, resolve } from 'node:path';
15
15
 
16
16
  import { createIntrospector } from '@dxos/introspect';
@@ -14,7 +14,7 @@ import { dirname, join } from 'node:path';
14
14
  import { fileURLToPath } from 'node:url';
15
15
  import { afterAll, beforeAll, describe, expect, test } from 'vitest';
16
16
 
17
- import { createIntrospector, type Introspector } from '@dxos/introspect';
17
+ import { type Introspector, createIntrospector } from '@dxos/introspect';
18
18
 
19
19
  import { createServer } from './server';
20
20
 
@@ -7,7 +7,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
7
7
  import type { Introspector } from '@dxos/introspect';
8
8
  import { inputSchemaToZod } from '@dxos/introspect-tools';
9
9
 
10
- import { createToolDefinitions, registerLogger, type ToolLogger, type ToolResult } from '../tools';
10
+ import { type ToolLogger, type ToolResult, createToolDefinitions, registerLogger } from '../tools';
11
11
 
12
12
  export type ServerOptions = {
13
13
  introspector: Introspector;
@@ -11,8 +11,9 @@
11
11
  //
12
12
  // Importable as `@dxos/introspect-mcp/tools` (see package.json `exports`).
13
13
 
14
- export { createToolDefinitions, type ToolDefinition } from './tools';
14
+ export { type ToolDefinition, createToolDefinitions } from './tools';
15
15
  export {
16
+ type ToolResult,
16
17
  shapeFindSymbol,
17
18
  shapeGetPackage,
18
19
  shapeGetSymbol,
@@ -23,6 +24,5 @@ export {
23
24
  shapeListSchemas,
24
25
  shapeListSurfaces,
25
26
  shapePluginDetail,
26
- type ToolResult,
27
27
  } from './shaping';
28
- export { fileLogger, noopLogger, registerLogger, type ToolLogEntry, type ToolLogger } from './logger';
28
+ export { type ToolLogEntry, type ToolLogger, fileLogger, noopLogger, registerLogger } from './logger';
@@ -23,7 +23,7 @@ import type {
23
23
  SymbolDetail,
24
24
  SymbolMatch,
25
25
  } from '@dxos/introspect';
26
- import { DEFAULT_LIST_LIMIT, MAX_LIST_LIMIT, type ListOptions } from '@dxos/introspect-tools';
26
+ import { DEFAULT_LIST_LIMIT, type ListOptions, MAX_LIST_LIMIT } from '@dxos/introspect-tools';
27
27
 
28
28
  const SOURCE_PREVIEW = 1200;
29
29
  const JSDOC_PREVIEW = 600;
@@ -28,7 +28,6 @@ import type * as Schema from 'effect/Schema';
28
28
 
29
29
  import type { Introspector } from '@dxos/introspect';
30
30
  import {
31
- TOOL_METADATA,
32
31
  type FindSymbolArgs,
33
32
  type GetPackageArgs,
34
33
  type GetSymbolArgs,
@@ -41,10 +40,12 @@ import {
41
40
  type ListSchemasArgs,
42
41
  type ListSurfacesArgs,
43
42
  type ListSymbolsArgs,
43
+ TOOL_METADATA,
44
44
  } from '@dxos/introspect-tools';
45
45
 
46
46
  import type { ToolLogger } from './logger';
47
47
  import {
48
+ type ToolResult,
48
49
  shapeFindSymbol,
49
50
  shapeGetPackage,
50
51
  shapeGetSymbol,
@@ -55,7 +56,6 @@ import {
55
56
  shapeListPlugins,
56
57
  shapeListSchemas,
57
58
  shapeListSurfaces,
58
- type ToolResult,
59
59
  } from './shaping';
60
60
 
61
61
  /** Pull the list-options bag out of an args object before forwarding to a shaper. */