@cyanheads/brapi-mcp-server 0.3.5 → 0.3.6

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/CLAUDE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** brapi-mcp-server
4
- **Version:** 0.3.5
4
+ **Version:** 0.3.6
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
6
6
 
7
7
  > **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.
@@ -319,7 +319,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
319
319
 
320
320
  ## Commands
321
321
 
322
- **Runtime:** Scripts use `tsx` both `npm run <cmd>` and `bun run <cmd>` work. Prefer `bun` (declared in `packageManager`).
322
+ **Runtime:** Scripts and the production entry point use Bun directly Bun executes TypeScript natively, no `tsx` shim. The `packageManager` field pins the version.
323
323
 
324
324
  | Command | Purpose |
325
325
  |:--------|:--------|
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![npm](https://img.shields.io/npm/v/@cyanheads/brapi-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/brapi-mcp-server) [![Version](https://img.shields.io/badge/Version-0.3.5-blue.svg?style=flat-square)](./CHANGELOG.md) [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-259?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/)
10
+ [![npm](https://img.shields.io/npm/v/@cyanheads/brapi-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/brapi-mcp-server) [![Version](https://img.shields.io/badge/Version-0.3.6-blue.svg?style=flat-square)](./CHANGELOG.md) [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-259?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/)
11
11
 
12
12
  [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.11-blueviolet.svg?style=flat-square)](https://bun.sh/) [![Status](https://img.shields.io/badge/Status-Beta-yellow.svg?style=flat-square)](./CHANGELOG.md)
13
13
 
@@ -494,11 +494,11 @@ Then the agent calls `brapi_connect({ alias: 'cassava' })` — no `baseUrl`, no
494
494
 
495
495
  ### Local development
496
496
 
497
- - **Hot-reload dev mode** (run `tsx --watch` directly):
497
+ - **Hot-reload dev mode** (Bun runs TypeScript directly):
498
498
 
499
499
  ```sh
500
- MCP_TRANSPORT_TYPE=stdio bunx tsx --watch src/index.ts
501
- MCP_TRANSPORT_TYPE=http bunx tsx --watch src/index.ts
500
+ MCP_TRANSPORT_TYPE=stdio bun --watch src/index.ts
501
+ MCP_TRANSPORT_TYPE=http bun --watch src/index.ts
502
502
  ```
503
503
 
504
504
  - **Build and run the production version:**
@@ -0,0 +1,23 @@
1
+ ---
2
+ summary: "Drop the tsx runtime shim — package scripts and the production entry point invoke Bun directly. Fixes a Docker linux/arm64 build failure (tsx + Bun 1.3.13 in oven/bun:1) and aligns the script execution model with the cyanheads MCP fleet."
3
+ breaking: false
4
+ ---
5
+
6
+ # 0.3.6 — 2026-04-30
7
+
8
+ A toolchain alignment release with no behavior change. Local builds continue to work exactly as before; the visible difference is that the Dockerfile now builds against `linux/arm64` again, and `tsx` is no longer a dependency.
9
+
10
+ ## Changed
11
+
12
+ - **`package.json` scripts run TypeScript via Bun directly** — `build`, `rebuild`, `clean`, `devcheck`, `tree`, `lint:mcp`, `changelog:build`, `changelog:check` switched from `tsx scripts/<name>.ts` to `bun run scripts/<name>.ts`. Bun executes TypeScript natively, so the tsx loader is no longer needed.
13
+ - **`start`, `start:stdio`, `start:http` invoke the production bundle via Bun** — switched from `node dist/index.js` to `bun ./dist/index.js`. Matches the runtime declared by `packageManager` and the `bun` runtimeHint surfaced via `server.json`.
14
+ - **`server.json` `runtimeHint` flipped from `node` to `bun`** on both the stdio and http package entries — reflects the actual runtime the start scripts now use, and matches the rest of the cyanheads MCP fleet.
15
+ - **CLAUDE.md and README dev-mode snippet updated** — `bunx tsx --watch src/index.ts` is now `bun --watch src/index.ts`. The Commands section no longer claims scripts depend on tsx.
16
+
17
+ ## Removed
18
+
19
+ - **`tsx` removed from `devDependencies`.** No code in the repo still references it.
20
+
21
+ ## Fixed
22
+
23
+ - **Multi-arch Docker build no longer fails on linux/arm64** — `RUN bun run build` previously routed through `tsx scripts/build.ts`, which surfaced `Cannot find module './cjs/index.cjs' from ''` inside the upstream `oven/bun:1` image (Bun 1.3.13). Routing through Bun directly avoids the tsx-loading path entirely. Surfaced during the v0.3.5 release attempt; the npm + MCP Registry publishes succeeded but the GHCR image push aborted. v0.3.6 ships the same surface plus the toolchain fix.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cyanheads/brapi-mcp-server",
3
3
  "mcpName": "io.github.cyanheads/brapi-mcp-server",
4
- "version": "0.3.5",
4
+ "version": "0.3.6",
5
5
  "description": "BrAPI v2.1 MCP server — studies, germplasm, observations, genotypes, images, and pedigrees.",
6
6
  "author": "Casey Hand @cyanheads (https://github.com/cyanheads/brapi-mcp-server#readme)",
7
7
  "type": "module",
@@ -20,19 +20,20 @@
20
20
  "server.json"
21
21
  ],
22
22
  "scripts": {
23
- "build": "tsx scripts/build.ts",
24
- "rebuild": "tsx scripts/clean.ts && tsx scripts/build.ts",
25
- "clean": "tsx scripts/clean.ts",
26
- "devcheck": "tsx scripts/devcheck.ts",
27
- "tree": "tsx scripts/tree.ts",
23
+ "build": "bun run scripts/build.ts",
24
+ "rebuild": "bun run scripts/clean.ts && bun run build",
25
+ "clean": "bun run scripts/clean.ts",
26
+ "devcheck": "bun run scripts/devcheck.ts",
27
+ "tree": "bun run scripts/tree.ts",
28
28
  "format": "biome check --write --unsafe .",
29
- "lint:mcp": "tsx scripts/lint-mcp.ts",
30
- "changelog:build": "tsx scripts/build-changelog.ts",
31
- "changelog:check": "tsx scripts/build-changelog.ts --check",
29
+ "lint:mcp": "bun run scripts/lint-mcp.ts",
30
+ "changelog:build": "bun run scripts/build-changelog.ts",
31
+ "changelog:check": "bun run scripts/build-changelog.ts --check",
32
32
  "test": "bunx --bun vitest run",
33
- "start": "node dist/index.js",
34
- "start:stdio": "MCP_TRANSPORT_TYPE=stdio node dist/index.js",
35
- "start:http": "MCP_TRANSPORT_TYPE=http node dist/index.js"
33
+ "publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish",
34
+ "start": "bun ./dist/index.js",
35
+ "start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
36
+ "start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js"
36
37
  },
37
38
  "keywords": [
38
39
  "mcp",
@@ -79,7 +80,6 @@
79
80
  "depcheck": "^1.4.7",
80
81
  "ignore": "^7.0.5",
81
82
  "tsc-alias": "^1.8.16",
82
- "tsx": "^4.21.0",
83
83
  "typescript": "^6.0.3",
84
84
  "vitest": "^4.1.5"
85
85
  }
package/server.json CHANGED
@@ -6,14 +6,14 @@
6
6
  "url": "https://github.com/cyanheads/brapi-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.3.5",
9
+ "version": "0.3.6",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "registryBaseUrl": "https://registry.npmjs.org",
14
14
  "identifier": "@cyanheads/brapi-mcp-server",
15
- "runtimeHint": "node",
16
- "version": "0.3.5",
15
+ "runtimeHint": "bun",
16
+ "version": "0.3.6",
17
17
  "packageArguments": [
18
18
  { "type": "positional", "value": "run" },
19
19
  { "type": "positional", "value": "start:stdio" }
@@ -41,8 +41,8 @@
41
41
  "registryType": "npm",
42
42
  "registryBaseUrl": "https://registry.npmjs.org",
43
43
  "identifier": "@cyanheads/brapi-mcp-server",
44
- "runtimeHint": "node",
45
- "version": "0.3.5",
44
+ "runtimeHint": "bun",
45
+ "version": "0.3.6",
46
46
  "packageArguments": [
47
47
  { "type": "positional", "value": "run" },
48
48
  { "type": "positional", "value": "start:http" }