@databrainhq/mcp-server 0.3.0-rc.1 → 0.3.0-rc.10

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.
Files changed (45) hide show
  1. package/README.md +152 -7
  2. package/dist/apps/server.d.ts +6 -6
  3. package/dist/apps/server.js +4 -2
  4. package/dist/apps/stdio.js +5 -3
  5. package/dist/apps/stdio.js.map +1 -1
  6. package/dist/chunk-5IGP6A6T.js +496 -0
  7. package/dist/chunk-5IGP6A6T.js.map +1 -0
  8. package/dist/{chunk-RF3HTNO7.js → chunk-CUPL7CAN.js} +2 -2
  9. package/dist/{chunk-7DS7OLWP.js → chunk-ERTAKB2H.js} +1877 -1182
  10. package/dist/chunk-ERTAKB2H.js.map +1 -0
  11. package/dist/chunk-N7X762VU.js +34 -0
  12. package/dist/chunk-N7X762VU.js.map +1 -0
  13. package/dist/chunk-OCBTNAAO.js +1946 -0
  14. package/dist/chunk-OCBTNAAO.js.map +1 -0
  15. package/dist/{chunk-JCXUZ3QZ.js → chunk-Z3ZHN4UW.js} +34 -6
  16. package/dist/chunk-Z3ZHN4UW.js.map +1 -0
  17. package/dist/cli.d.ts +15 -0
  18. package/dist/cli.js +495 -0
  19. package/dist/cli.js.map +1 -0
  20. package/dist/custom-chart/runtime-shim.js +146 -0
  21. package/dist/custom-chart/template/AGENTS.md +374 -0
  22. package/dist/custom-chart/template/README.md +374 -0
  23. package/dist/custom-chart/template/chart.css +28 -0
  24. package/dist/custom-chart/template/chart.ts +192 -0
  25. package/dist/custom-chart/template/custom-chart.d.ts +78 -0
  26. package/dist/custom-chart/template/icon.svg +1 -0
  27. package/dist/custom-chart/template/manifest.json +23 -0
  28. package/dist/custom-chart/template/package.json +14 -0
  29. package/dist/custom-chart/template/sample-data.json +18 -0
  30. package/dist/custom-chart/template/tsconfig.json +12 -0
  31. package/dist/index.js +14 -8
  32. package/dist/index.js.map +1 -1
  33. package/dist/main-KZRHWE3K.js +857 -0
  34. package/dist/main-KZRHWE3K.js.map +1 -0
  35. package/dist/{test-only-EJ5O4WN5.js → test-only-K7QTSVO4.js} +7 -6
  36. package/dist/test-only-K7QTSVO4.js.map +1 -0
  37. package/package.json +9 -4
  38. package/dist/chunk-7DS7OLWP.js.map +0 -1
  39. package/dist/chunk-JCXUZ3QZ.js.map +0 -1
  40. package/dist/chunk-NDVW3ZSJ.js +0 -310
  41. package/dist/chunk-NDVW3ZSJ.js.map +0 -1
  42. package/dist/main-7QNRH6X4.js +0 -438
  43. package/dist/main-7QNRH6X4.js.map +0 -1
  44. package/dist/test-only-EJ5O4WN5.js.map +0 -1
  45. /package/dist/{chunk-RF3HTNO7.js.map → chunk-CUPL7CAN.js.map} +0 -0
package/README.md CHANGED
@@ -13,13 +13,81 @@ Works with Codex, Claude, Cursor, Windsurf, and any MCP-compatible client.
13
13
 
14
14
  ## Setup (2 minutes)
15
15
 
16
- ### 1. Get your Service Token
16
+ There are two ways in. Pick one.
17
+
18
+ | | Best for | You need |
19
+ |---|---|---|
20
+ | **A. Hosted connector** | Claude, ChatGPT, Cursor, VS Code, Claude Code | Your Databrain sign-in. Nothing to install. |
21
+ | **B. Local server + service token** | Codex, Windsurf, any stdio client, self-hosted Databrain, CI | A service token in the MCP config |
22
+
23
+ With A you act as yourself: calls run in the workspaces you approve, with your role in each, and the audit log shows your name. With B calls run as the organization (`actor=system`).
24
+
25
+ ### A. Hosted connector
26
+
27
+ Server URL: **`https://mcp.usedatabrain.com/mcp`** (beta: `https://mcp.beta.usedatabrain.com/mcp`).
28
+ Your AI app opens a Databrain sign-in page, you pick one or more workspaces (or "All workspaces I can access") and click Allow. No token to copy.
29
+
30
+ When you approve more than one workspace, the AI names the workspace on each call (`workspace` or `workspaceName`); `whoami` lists the ones you approved. With "All workspaces I can access", workspaces you get later are included, and `create_workspace` can make a new one if your role allows it.
31
+
32
+ The hosted connector includes chart and KPI MCP Apps. `ask_question` returns an inline tile, and `list_widgets` opens a chart chooser in compatible hosts. Both current `_meta.ui.resourceUri` and legacy `_meta['ui/resourceUri']` pointers are included; other hosts retain the text summary and structured data. Tile controls retain the answer's granted workspace. Saving requires `mcp:dashboards:write`, `mcp:query`, the live workspace role, and `APPLY_TO_PRODUCTION` confirmation. No new environment variable is needed, including on self-hosted installs.
33
+
34
+ <details>
35
+ <summary><b>Claude (claude.ai and Claude Desktop)</b></summary>
36
+
37
+ Settings > Connectors > **Add custom connector**. Name `Databrain`, URL `https://mcp.usedatabrain.com/mcp`. Click **Connect** and sign in. Custom connectors need a paid Claude plan.
38
+ </details>
39
+
40
+ <details>
41
+ <summary><b>Claude Code</b></summary>
42
+
43
+ ```bash
44
+ claude mcp add --transport http databrain https://mcp.usedatabrain.com/mcp
45
+ ```
46
+
47
+ Then run `/mcp` in Claude Code, pick `databrain` and sign in.
48
+ </details>
49
+
50
+ <details>
51
+ <summary><b>Cursor</b></summary>
52
+
53
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=databrain&config=eyJ1cmwiOiJodHRwczovL21jcC51c2VkYXRhYnJhaW4uY29tL21jcCJ9)
54
+
55
+ Or add to `~/.cursor/mcp.json`:
56
+
57
+ ```json
58
+ { "mcpServers": { "databrain": { "url": "https://mcp.usedatabrain.com/mcp" } } }
59
+ ```
60
+
61
+ Cursor signs you in with OAuth the first time a tool runs.
62
+ </details>
63
+
64
+ <details>
65
+ <summary><b>VS Code (GitHub Copilot agent mode)</b></summary>
66
+
67
+ [Install in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=databrain&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.usedatabrain.com%2Fmcp%22%7D), or:
68
+
69
+ ```bash
70
+ code --add-mcp '{"name":"databrain","type":"http","url":"https://mcp.usedatabrain.com/mcp"}'
71
+ ```
72
+
73
+ VS Code asks you to sign in to Databrain when the server starts.
74
+ </details>
75
+
76
+ <details>
77
+ <summary><b>ChatGPT</b></summary>
78
+
79
+ Once Databrain is in the ChatGPT directory, search for **Databrain** and connect. Until then, a workspace admin can add it as a custom MCP connection with the URL `https://mcp.usedatabrain.com/mcp` and OAuth ([OpenAI guide](https://developers.openai.com/api/docs/guides/custom-mcp-server)).
80
+ </details>
81
+
82
+ ### B. Local server with a service token
83
+
84
+ #### 1. Get your Service Token
17
85
 
18
86
  1. Log in to your Databrain instance (cloud or self-hosted)
19
87
  2. Go to **Settings → Service Tokens**
20
88
  3. Create a new token and copy it
21
89
 
22
- ### 2. Add to your AI client
90
+ #### 2. Add to your AI client
23
91
 
24
92
  > **Self-hosted?** Also set `DATABRAIN_API_URL` in the `env` block — see [Self-hosted Databrain](#self-hosted-databrain) below.
25
93
 
@@ -280,6 +348,27 @@ At least one of `DATABRAIN_SERVICE_TOKEN` or `DATABRAIN_API_TOKEN` must be set.
280
348
 
281
349
  ---
282
350
 
351
+ ## Hosted (HTTPS) deployment
352
+
353
+ `node dist/index.js --http` starts the same server as a hosted Streamable HTTP endpoint at `/mcp`. Callers authenticate with an OAuth bearer token on every request; the server never reads `DATABRAIN_SERVICE_TOKEN` or `DATABRAIN_API_TOKEN` in this mode. Full design notes are in [`specs/hosted-http.md`](specs/hosted-http.md).
354
+
355
+ | Variable | Required | Default | Description |
356
+ |----------|----------|---------|-------------|
357
+ | `DATABRAIN_HOSTED_PUBLIC_URL` | Yes | — | Exact public HTTPS URL of the endpoint, ending in `/mcp` (e.g. `https://mcp.usedatabrain.com/mcp`). Used for discovery metadata and audience checks. |
358
+ | `DATABRAIN_HOSTED_ISSUER` | Yes | — | HTTPS origin of the trusted authorization server. Bearer tokens are verified against `<issuer>/oauth/principal`. |
359
+ | `DATABRAIN_HOSTED_BIND` | No | `127.0.0.1` | Listener address. Set `0.0.0.0` in a container so the load balancer can reach it. |
360
+ | `DATABRAIN_HOSTED_PORT` | No | `3144` | Listener port. |
361
+
362
+ `GET /health` (or `HEAD`) returns `200 {"status":"ok"}` with no authentication. It is the only route that skips the Host check, so an ALB health check with the target IP:port as Host succeeds. Point the target group health check at `/health`.
363
+
364
+ The `Dockerfile` at the repo root builds the hosted server from source: `docker build -t databrain-mcp-hosted .` then run it with the two required variables and `-p 3144:3144`.
365
+
366
+ The load balancer **must forward the original `Host` header unchanged**. Requests to `/mcp` and the `/.well-known/oauth-protected-resource` metadata are answered only when Host matches the host of `DATABRAIN_HOSTED_PUBLIC_URL`; anything else gets `403 invalid_host`.
367
+
368
+ **Current limits.** Without `DATABRAIN_HOSTED_ADAPTER_MODULE` (an absolute path to a trusted delegated adapter, see the spec), the default adapter verifies identity only. `whoami`, tool/resource/prompt discovery and OAuth verification work today; every data tool answers `503 delegated_backend_adapter_required` until that adapter is configured.
369
+
370
+ ---
371
+
283
372
  ## Available Prompts
284
373
 
285
374
  Prompts are guided workflows your AI assistant can follow. Ask for them by name or describe what you want.
@@ -298,9 +387,9 @@ Prompts are guided workflows your AI assistant can follow. Ask for them by name
298
387
 
299
388
  ## Tools Reference
300
389
 
301
- 35 tools organized by category. Your AI assistant picks the right tools automatically — you don't need to call them directly.
390
+ 50 tools organized by category (plus 6 chart App tools on the hosted connector and the opt-in `databrain-mcp-chart-apps` entry, and `create_workspace` on the hosted connector: 57 hosted tools total). Your AI assistant picks the right tools automatically. You do not need to call them directly.
302
391
 
303
- > **Note:** Datasource and workspace creation happen outside MCP. Datamarts can be planned with `create_datamart` in `dry_run` mode and created only with `confirm: "APPLY_TO_PRODUCTION"`. The semantic layer is managed via MCP tools (`get_semantic_layer`, `update_semantic_layer`, `start_semantic_layer_generation`, `get_semantic_layer_generation_status`).
392
+ > **Note:** Datasource creation happens outside MCP. Workspace creation does too, except on the hosted connector: `create_workspace` works there when you granted "All workspaces I can access" and your role may create workspaces. Datamarts can be planned with `create_datamart` in `dry_run` mode and created only with `confirm: "APPLY_TO_PRODUCTION"`. The semantic layer is managed via MCP tools (`get_semantic_layer`, `update_semantic_layer`, `start_semantic_layer_generation`, `get_semantic_layer_generation_status`).
304
393
 
305
394
  <details>
306
395
  <summary><b>Infrastructure — Exploration and setup</b> (6)</summary>
@@ -310,7 +399,8 @@ Prompts are guided workflows your AI assistant can follow. Ask for them by name
310
399
  | `list_datasources` | List connected datasources |
311
400
  | `discover_datasource_schema` | Inspect a datasource to see available tables and columns |
312
401
  | `list_datamarts` | List datamarts |
313
- | `list_workspaces` | List all workspaces (shows datamart/datasource connections) |
402
+ | `list_workspaces` | List all workspaces (shows datamart/datasource connections). Hosted: only the workspaces you granted |
403
+ | `create_workspace` | Hosted connector only: create a workspace (needs an "All workspaces" grant and a role that may create one) |
314
404
  | `sync_datasource` | Trigger datasource schema sync |
315
405
  | `create_datamart` | Dry-run or create a datamart from selected tables and relationships |
316
406
  </details>
@@ -351,7 +441,7 @@ Prompts are guided workflows your AI assistant can follow. Ask for them by name
351
441
  </details>
352
442
 
353
443
  <details>
354
- <summary><b>Query & Semantic Layer</b> (5) — Ask questions and manage data documentation</summary>
444
+ <summary><b>Query & Semantic Layer</b> (11): Ask questions and manage data documentation</summary>
355
445
 
356
446
  | Tool | Description |
357
447
  |------|-------------|
@@ -360,14 +450,37 @@ Prompts are guided workflows your AI assistant can follow. Ask for them by name
360
450
  | `update_semantic_layer` | Improve semantic layer quality (add descriptions, synonyms, example questions) |
361
451
  | `start_semantic_layer_generation` | Start semantic-layer generation for a datamart |
362
452
  | `get_semantic_layer_generation_status` | Check semantic-layer generation progress |
453
+ | `search_semantic_model` | Find relevant v2 entities and their related entities |
454
+ | `get_semantic_entity` | Read one v2 entity by kind and name with the current content hash |
455
+ | `propose_semantic_change` | Validate candidate YAML or a patch and return its plan without writing |
456
+ | `apply_semantic_change` | Preview by default, or apply live with a reviewed hash and production confirmation |
457
+ | `eval_semantic_model` | Run saved queries and optional questions and return pass rate and verdicts |
458
+
459
+ Semantic-layer generation uses the datamart ID returned by `list_datamarts` and calls the service-token API. Pass `datamartId` directly when the ID is already known.
460
+
461
+ For a v2 model, the five model tools use `datamartId` and the configured service credential. They never request a token from the user or mint a guest token. Hosted eval also requires `mcp:query`; hosted apply requires `mcp:datamarts:write` even for its dry run.
462
+
463
+ 1. Use `search_semantic_model` with `question` and optional `k` (default 10, maximum 100). If the server has no retrieval route, the tool pulls the model and ranks name, alias, synonyms and description, then includes adjacent entities. Hidden tables and columns are excluded from local search.
464
+ 2. Use `get_semantic_entity` with `kind` and an exact `name`. Column names use `table.column`. Kinds are `table`, `column`, `measure`, `metric`, `join`, `entity`, `glossary`, `saved_query`, `instruction` and `access_rule`.
465
+ 3. Use `propose_semantic_change` with exactly one of `source` (complete YAML), `yaml_patch`, or `change`. It returns the candidate source, validation errors, the server plan and `expected_content_hash`. Invalid source returns errors and no plan.
466
+ 4. Use `eval_semantic_model` with the proposed `source` and optional `questions`. Omitting source evaluates the stored model. The server returns pass rate and individual verdicts.
467
+ 5. Review the plan. Call `apply_semantic_change` with the exact returned `source` and `expected_content_hash`. Its `dry_run` defaults to true. A live apply requires `dry_run: false` and user supplied `confirm: "APPLY_TO_PRODUCTION"`. The assistant must never supply confirmation on its own. Explicit `expected_content_hash: null` selects the first apply only when no layer is stored. Apply changes the live model for all consumers.
468
+
469
+ A YAML patch merges mappings and named lists by name, including tables and columns. Other lists replace the original list. An empty list clears a list. Null removes a field. For example, `yaml_patch: "tables:\n - name: orders\n description: Customer purchases\n"` changes that description and preserves other tables and fields. Patch output normalizes YAML formatting and does not preserve comments. Review the returned source.
470
+
471
+ A structured change uses `{ "operation": "upsert", "kind": "column", "table": "orders", "name": "amount", "value": { "description": "Order total" } }`. Upsert merges fields. Use `operation: "remove"` without `value` to remove one named entity. The backend validates all resulting references.
472
+
473
+ HTTP 409 conflicts and 422 validation or projection refusals return tool errors with the backend reason and details. A conflict requires a fresh proposal and review. Plan, eval and readiness need the corresponding backend routes; these tools return backend errors if those routes are absent.
474
+
363
475
  </details>
364
476
 
365
477
  <details>
366
- <summary><b>Dashboards & Widgets</b> (8) — Discover dashboards and CRUD widgets on customer embeds</summary>
478
+ <summary><b>Dashboards & Widgets</b> (9) — Discover dashboards, picture them, and CRUD widgets on customer embeds</summary>
367
479
 
368
480
  | Tool | Description |
369
481
  |------|-------------|
370
482
  | `list_dashboards` | List dashboards (by data app, workspace, or globally) |
483
+ | `dashboard_snapshot` | A PNG of a dashboard or one chart, light or dark, as the signed-in user sees it. Needs a Databrain sign-in (OAuth), not a service token |
371
484
  | `list_widgets` | List widgets on an embed for a specific client |
372
485
  | `validate_metric_spec` | Validate a SQL-backed metric target without saving |
373
486
  | `create_or_update_metric_from_query` | Dry-run or apply a SQL-backed metric create/update |
@@ -388,6 +501,38 @@ Production writes through `create_or_update_metric_from_query` default to `dry_r
388
501
  | `list_scheduled_reports` | List configured scheduled reports for a dashboard/client scope |
389
502
  </details>
390
503
 
504
+ <details>
505
+ <summary><b>Custom chart types</b> (5)</summary>
506
+
507
+ | Tool | Description |
508
+ |------|-------------|
509
+ | `custom_chart_scaffold` | Return the files of a new chart project (manifest, chart.ts, css, icon, sample data, author guide). Nothing is written or persisted |
510
+ | `custom_chart_validate` | Validate a manifest and bundle with the local rules and, when a service token is configured, the server rules. Never persists |
511
+ | `custom_chart_upload` | Dry-run or upload a built bundle as a private chart (version 1) or a preview version; `publish: true` publishes in the same apply |
512
+ | `list_custom_charts` | List the company's custom chart types with status and version ids |
513
+ | `publish_custom_chart` | Dry-run or publish a version so every builder can use chart type `custom:<key>` |
514
+
515
+ `custom_chart_upload` and `publish_custom_chart` default to `dry_run` and apply only with `confirm: "APPLY_TO_PRODUCTION"`. Hosted scopes: `mcp:custom-charts:read` and `mcp:custom-charts:write`. Build the bundle with the CLI below.
516
+ </details>
517
+
518
+ ---
519
+
520
+ ## Custom chart CLI
521
+
522
+ The package also installs a `databrain` binary for chart authors:
523
+
524
+ ```bash
525
+ npx -p @databrainhq/mcp-server databrain custom-chart init my-chart
526
+ cd my-chart # read AGENTS.md, edit chart.ts
527
+ databrain custom-chart validate # manifest, icon, css
528
+ databrain custom-chart build # writes dist/index.js, manifest.json, icon.svg, index.css, bundle.zip
529
+ databrain custom-chart dev # local sandbox page on http://127.0.0.1:4174
530
+ DATABRAIN_SERVICE_TOKEN=... databrain custom-chart upload # build, server validate, plan, confirm, upload
531
+ DATABRAIN_SERVICE_TOKEN=... databrain custom-chart upload --publish --yes
532
+ ```
533
+
534
+ Problems print as `path code message` and the exit code is 1 when there is any. `upload` needs `DATABRAIN_SERVICE_TOKEN` and, on self-hosted instances, `DATABRAIN_API_URL`. The template's `AGENTS.md` is the full author guide: manifest reference, data shape, theme, interactions, troubleshooting.
535
+
391
536
  ---
392
537
 
393
538
  ## Built-in Knowledge
@@ -197,8 +197,8 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
197
197
  drillId: z.ZodOptional<z.ZodString>;
198
198
  }, "strict", z.ZodTypeAny, {
199
199
  value: string | number | boolean | null;
200
- label: string;
201
200
  key: string;
201
+ label: string;
202
202
  x: number;
203
203
  y: number;
204
204
  width: number;
@@ -206,8 +206,8 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
206
206
  drillId?: string | undefined;
207
207
  }, {
208
208
  value: string | number | boolean | null;
209
- label: string;
210
209
  key: string;
210
+ label: string;
211
211
  x: number;
212
212
  y: number;
213
213
  width: number;
@@ -228,8 +228,8 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
228
228
  rows: Record<string, string | number | boolean | null>[];
229
229
  points: {
230
230
  value: string | number | boolean | null;
231
- label: string;
232
231
  key: string;
232
+ label: string;
233
233
  x: number;
234
234
  y: number;
235
235
  width: number;
@@ -251,8 +251,8 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
251
251
  rows: Record<string, string | number | boolean | null>[];
252
252
  points: {
253
253
  value: string | number | boolean | null;
254
- label: string;
255
254
  key: string;
255
+ label: string;
256
256
  x: number;
257
257
  y: number;
258
258
  width: number;
@@ -274,8 +274,8 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
274
274
  rows: Record<string, string | number | boolean | null>[];
275
275
  points: {
276
276
  value: string | number | boolean | null;
277
- label: string;
278
277
  key: string;
278
+ label: string;
279
279
  x: number;
280
280
  y: number;
281
281
  width: number;
@@ -297,8 +297,8 @@ declare const pageSchema: z.ZodEffects<z.ZodObject<{
297
297
  rows: Record<string, string | number | boolean | null>[];
298
298
  points: {
299
299
  value: string | number | boolean | null;
300
- label: string;
301
300
  key: string;
301
+ label: string;
302
302
  x: number;
303
303
  y: number;
304
304
  width: number;
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createChartAppServer
4
- } from "../chunk-NDVW3ZSJ.js";
5
- import "../chunk-7DS7OLWP.js";
4
+ } from "../chunk-N7X762VU.js";
5
+ import "../chunk-5IGP6A6T.js";
6
+ import "../chunk-ERTAKB2H.js";
7
+ import "../chunk-OCBTNAAO.js";
6
8
  export {
7
9
  createChartAppServer
8
10
  };
@@ -1,11 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  loadConfig
4
- } from "../chunk-RF3HTNO7.js";
4
+ } from "../chunk-CUPL7CAN.js";
5
5
  import {
6
6
  createChartAppServer
7
- } from "../chunk-NDVW3ZSJ.js";
8
- import "../chunk-7DS7OLWP.js";
7
+ } from "../chunk-N7X762VU.js";
8
+ import "../chunk-5IGP6A6T.js";
9
+ import "../chunk-ERTAKB2H.js";
10
+ import "../chunk-OCBTNAAO.js";
9
11
 
10
12
  // src/apps/stdio.ts
11
13
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/apps/stdio.ts"],"sourcesContent":["import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { loadConfig } from '../utils/config.js';\nimport { createChartAppServer } from './server.js';\n\n// Separate opt-in command until the owners integrate both shared entrypoints.\nconst server = createChartAppServer(loadConfig());\nawait server.connect(new StdioServerTransport());\n"],"mappings":";;;;;;;;;;AAAA,SAAS,4BAA4B;AAKrC,IAAM,SAAS,qBAAqB,WAAW,CAAC;AAChD,MAAM,OAAO,QAAQ,IAAI,qBAAqB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/apps/stdio.ts"],"sourcesContent":["import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { loadConfig } from '../utils/config.js';\nimport { createChartAppServer } from './server.js';\n\n// Separate opt-in command until the owners integrate both shared entrypoints.\nconst server = createChartAppServer(loadConfig());\nawait server.connect(new StdioServerTransport());\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,4BAA4B;AAKrC,IAAM,SAAS,qBAAqB,WAAW,CAAC;AAChD,MAAM,OAAO,QAAQ,IAAI,qBAAqB,CAAC;","names":[]}