@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 +2 -2
- package/README.md +4 -4
- package/changelog/0.3.x/0.3.6.md +23 -0
- package/package.json +13 -13
- package/server.json +5 -5
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Agent Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** brapi-mcp-server
|
|
4
|
-
**Version:** 0.3.
|
|
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
|
|
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
|
-
[](https://www.npmjs.com/package/@cyanheads/brapi-mcp-server) [](https://www.npmjs.com/package/@cyanheads/brapi-mcp-server) [](./CHANGELOG.md) [](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) [](https://modelcontextprotocol.io/)
|
|
11
11
|
|
|
12
12
|
[](./LICENSE) [](https://www.typescriptlang.org/) [](https://bun.sh/) [](./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** (
|
|
497
|
+
- **Hot-reload dev mode** (Bun runs TypeScript directly):
|
|
498
498
|
|
|
499
499
|
```sh
|
|
500
|
-
MCP_TRANSPORT_TYPE=stdio
|
|
501
|
-
MCP_TRANSPORT_TYPE=http
|
|
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.
|
|
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": "
|
|
24
|
-
"rebuild": "
|
|
25
|
-
"clean": "
|
|
26
|
-
"devcheck": "
|
|
27
|
-
"tree": "
|
|
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": "
|
|
30
|
-
"changelog:build": "
|
|
31
|
-
"changelog: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
|
-
"
|
|
34
|
-
"start
|
|
35
|
-
"start:
|
|
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.
|
|
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": "
|
|
16
|
-
"version": "0.3.
|
|
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": "
|
|
45
|
-
"version": "0.3.
|
|
44
|
+
"runtimeHint": "bun",
|
|
45
|
+
"version": "0.3.6",
|
|
46
46
|
"packageArguments": [
|
|
47
47
|
{ "type": "positional", "value": "run" },
|
|
48
48
|
{ "type": "positional", "value": "start:http" }
|