Commit Graph
218 Commits
Author SHA1 Message Date
github-actions[bot] 4506c66495 ci: update build assets (v2.1.2) 2026-08-20 15:51:20 +00:00
Sampson 30486c8926 chore: npm pgk fix 2026-08-20 10:49:54 -05:00
github-actions[bot] 3e65f3f0b7 ci: update build assets (v2.1.1) 2026-08-20 15:44:16 +00:00
Sampson e8b62148ad fix: advertise tool schemas as JSON Schema 2020-12 (#335)
* refactor(tools): pass Zod schemas to registerTool instead of raw shapes

registerTool accepts either a ZodObject or a raw shape, and passing the
schema itself keeps each tool definition closer to how its schema is
declared. The advertised JSON Schema is unchanged either way.

* fix(server): advertise tool schemas as JSON Schema 2020-12

The SDK converts our Zod schemas on every tools/list with a hardcoded
draft-07 target: mcp.js calls toJsonSchemaCompat() without a `target`, and
mapMiniTarget(undefined) falls back to 'draft-7'. No registerTool option
overrides it, so every schema we advertised declared draft-07.

Clients that validate against 2020-12 reject those definitions outright,
which takes down the whole tool list rather than a single tool. Separately,
brave_place_search's coordinates tuple emitted draft-07's array-form
`items`, which is invalid under 2020-12 where positional validation moved
to `prefixItems`.

SEP-1613 §5 requires servers to generate 2020-12 by default, so re-emit the
schemas on the tools/list response. Each correction is conditional, so this
decays to a no-op once the SDK emits 2020-12 itself.

Refs: https://github.com/modelcontextprotocol/typescript-sdk/issues/2084

* test(server): assert advertised schemas are valid JSON Schema 2020-12

Compile every tool's inputSchema and outputSchema from a real tools/list
response with a 2020-12 validator. This runs against the wire format rather
than our Zod definitions because the SDK performs the conversion itself: the
Zod schemas can be correct while the advertised JSON Schema is not.

Compiling resolves whichever dialect a schema declares, so a single check
covers both failure modes - a draft-07 declaration, and keywords that are
invalid under 2020-12. The SDK's own default client validator is Ajv
draft-07 with schema validation disabled, so it accepts output that 2020-12
clients reject; add ajv as a devDependency to check the dialect explicitly.
2026-08-20 10:41:28 -05:00
dependabot[bot] 8f0e4a2874 Bump @hono/node-server and @modelcontextprotocol/sdk (#325)
Bumps [@hono/node-server](https://github.com/honojs/node-server) to 2.0.12 and updates ancestor dependency [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk). These dependencies need to be updated together.


Updates `@hono/node-server` from 1.19.13 to 2.0.12
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.13...v2.0.12)

Updates `@modelcontextprotocol/sdk` from 1.29.0 to 1.30.0
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/v1.29.0...1.30.0)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 2.0.12
  dependency-type: indirect
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.30.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-27 13:02:11 -05:00
github-actions[bot] 76106c83f9 ci: update build assets (v2.1.0) 2026-07-18 19:29:50 +00:00
Sampson e3f77ced06 fix: http port validation (#312)
* fix: validate and parse HTTP port as integer

Commander leaves --port as a string, so invalid values like abc previously
passed numeric range checks. Parse ports strictly before starting HTTP transport.

* test: add parsePort unit tests and npm test script

Introduce node:test coverage for HTTP port parsing edge cases using the
existing tsx dev dependency.

* docs: correct README port default and image search description

Align BRAVE_MCP_PORT default with runtime behavior (8080) and remove the
outdated v1.x base64 image search note.
2026-06-24 07:58:51 -05:00
github-actions[bot] 759b9a880d ci: update build assets (v2.0.85) 2026-06-15 10:25:57 +00:00
github-actions[bot] 16e8e897b9 ci: update build assets (v2.0.84) 2026-06-15 10:18:16 +00:00
dependabot[bot] fa59e455e9 Bump esbuild and tsx
Bumps [esbuild](https://github.com/evanw/esbuild) to 0.28.1 and updates ancestor dependency [tsx](https://github.com/privatenumber/tsx). These dependencies need to be updated together.


Updates `esbuild` from 0.27.2 to 0.28.1
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2025.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.2...v0.28.1)

Updates `tsx` from 4.21.0 to 4.22.4
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.21.0...v4.22.4)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.28.1
  dependency-type: indirect
- dependency-name: tsx
  dependency-version: 4.22.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-14 12:02:59 +00:00
github-actions[bot] d915fade87 ci: update build assets (v2.0.83) 2026-06-01 19:10:06 +00:00
github-actions[bot] 2ffc73b216 ci: update build assets (v2.0.82) 2026-05-14 15:26:22 +00:00
Mihai PLESA 5470ffa018 Merge pull request #297 from brave/renovate/modelcontextprotocol-sdk-1-x
Update dependency @modelcontextprotocol/sdk to v1.29.0
2026-05-14 16:24:45 +01:00
github-actions[bot] f3cb61e9d4 ci: update build assets (v2.0.81) 2026-05-14 15:10:47 +00:00
renovate[bot] 378a78ecd9 Update dependency @modelcontextprotocol/sdk to v1.29.0 2026-05-12 10:59:17 +00:00
Sampson a48cf65c9d adds support for explicit version (#289) 2026-05-03 16:41:42 -05:00
github-actions[bot] ba5419076f ci: update build assets (v2.0.80) 2026-04-21 16:12:23 +00:00
github-actions[bot] ccff6cc006 ci: update build assets (v2.0.79) 2026-04-21 13:16:20 +00:00
github-actions[bot] 6fd002af58 ci: update build assets (v2.0.78) 2026-04-21 12:55:45 +00:00
github-actions[bot] 995a13a23b ci: update build assets (v2.0.77) 2026-04-21 12:41:25 +00:00
github-actions[bot] c0fa34506d ci: update build assets (v2.0.76) 2026-04-16 08:43:55 +00:00
renovate[bot] 4111e5178d fix(deps): update dependency @modelcontextprotocol/sdk to v1.27.1 2026-03-13 11:39:33 +00:00
Mihai PLESA 327f6e75cf Merge pull request #243 from brave/renovate/modelcontextprotocol-sdk-1-x
fix(deps): update dependency @modelcontextprotocol/sdk to v1.27.0
2026-02-27 08:28:25 +00:00
Mihai PLESA 00e78d4937 Merge pull request #244 from brave/renovate/dotenv-17-x
fix(deps): update dependency dotenv to v17.3.1
2026-02-27 08:28:17 +00:00
Mihai PLESA a7152bb484 Merge pull request #246 from brave/renovate/node-24-x
chore(deps): update dependency @types/node to v24.10.13
2026-02-27 08:28:05 +00:00
renovate[bot] 79f0d8be3b fix(deps): update dependency dotenv to v17.3.1 2026-02-27 08:18:45 +00:00
renovate[bot] 5cabf08a64 fix(deps): update dependency @modelcontextprotocol/sdk to v1.27.0 2026-02-27 08:18:39 +00:00
Mihai PLESA c53ff41bc6 Merge pull request #247 from brave/renovate/commander-14-x
fix(deps): update dependency commander to v14.0.3
2026-02-27 08:17:31 +00:00
renovate[bot] 7052999b8c chore(deps): update dependency @types/node to v24.10.13 2026-02-27 08:17:28 +00:00
Mihai PLESA 545913a3ec Merge pull request #248 from brave/renovate/zod-4-x
fix(deps): update dependency zod to v4.3.6
2026-02-27 08:17:19 +00:00
Mihai PLESA 7f895ad7cf Merge pull request #249 from brave/renovate/prettier-3-x
chore(deps): update dependency prettier to v3.8.1
2026-02-27 08:17:00 +00:00
github-actions[bot] 433938fdb3 ci: update build assets (v2.0.75) 2026-02-26 15:42:22 +00:00
github-actions[bot] 61503b6215 ci: update build assets (v2.0.74) 2026-02-25 22:51:38 +00:00
github-actions[bot] e56489c80e ci: update build assets (v2.0.73) 2026-02-25 22:33:17 +00:00
renovate[bot] c7292cf7be chore(deps): update dependency prettier to v3.8.1 2026-02-17 19:12:25 +00:00
renovate[bot] 3ba946712c fix(deps): update dependency zod to v4.3.6 2026-02-17 19:12:19 +00:00
renovate[bot] 358c6fc0a4 fix(deps): update dependency commander to v14.0.3 2026-02-17 19:12:06 +00:00
dependabot[bot] ea9b999814 Bump @modelcontextprotocol/sdk from 1.25.2 to 1.26.0
Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.25.2 to 1.26.0.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/v1.25.2...v1.26.0)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-04 20:37:49 +00:00
github-actions[bot] 4487b8ff56 ci: update build assets (v2.0.72) 2026-01-29 01:49:10 +00:00
github-actions[bot] 87fbfda571 ci: update build assets (v2.0.71) 2026-01-28 19:25:27 +00:00
github-actions[bot] a25c1cd23f ci: update build assets (v2.0.70) 2026-01-28 19:10:34 +00:00
github-actions[bot] e5cf46cb8f ci: update build assets (v2.0.69) 2026-01-26 06:15:08 +00:00
github-actions[bot] 1971bc05d6 ci: update build assets (v2.0.68) 2026-01-22 22:19:55 +00:00
renovate[bot] 9442845704 chore(deps): update dependency @types/node to v24.10.4 2026-01-16 13:24:41 +00:00
renovate[bot] ca6c8898ca chore(deps): update dependency @smithery/cli to v2.2.1 2026-01-16 13:18:31 +00:00
Mihai PLESA 099c810dc5 Merge pull request #213 from brave/renovate/prettier-3-x
chore(deps): update dependency prettier to v3.7.4
2026-01-16 13:18:08 +00:00
Mihai PLESA 5d78a3cc8d Merge pull request #216 from brave/renovate/tsx-4-x
chore(deps): update dependency tsx to v4.21.0
2026-01-16 13:17:33 +00:00
Mihai PLESA 47b20d3f59 Merge pull request #214 from brave/renovate/zod-4-x
fix(deps): update dependency zod to v4.3.5
2026-01-16 13:17:17 +00:00
Mihai PLESA d9655e4145 Merge pull request #211 from brave/renovate/express-5-x
chore(deps): update dependency @types/express to v5.0.6
2026-01-16 13:17:03 +00:00
github-actions[bot] 78b8a8a9a7 ci: update build assets (v2.0.67) 2026-01-14 17:44:44 +00:00