@cyanheads/ensembl-mcp-server 0.4.2 → 0.4.3
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/AGENTS.md +43 -35
- package/CLAUDE.md +43 -35
- package/Dockerfile +6 -5
- package/README.md +4 -3
- package/changelog/0.4.x/0.4.3.md +29 -0
- package/changelog/template.md +55 -16
- package/dist/config/server-config.d.ts.map +1 -1
- package/dist/config/server-config.js +1 -2
- package/dist/config/server-config.js.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/resources/definitions/species.resource.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/get-homology.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/get-sequence.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/list-species.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/query-region.tool.d.ts +1 -1
- package/dist/services/ensembl/ensembl-service.d.ts.map +1 -1
- package/dist/services/ensembl/ensembl-service.js +1 -1
- package/dist/services/ensembl/ensembl-service.js.map +1 -1
- package/package.json +10 -10
- package/server.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** ensembl-mcp-server
|
|
4
|
-
**Version:** 0.4.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.4.3
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
@@ -36,7 +36,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
|
|
|
36
36
|
- **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
|
|
37
37
|
- **Use `ctx.log`** for request-scoped logging. No `console` calls.
|
|
38
38
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
39
|
-
- **
|
|
39
|
+
- **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler.
|
|
40
40
|
- **Secrets in env vars only** — never hardcoded.
|
|
41
41
|
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
42
42
|
|
|
@@ -135,9 +135,11 @@ export function getServerConfig() {
|
|
|
135
135
|
|
|
136
136
|
`parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`ENSEMBL_BASE_URL`) not the path (`baseUrl`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
|
|
137
137
|
|
|
138
|
-
### Server instructions
|
|
138
|
+
### Server identity and instructions
|
|
139
139
|
|
|
140
|
-
`createApp(
|
|
140
|
+
The canonical `createApp()` identity for this project is `name: 'ensembl-mcp-server'` plus `title: 'ensembl-mcp-server'`. Keep both bare and hyphenated; npm and install surfaces retain the published `@cyanheads/ensembl-mcp-server` identity. Package metadata supplies the description and website, so don't duplicate those fields in `createApp()`.
|
|
141
|
+
|
|
142
|
+
`instructions` is optional server-level orientation, sent on every `initialize` as session-level context. Use it for deployment guidance (connection aliases, regional notes, scope hints) instead of repeating the same context across tool descriptions. Client adoption is uneven, but there's no downside when set.
|
|
141
143
|
|
|
142
144
|
---
|
|
143
145
|
|
|
@@ -147,14 +149,15 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
147
149
|
|
|
148
150
|
| Property | Description |
|
|
149
151
|
|:---------|:------------|
|
|
150
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
151
|
-
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
152
|
-
| `ctx.
|
|
153
|
-
| `ctx.
|
|
152
|
+
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
|
|
153
|
+
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
154
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present. |
|
|
155
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
156
|
+
| `ctx.enrich` | Success-path agent context (empty-result notices, query echo, pagination totals) — `ctx.enrich(...)` or `.notice()` / `.total()` / `.echo()` / `.truncated()`. Reaches `structuredContent` and `content[]`; lands only when the definition declares an `enrichment` block (no-op otherwise). |
|
|
157
|
+
| `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
|
|
154
158
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
155
|
-
| `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
|
|
156
159
|
| `ctx.requestId` | Unique request ID. |
|
|
157
|
-
| `ctx.tenantId` | Tenant ID from JWT
|
|
160
|
+
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
158
161
|
|
|
159
162
|
---
|
|
160
163
|
|
|
@@ -162,7 +165,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
162
165
|
|
|
163
166
|
Handlers throw — the framework catches, classifies, and formats.
|
|
164
167
|
|
|
165
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required
|
|
168
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
|
|
166
169
|
|
|
167
170
|
```ts
|
|
168
171
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
@@ -174,7 +177,7 @@ errors: [
|
|
|
174
177
|
],
|
|
175
178
|
async handler(input, ctx) {
|
|
176
179
|
const item = await db.find(input.id);
|
|
177
|
-
if (!item) throw ctx.fail('no_match', `No item ${input.id}
|
|
180
|
+
if (!item) throw ctx.fail('no_match', `No item ${input.id}`, ctx.recoveryFor('no_match'));
|
|
178
181
|
return item;
|
|
179
182
|
}
|
|
180
183
|
```
|
|
@@ -245,7 +248,7 @@ src/
|
|
|
245
248
|
|
|
246
249
|
## Skills
|
|
247
250
|
|
|
248
|
-
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool.
|
|
251
|
+
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
|
|
249
252
|
|
|
250
253
|
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
251
254
|
|
|
@@ -273,12 +276,14 @@ Available skills:
|
|
|
273
276
|
| `orchestrations` | Chain task skills into a gated multi-phase pipeline — build-out, QA-fix, update-ship — when you can spawn sub-agents |
|
|
274
277
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
275
278
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
279
|
+
| `techniques` | Catalog of response/data-shaping techniques — overflow handling, payload shaping, retrieval patterns |
|
|
276
280
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
277
281
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
278
282
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
279
|
-
| `api-context` | Context interface, logger, state,
|
|
283
|
+
| `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
|
|
280
284
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
281
285
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
286
|
+
| `api-mirror` | MirrorService: persistent self-refreshing local mirror (embedded SQLite + FTS5) of a bulk upstream dataset — Tier 3 opt-in |
|
|
282
287
|
| `api-services` | LLM, Speech, Graph services |
|
|
283
288
|
| `api-testing` | createMockContext, test patterns |
|
|
284
289
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
@@ -293,30 +298,33 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
293
298
|
|
|
294
299
|
## Commands
|
|
295
300
|
|
|
296
|
-
**Runtime:** Scripts use
|
|
301
|
+
**Runtime:** Scripts use Bun's native TypeScript execution — `bun run <cmd>` is the standard invocation. `npm run <cmd>` also works (npm delegates to bun).
|
|
297
302
|
|
|
298
303
|
| Command | Purpose |
|
|
299
304
|
|:--------|:--------|
|
|
300
|
-
| `
|
|
301
|
-
| `
|
|
302
|
-
| `
|
|
303
|
-
| `
|
|
305
|
+
| `bun run build` | Compile TypeScript |
|
|
306
|
+
| `bun run rebuild` | Clean + build |
|
|
307
|
+
| `bun run clean` | Remove build artifacts |
|
|
308
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
304
309
|
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
|
|
305
|
-
| `
|
|
306
|
-
| `
|
|
307
|
-
| `
|
|
308
|
-
| `
|
|
309
|
-
| `
|
|
310
|
-
| `
|
|
311
|
-
| `
|
|
312
|
-
| `
|
|
313
|
-
| `
|
|
310
|
+
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
311
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
312
|
+
| `bun run list-skills` | Print the skill registry |
|
|
313
|
+
| `bun run tree` | Generate directory structure doc |
|
|
314
|
+
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
315
|
+
| `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
316
|
+
| `bun run test` | Run tests (Vitest — use `bun run test`, not `bun test`) |
|
|
317
|
+
| `bun run start:stdio` | Production mode (stdio) |
|
|
318
|
+
| `bun run start:http` | Production mode (HTTP) |
|
|
319
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
320
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
321
|
+
| `bun run bundle` | Build, pack, and clean a `.mcpb` for one-click Claude Desktop install |
|
|
314
322
|
|
|
315
323
|
---
|
|
316
324
|
|
|
317
325
|
## Bundling
|
|
318
326
|
|
|
319
|
-
`
|
|
327
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
320
328
|
|
|
321
329
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
322
330
|
|
|
@@ -326,7 +334,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
326
334
|
|
|
327
335
|
## Changelog
|
|
328
336
|
|
|
329
|
-
Directory-based, grouped by minor series via the `.x` semver-wildcard convention. Source of truth: `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per release, shipped in the npm package. At release, author the per-version file with a concrete version and date, then run `
|
|
337
|
+
Directory-based, grouped by minor series via the `.x` semver-wildcard convention. Source of truth: `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per release, shipped in the npm package. At release, author the per-version file with a concrete version and date, then run `bun run changelog:build` to regenerate the rollup. `changelog/template.md` is a **pristine format reference** — never edited or moved; read it for the frontmatter + section layout when scaffolding. `CHANGELOG.md` is a **navigation index** (header + link + summary per version), regenerated by `bun run changelog:build` — devcheck hard-fails on drift; never hand-edit it.
|
|
330
338
|
|
|
331
339
|
Each per-version file opens with YAML frontmatter:
|
|
332
340
|
|
|
@@ -334,14 +342,14 @@ Each per-version file opens with YAML frontmatter:
|
|
|
334
342
|
---
|
|
335
343
|
summary: "One-line headline, ≤350 chars" # required — powers the rollup index
|
|
336
344
|
breaking: false # optional — true flags breaking changes
|
|
337
|
-
security: false # optional — true
|
|
345
|
+
security: false # optional — true ONLY for a source-code security fix, never a dependency CVE bump
|
|
338
346
|
---
|
|
339
347
|
|
|
340
348
|
# 0.1.0 — YYYY-MM-DD
|
|
341
349
|
...
|
|
342
350
|
```
|
|
343
351
|
|
|
344
|
-
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
352
|
+
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section — set it only for a security fix in this server's *own source code*, never for a routine dependency or transitive CVE bump (record those under `## Dependencies`). When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
345
353
|
|
|
346
354
|
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
347
355
|
|
|
@@ -380,4 +388,4 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
380
388
|
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
381
389
|
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
382
390
|
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
|
|
383
|
-
- [ ] `
|
|
391
|
+
- [ ] `bun run devcheck` passes
|
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** ensembl-mcp-server
|
|
4
|
-
**Version:** 0.4.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.4.3
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
@@ -36,7 +36,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
|
|
|
36
36
|
- **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
|
|
37
37
|
- **Use `ctx.log`** for request-scoped logging. No `console` calls.
|
|
38
38
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
39
|
-
- **
|
|
39
|
+
- **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler.
|
|
40
40
|
- **Secrets in env vars only** — never hardcoded.
|
|
41
41
|
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
42
42
|
|
|
@@ -135,9 +135,11 @@ export function getServerConfig() {
|
|
|
135
135
|
|
|
136
136
|
`parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`ENSEMBL_BASE_URL`) not the path (`baseUrl`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
|
|
137
137
|
|
|
138
|
-
### Server instructions
|
|
138
|
+
### Server identity and instructions
|
|
139
139
|
|
|
140
|
-
`createApp(
|
|
140
|
+
The canonical `createApp()` identity for this project is `name: 'ensembl-mcp-server'` plus `title: 'ensembl-mcp-server'`. Keep both bare and hyphenated; npm and install surfaces retain the published `@cyanheads/ensembl-mcp-server` identity. Package metadata supplies the description and website, so don't duplicate those fields in `createApp()`.
|
|
141
|
+
|
|
142
|
+
`instructions` is optional server-level orientation, sent on every `initialize` as session-level context. Use it for deployment guidance (connection aliases, regional notes, scope hints) instead of repeating the same context across tool descriptions. Client adoption is uneven, but there's no downside when set.
|
|
141
143
|
|
|
142
144
|
---
|
|
143
145
|
|
|
@@ -147,14 +149,15 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
147
149
|
|
|
148
150
|
| Property | Description |
|
|
149
151
|
|:---------|:------------|
|
|
150
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
151
|
-
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
152
|
-
| `ctx.
|
|
153
|
-
| `ctx.
|
|
152
|
+
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
|
|
153
|
+
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
154
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present. |
|
|
155
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
156
|
+
| `ctx.enrich` | Success-path agent context (empty-result notices, query echo, pagination totals) — `ctx.enrich(...)` or `.notice()` / `.total()` / `.echo()` / `.truncated()`. Reaches `structuredContent` and `content[]`; lands only when the definition declares an `enrichment` block (no-op otherwise). |
|
|
157
|
+
| `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
|
|
154
158
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
155
|
-
| `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
|
|
156
159
|
| `ctx.requestId` | Unique request ID. |
|
|
157
|
-
| `ctx.tenantId` | Tenant ID from JWT
|
|
160
|
+
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
158
161
|
|
|
159
162
|
---
|
|
160
163
|
|
|
@@ -162,7 +165,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
162
165
|
|
|
163
166
|
Handlers throw — the framework catches, classifies, and formats.
|
|
164
167
|
|
|
165
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required
|
|
168
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
|
|
166
169
|
|
|
167
170
|
```ts
|
|
168
171
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
@@ -174,7 +177,7 @@ errors: [
|
|
|
174
177
|
],
|
|
175
178
|
async handler(input, ctx) {
|
|
176
179
|
const item = await db.find(input.id);
|
|
177
|
-
if (!item) throw ctx.fail('no_match', `No item ${input.id}
|
|
180
|
+
if (!item) throw ctx.fail('no_match', `No item ${input.id}`, ctx.recoveryFor('no_match'));
|
|
178
181
|
return item;
|
|
179
182
|
}
|
|
180
183
|
```
|
|
@@ -245,7 +248,7 @@ src/
|
|
|
245
248
|
|
|
246
249
|
## Skills
|
|
247
250
|
|
|
248
|
-
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool.
|
|
251
|
+
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
|
|
249
252
|
|
|
250
253
|
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
251
254
|
|
|
@@ -273,12 +276,14 @@ Available skills:
|
|
|
273
276
|
| `orchestrations` | Chain task skills into a gated multi-phase pipeline — build-out, QA-fix, update-ship — when you can spawn sub-agents |
|
|
274
277
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
275
278
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
279
|
+
| `techniques` | Catalog of response/data-shaping techniques — overflow handling, payload shaping, retrieval patterns |
|
|
276
280
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
277
281
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
278
282
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
279
|
-
| `api-context` | Context interface, logger, state,
|
|
283
|
+
| `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
|
|
280
284
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
281
285
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
286
|
+
| `api-mirror` | MirrorService: persistent self-refreshing local mirror (embedded SQLite + FTS5) of a bulk upstream dataset — Tier 3 opt-in |
|
|
282
287
|
| `api-services` | LLM, Speech, Graph services |
|
|
283
288
|
| `api-testing` | createMockContext, test patterns |
|
|
284
289
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
@@ -293,30 +298,33 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
293
298
|
|
|
294
299
|
## Commands
|
|
295
300
|
|
|
296
|
-
**Runtime:** Scripts use
|
|
301
|
+
**Runtime:** Scripts use Bun's native TypeScript execution — `bun run <cmd>` is the standard invocation. `npm run <cmd>` also works (npm delegates to bun).
|
|
297
302
|
|
|
298
303
|
| Command | Purpose |
|
|
299
304
|
|:--------|:--------|
|
|
300
|
-
| `
|
|
301
|
-
| `
|
|
302
|
-
| `
|
|
303
|
-
| `
|
|
305
|
+
| `bun run build` | Compile TypeScript |
|
|
306
|
+
| `bun run rebuild` | Clean + build |
|
|
307
|
+
| `bun run clean` | Remove build artifacts |
|
|
308
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
304
309
|
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
|
|
305
|
-
| `
|
|
306
|
-
| `
|
|
307
|
-
| `
|
|
308
|
-
| `
|
|
309
|
-
| `
|
|
310
|
-
| `
|
|
311
|
-
| `
|
|
312
|
-
| `
|
|
313
|
-
| `
|
|
310
|
+
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
311
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
312
|
+
| `bun run list-skills` | Print the skill registry |
|
|
313
|
+
| `bun run tree` | Generate directory structure doc |
|
|
314
|
+
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
315
|
+
| `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
316
|
+
| `bun run test` | Run tests (Vitest — use `bun run test`, not `bun test`) |
|
|
317
|
+
| `bun run start:stdio` | Production mode (stdio) |
|
|
318
|
+
| `bun run start:http` | Production mode (HTTP) |
|
|
319
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
320
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
321
|
+
| `bun run bundle` | Build, pack, and clean a `.mcpb` for one-click Claude Desktop install |
|
|
314
322
|
|
|
315
323
|
---
|
|
316
324
|
|
|
317
325
|
## Bundling
|
|
318
326
|
|
|
319
|
-
`
|
|
327
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
320
328
|
|
|
321
329
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
322
330
|
|
|
@@ -326,7 +334,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
326
334
|
|
|
327
335
|
## Changelog
|
|
328
336
|
|
|
329
|
-
Directory-based, grouped by minor series via the `.x` semver-wildcard convention. Source of truth: `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per release, shipped in the npm package. At release, author the per-version file with a concrete version and date, then run `
|
|
337
|
+
Directory-based, grouped by minor series via the `.x` semver-wildcard convention. Source of truth: `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.1.x/0.1.0.md`) — one file per release, shipped in the npm package. At release, author the per-version file with a concrete version and date, then run `bun run changelog:build` to regenerate the rollup. `changelog/template.md` is a **pristine format reference** — never edited or moved; read it for the frontmatter + section layout when scaffolding. `CHANGELOG.md` is a **navigation index** (header + link + summary per version), regenerated by `bun run changelog:build` — devcheck hard-fails on drift; never hand-edit it.
|
|
330
338
|
|
|
331
339
|
Each per-version file opens with YAML frontmatter:
|
|
332
340
|
|
|
@@ -334,14 +342,14 @@ Each per-version file opens with YAML frontmatter:
|
|
|
334
342
|
---
|
|
335
343
|
summary: "One-line headline, ≤350 chars" # required — powers the rollup index
|
|
336
344
|
breaking: false # optional — true flags breaking changes
|
|
337
|
-
security: false # optional — true
|
|
345
|
+
security: false # optional — true ONLY for a source-code security fix, never a dependency CVE bump
|
|
338
346
|
---
|
|
339
347
|
|
|
340
348
|
# 0.1.0 — YYYY-MM-DD
|
|
341
349
|
...
|
|
342
350
|
```
|
|
343
351
|
|
|
344
|
-
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
352
|
+
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section — set it only for a security fix in this server's *own source code*, never for a routine dependency or transitive CVE bump (record those under `## Dependencies`). When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
345
353
|
|
|
346
354
|
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
347
355
|
|
|
@@ -380,4 +388,4 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
380
388
|
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
381
389
|
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
382
390
|
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
|
|
383
|
-
- [ ] `
|
|
391
|
+
- [ ] `bun run devcheck` passes
|
package/Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This stage installs all dependencies (including dev), builds the TypeScript
|
|
5
5
|
# source code into JavaScript, and prepares the production assets.
|
|
6
6
|
# ==============================================================================
|
|
7
|
-
FROM oven/bun:1.
|
|
7
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS build
|
|
8
8
|
|
|
9
9
|
WORKDIR /usr/src/app
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ RUN bun run build
|
|
|
30
30
|
# application. It uses a slim base image and only includes production
|
|
31
31
|
# dependencies and build artifacts.
|
|
32
32
|
# ==============================================================================
|
|
33
|
-
FROM oven/bun:1.
|
|
33
|
+
FROM oven/bun:1.4.0-slim AS production
|
|
34
34
|
|
|
35
35
|
WORKDIR /usr/src/app
|
|
36
36
|
|
|
@@ -41,7 +41,7 @@ ENV NODE_ENV=production
|
|
|
41
41
|
# OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
|
|
42
42
|
ARG APP_VERSION
|
|
43
43
|
LABEL org.opencontainers.image.title="@cyanheads/ensembl-mcp-server"
|
|
44
|
-
LABEL org.opencontainers.image.description="Look up genes, fetch sequences, predict variant consequences, find orthologs and cross-database xrefs
|
|
44
|
+
LABEL org.opencontainers.image.description="Look up genes, fetch sequences, predict variant consequences, find orthologs, and retrieve cross-database xrefs from Ensembl REST via MCP. STDIO or Streamable HTTP."
|
|
45
45
|
LABEL org.opencontainers.image.source="https://github.com/cyanheads/ensembl-mcp-server"
|
|
46
46
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
47
47
|
LABEL org.opencontainers.image.version="${APP_VERSION}"
|
|
@@ -52,7 +52,7 @@ COPY package.json bun.lock ./
|
|
|
52
52
|
# Install only production dependencies, ignoring any lifecycle scripts (like 'prepare')
|
|
53
53
|
# that are not needed in the final production image.
|
|
54
54
|
RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
55
|
-
bun install --production --frozen-lockfile --ignore-scripts
|
|
55
|
+
bun install --production --frozen-lockfile --ignore-scripts --omit=peer
|
|
56
56
|
|
|
57
57
|
# Conditionally install OpenTelemetry optional peer dependencies (Tier 3).
|
|
58
58
|
# These are not bundled by default to keep the base image lean. Enable at build time
|
|
@@ -69,7 +69,8 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
|
69
69
|
@opentelemetry/sdk-metrics \
|
|
70
70
|
@opentelemetry/sdk-node \
|
|
71
71
|
@opentelemetry/sdk-trace-node \
|
|
72
|
-
@opentelemetry/semantic-conventions
|
|
72
|
+
@opentelemetry/semantic-conventions \
|
|
73
|
+
--omit=dev --omit=peer --ignore-scripts; \
|
|
73
74
|
fi
|
|
74
75
|
|
|
75
76
|
# Copy the compiled application code from the build stage
|
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<h1>@cyanheads/ensembl-mcp-server</h1>
|
|
3
|
-
<p><b>Look up genes, fetch sequences, predict variant consequences, find orthologs and cross-database xrefs
|
|
3
|
+
<p><b>Look up genes, fetch sequences, predict variant consequences, find orthologs, and retrieve cross-database xrefs from Ensembl REST via MCP. STDIO or Streamable HTTP.</b>
|
|
4
4
|
<div>7 Tools • 4 Resources • 1 Prompt</div>
|
|
5
5
|
</p>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/ensembl-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/ensembl-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -235,7 +235,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
|
|
|
235
235
|
|
|
236
236
|
### Prerequisites
|
|
237
237
|
|
|
238
|
-
- [Bun v1.
|
|
238
|
+
- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
239
239
|
- No API key required — Ensembl REST is fully public.
|
|
240
240
|
|
|
241
241
|
### Installation
|
|
@@ -275,6 +275,7 @@ All configuration is validated at startup via Zod schemas in `src/config/server-
|
|
|
275
275
|
| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http` | `stdio` |
|
|
276
276
|
| `MCP_HTTP_PORT` | HTTP server port | `3010` |
|
|
277
277
|
| `MCP_HTTP_ENDPOINT_PATH` | HTTP endpoint path | `/mcp` |
|
|
278
|
+
| `MCP_SESSION_MODE` | HTTP session mode: `auto`, `stateful`, or `stateless`. Schema default `auto` resolves to stateful; this server explicitly uses stateless. | `stateless` |
|
|
278
279
|
| `MCP_AUTH_MODE` | Authentication: `none`, `jwt`, or `oauth` | `none` |
|
|
279
280
|
| `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `warning`, `error`, etc.) | `info` |
|
|
280
281
|
| `LOGS_DIR` | Directory for log files (Node.js only) | `<project-root>/logs` |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "MCP 2026-07-28 and SDK v2 adoption adds strict tool inputs, public cache hints, and an explicit stateless HTTP deployment"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.4.3 — 2026-08-22
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **Public cache hints** now mark tool, prompt, resource, and discovery catalogs cacheable for one hour and resource reads for five minutes on MCP 2026-07-28 clients.
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **MCP SDK v2 and protocol revision 2026-07-28** are available alongside the existing 2025-era clients. Tool calls reject undeclared top-level arguments, advertised schemas use JSON Schema 2020-12 and declare error envelopes, and `ctx.log` messages can reach clients that opt into MCP logging.
|
|
16
|
+
- **`MCP_SESSION_MODE=stateless`** is explicit across the Docker image, `.env.example`, and README, so source and container HTTP runs use the same session policy.
|
|
17
|
+
- **Request context propagation** now carries the handler's canonical trace, operation, tenant, and correlation fields into Ensembl upstream requests instead of retaining only the request ID.
|
|
18
|
+
- **Build and test configuration** typechecks `tests/` separately from the production emit; prompt/resource tests follow the SDK v2 async and optional-schema contracts.
|
|
19
|
+
- **Packaging and project templates** adopt Bun 1.4, production peer omission, portable MCPB cleanup, current dependency checks, community-health files, and the latest framework scripts, skills, and agent protocol.
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
|
|
23
|
+
- `@cyanheads/mcp-ts-core` `^0.10.14` → `^0.12.3`
|
|
24
|
+
- `@biomejs/biome` `^2.5.0` → `^2.5.9`
|
|
25
|
+
- `@types/node` `^26.0.0` → `^26.2.0`
|
|
26
|
+
- `ignore` `^7.0.5` → `^7.0.6`
|
|
27
|
+
- `tsc-alias` `^1.9.0` → `^1.9.2`
|
|
28
|
+
- `typescript` `^6.0.3` → `^7.0.2`
|
|
29
|
+
- `vitest` `^4.1.10` → `^4.1.11`
|
package/changelog/template.md
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
# to author a new release. Set that file's H1 to `# <version> — YYYY-MM-DD`
|
|
5
5
|
# with a concrete date.
|
|
6
6
|
|
|
7
|
-
# Required. One-line GitHub Release-style headline. 350 character cap
|
|
8
|
-
# Default short and scannable. Don't pad, don't stitch
|
|
9
|
-
#
|
|
10
|
-
#
|
|
7
|
+
# Required. One-line GitHub Release-style headline. 350 character cap — a
|
|
8
|
+
# ceiling, not a target. Default short and scannable. Don't pad, don't stitch
|
|
9
|
+
# unrelated changes with commas/semicolons into an inventory — pick the
|
|
10
|
+
# headline, like a tag's theme line. Quotes required: unquoted YAML treats
|
|
11
|
+
# `: ` inside the value as a key separator and fails GitHub's strict parser.
|
|
11
12
|
summary: ""
|
|
12
13
|
|
|
13
14
|
# Set `true` when consumers must change code to upgrade: API removals,
|
|
@@ -24,9 +25,10 @@ security: false
|
|
|
24
25
|
|
|
25
26
|
# Optional free-form notes for maintenance agents processing this release.
|
|
26
27
|
# Not rendered in CHANGELOG — consumed by agents running `maintenance` on
|
|
27
|
-
# downstream servers.
|
|
28
|
-
#
|
|
29
|
-
#
|
|
28
|
+
# downstream servers. ADOPTION STEPS ONLY — new files to create, fields to
|
|
29
|
+
# populate, one-time migration steps. Never a second rendering of the body:
|
|
30
|
+
# if a body bullet already says it, name the bullet's symbol instead of
|
|
31
|
+
# re-explaining. Omit the field entirely when there's nothing to say.
|
|
30
32
|
# agent-notes: |
|
|
31
33
|
# <instructions for downstream maintenance agents>
|
|
32
34
|
---
|
|
@@ -41,17 +43,54 @@ security: false
|
|
|
41
43
|
each bullet with the symbol or concept name in **bold** so they can skip
|
|
42
44
|
what's irrelevant and zoom in on what's not.
|
|
43
45
|
|
|
44
|
-
Tone: terse, fact-dense, not verbose.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
Tone: terse, fact-dense, not verbose. Bullet shape: **symbol** + what
|
|
47
|
+
changed + at most one consumer-facing caveat. One sentence by default, two
|
|
48
|
+
when the second carries weight — a bullet past ~40 words or three sentences
|
|
49
|
+
is wrong. The depth lives one hop away: the linked issue carries the why,
|
|
50
|
+
the commit diff carries the how. The changelog names what changed and what
|
|
51
|
+
a consumer does about it; a reader who wants mechanism opens the link.
|
|
52
|
+
|
|
53
|
+
Model length on THIS guide, never on the previous entry — entries modeled
|
|
54
|
+
on entries compound.
|
|
55
|
+
|
|
56
|
+
Cut (each has shipped as a wall of text; these are the cruft):
|
|
57
|
+
- History/justification narration — how the bug worked, why the old
|
|
58
|
+
behavior was wrong. One short clause at most; the issue carries the story.
|
|
59
|
+
- Design-rationale defense — "chosen over Y because…", "guarding the
|
|
60
|
+
getter is not enough…". That is the author arguing with a reviewer;
|
|
61
|
+
reviewers read the PR, not the changelog.
|
|
62
|
+
- Defensive unchanged-clauses — "X is unchanged", "byte-identical to
|
|
63
|
+
<prev>". Keep one only where its absence would cause a real misread,
|
|
64
|
+
as a short parenthetical.
|
|
65
|
+
- Edge-case inventories — marker lists, not-flagged lists, escape tables.
|
|
66
|
+
Tests and the issue carry those.
|
|
67
|
+
- Mechanism walkthroughs (JSDoc, CLAUDE.md/AGENTS.md, or the relevant
|
|
68
|
+
skill own those), ceremonial framings ("This release introduces…"),
|
|
69
|
+
backwards-compat paragraphs, file-by-file test enumerations. Prefer
|
|
70
|
+
code/symbol names over English re-explanations.
|
|
71
|
+
|
|
72
|
+
Verified ≠ included: the every-claim-verified-from-the-diff rule bounds
|
|
73
|
+
the TRUTH of what you write, never the AMOUNT.
|
|
74
|
+
|
|
75
|
+
Example — same fact, right size:
|
|
76
|
+
|
|
77
|
+
TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
|
|
78
|
+
(#341). `fetch` resolves once headers arrive and the deadline was
|
|
79
|
+
cleared as the helper returned, so a peer that answered promptly and
|
|
80
|
+
then stalled the stream held the request open indefinitely. A 2xx
|
|
81
|
+
carrying a body now comes back as a passthrough wrapper that disarms
|
|
82
|
+
the deadline when the body closes, errors, or is cancelled; …
|
|
83
|
+
[+90 more words of mechanism and edge cases]
|
|
84
|
+
|
|
85
|
+
RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
|
|
86
|
+
exchange, not just the headers** (#341). A stalled body aborts with
|
|
87
|
+
the same `Timeout` error; the returned `Response` is a wrapper, so
|
|
88
|
+
identity assertions (`toBe(response)`) no longer hold.
|
|
52
89
|
|
|
53
90
|
Narrative intro: skip by default. Add one short sentence only when the
|
|
54
|
-
release theme genuinely needs framing the bullets can't carry.
|
|
91
|
+
release theme genuinely needs framing the bullets can't carry. When many
|
|
92
|
+
bullets share one upgrade consequence, state it ONCE — intro line or
|
|
93
|
+
agent-notes — never per bullet.
|
|
55
94
|
|
|
56
95
|
Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
|
|
57
96
|
Fixed, Security. Include only sections with entries; delete the rest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;iBAOtB,CAAC;AAIH,wBAAgB,eAAe;;EAK9B;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -8,8 +8,7 @@ const ServerConfigSchema = z.object({
|
|
|
8
8
|
baseUrl: z
|
|
9
9
|
.string()
|
|
10
10
|
.default('https://rest.ensembl.org')
|
|
11
|
-
.describe('Ensembl REST API base URL. Override to point at GRCh37 legacy endpoint '
|
|
12
|
-
'(https://grch37.rest.ensembl.org) or a local mirror.'),
|
|
11
|
+
.describe('Ensembl REST API base URL. Override to point at the GRCh37 legacy endpoint (https://grch37.rest.ensembl.org) or a local mirror.'),
|
|
13
12
|
});
|
|
14
13
|
let _config;
|
|
15
14
|
export function getServerConfig() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,iIAAiI,CAClI;CACJ,CAAC,CAAC;AAEH,IAAI,OAAuD,CAAC;AAE5D,MAAM,UAAU,eAAe;IAC7B,OAAO,KAAK,cAAc,CAAC,kBAAkB,EAAE;QAC7C,OAAO,EAAE,kBAAkB;KAC5B,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,14 @@ import { initEnsemblService } from './services/ensembl/ensembl-service.js';
|
|
|
19
19
|
await createApp({
|
|
20
20
|
name: 'ensembl-mcp-server',
|
|
21
21
|
title: 'ensembl-mcp-server',
|
|
22
|
+
cacheHints: {
|
|
23
|
+
'prompts/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
24
|
+
'resources/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
25
|
+
'resources/read': { ttlMs: 300_000, cacheScope: 'public' },
|
|
26
|
+
'resources/templates/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
27
|
+
'server/discover': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
28
|
+
'tools/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
29
|
+
},
|
|
22
30
|
tools: [
|
|
23
31
|
ensemblListSpecies,
|
|
24
32
|
ensemblLookupGene,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
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,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC7D,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KACzD;IACD,KAAK,EAAE;QACL,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,qBAAqB;QACrB,kBAAkB;QAClB,eAAe;KAChB;IACD,SAAS,EAAE;QACT,mBAAmB;QACnB,yBAAyB;QACzB,sBAAsB;QACtB,gCAAgC;KACjC;IACD,OAAO,EAAE,CAAC,wBAAwB,CAAC;IACnC,YAAY,EAAE;;;;oHAIoG;IAClH,KAAK,CAAC,IAAI;QACR,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -8,11 +8,11 @@ import { z } from '@cyanheads/mcp-ts-core';
|
|
|
8
8
|
export declare const ensemblSpeciesResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<z.ZodObject<{}, z.core.$strip>, undefined, undefined>;
|
|
9
9
|
export declare const ensemblSpeciesByDivisionResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<z.ZodObject<{
|
|
10
10
|
division: z.ZodEnum<{
|
|
11
|
-
EnsemblVertebrates: "EnsemblVertebrates";
|
|
12
|
-
EnsemblPlants: "EnsemblPlants";
|
|
13
11
|
EnsemblFungi: "EnsemblFungi";
|
|
14
12
|
EnsemblMetazoa: "EnsemblMetazoa";
|
|
13
|
+
EnsemblPlants: "EnsemblPlants";
|
|
15
14
|
EnsemblProtists: "EnsemblProtists";
|
|
15
|
+
EnsemblVertebrates: "EnsemblVertebrates";
|
|
16
16
|
}>;
|
|
17
17
|
}, z.core.$strip>, undefined, undefined>;
|
|
18
18
|
//# sourceMappingURL=species.resource.d.ts.map
|
|
@@ -10,9 +10,9 @@ export declare const ensemblGetHomology: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
10
10
|
species: z.ZodDefault<z.ZodString>;
|
|
11
11
|
target_species: z.ZodOptional<z.ZodString>;
|
|
12
12
|
type: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
all: "all";
|
|
13
14
|
orthologues: "orthologues";
|
|
14
15
|
paralogues: "paralogues";
|
|
15
|
-
all: "all";
|
|
16
16
|
}>>;
|
|
17
17
|
max_results: z.ZodDefault<z.ZodNumber>;
|
|
18
18
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -7,9 +7,9 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
|
7
7
|
export declare const ensemblGetSequence: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
type: z.ZodDefault<z.ZodEnum<{
|
|
10
|
-
genomic: "genomic";
|
|
11
10
|
cdna: "cdna";
|
|
12
11
|
cds: "cds";
|
|
12
|
+
genomic: "genomic";
|
|
13
13
|
protein: "protein";
|
|
14
14
|
}>>;
|
|
15
15
|
species: z.ZodOptional<z.ZodString>;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
6
6
|
export declare const ensemblListSpecies: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
|
|
7
7
|
division: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
EnsemblVertebrates: "EnsemblVertebrates";
|
|
9
|
-
EnsemblPlants: "EnsemblPlants";
|
|
10
8
|
EnsemblFungi: "EnsemblFungi";
|
|
11
9
|
EnsemblMetazoa: "EnsemblMetazoa";
|
|
10
|
+
EnsemblPlants: "EnsemblPlants";
|
|
12
11
|
EnsemblProtists: "EnsemblProtists";
|
|
12
|
+
EnsemblVertebrates: "EnsemblVertebrates";
|
|
13
13
|
}>>;
|
|
14
14
|
nameContains: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -10,9 +10,9 @@ export declare const ensemblQueryRegion: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
10
10
|
feature: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
11
11
|
exon: "exon";
|
|
12
12
|
gene: "gene";
|
|
13
|
+
regulatory: "regulatory";
|
|
13
14
|
transcript: "transcript";
|
|
14
15
|
variation: "variation";
|
|
15
|
-
regulatory: "regulatory";
|
|
16
16
|
}>>>;
|
|
17
17
|
biotype: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensembl-service.d.ts","sourceRoot":"","sources":["../../../src/services/ensembl/ensembl-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,KAAK,EAEV,UAAU,EAEV,cAAc,EACd,cAAc,EASd,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,SAAS,EACV,MAAM,YAAY,CAAC;AAqKpB,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;
|
|
1
|
+
{"version":3,"file":"ensembl-service.d.ts","sourceRoot":"","sources":["../../../src/services/ensembl/ensembl-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,KAAK,EAEV,UAAU,EAEV,cAAc,EACd,cAAc,EASd,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,SAAS,E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E,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAKpF;CACF;AAMD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAEnF;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAKlD"}
|
|
@@ -227,7 +227,7 @@ export class EnsemblService {
|
|
|
227
227
|
const operation = `EnsemblService.fetch:${path.split('?')[0]}`;
|
|
228
228
|
const reqCtx = requestContextService.createRequestContext({
|
|
229
229
|
operation,
|
|
230
|
-
parentContext:
|
|
230
|
+
parentContext: ctx,
|
|
231
231
|
});
|
|
232
232
|
return withRetry(() => this.fetchJson(path, ctx, options), {
|
|
233
233
|
operation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensembl-service.js","sourceRoot":"","sources":["../../../src/services/ensembl/ensembl-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAE9F,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAsB5D,sBAAsB;AAEtB,SAAS,aAAa,CAAC,GAAkB;IACvC,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACpD,OAAO;QACL,EAAE,EAAE,GAAG,CAAC,EAAE;QACV,GAAG,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;QAC5C,GAAG,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC;QAC1D,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,E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AAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/ensembl-mcp-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"mcpName": "io.github.cyanheads/ensembl-mcp-server",
|
|
5
|
-
"description": "Look up genes, fetch sequences, predict variant consequences, find orthologs and cross-database xrefs
|
|
5
|
+
"description": "Look up genes, fetch sequences, predict variant consequences, find orthologs, and retrieve cross-database xrefs from Ensembl REST via MCP. STDIO or Streamable HTTP.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
],
|
|
83
83
|
"license": "Apache-2.0",
|
|
84
|
-
"packageManager": "bun@1.
|
|
84
|
+
"packageManager": "bun@1.4.0",
|
|
85
85
|
"engines": {
|
|
86
86
|
"bun": ">=1.3.0",
|
|
87
87
|
"node": ">=24.0.0"
|
|
@@ -90,19 +90,19 @@
|
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@cyanheads/mcp-ts-core": "^0.
|
|
93
|
+
"@cyanheads/mcp-ts-core": "^0.12.3",
|
|
94
94
|
"pino-pretty": "^13.1.3",
|
|
95
95
|
"zod": "^4.4.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@biomejs/biome": "^2.5.
|
|
98
|
+
"@biomejs/biome": "^2.5.9",
|
|
99
99
|
"@socketsecurity/bun-security-scanner": "^1.1.2",
|
|
100
|
-
"@types/node": "^26.
|
|
100
|
+
"@types/node": "^26.2.0",
|
|
101
101
|
"depcheck": "^1.4.7",
|
|
102
|
-
"ignore": "^7.0.
|
|
103
|
-
"tsc-alias": "^1.9.
|
|
104
|
-
"typescript": "^
|
|
105
|
-
"vitest": "^4.1.
|
|
102
|
+
"ignore": "^7.0.6",
|
|
103
|
+
"tsc-alias": "^1.9.2",
|
|
104
|
+
"typescript": "^7.0.2",
|
|
105
|
+
"vitest": "^4.1.11"
|
|
106
106
|
},
|
|
107
107
|
"trustedDependencies": ["@socketsecurity/bun-security-scanner"]
|
|
108
108
|
}
|
package/server.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.cyanheads/ensembl-mcp-server",
|
|
4
|
-
"description": "Look up genes,
|
|
4
|
+
"description": "Look up genes, sequences, variants, homologs, and cross-database xrefs from Ensembl REST.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/cyanheads/ensembl-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.4.
|
|
9
|
+
"version": "0.4.3",
|
|
10
10
|
"remotes": [
|
|
11
11
|
{
|
|
12
12
|
"type": "streamable-http",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
20
20
|
"identifier": "@cyanheads/ensembl-mcp-server",
|
|
21
21
|
"runtimeHint": "bun",
|
|
22
|
-
"version": "0.4.
|
|
22
|
+
"version": "0.4.3",
|
|
23
23
|
"packageArguments": [
|
|
24
24
|
{
|
|
25
25
|
"type": "positional",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
56
56
|
"identifier": "@cyanheads/ensembl-mcp-server",
|
|
57
57
|
"runtimeHint": "bun",
|
|
58
|
-
"version": "0.4.
|
|
58
|
+
"version": "0.4.3",
|
|
59
59
|
"packageArguments": [
|
|
60
60
|
{
|
|
61
61
|
"type": "positional",
|