Commit graph

1,905 commits

Author SHA1 Message Date
Cliff Hall
1977e2a597
Merge pull request #966 from olaservo/fix/streamable-http-401-handling 0.17.6 0.18.0
fix: detect 401 errors from StreamableHTTP transport for OAuth flow
2025-12-13 18:04:34 -05:00
Ola Hungerford
8ea530cee9
Merge pull request #971 from cliffhall/bump-ts-sdk-version
Bump TS SDK version to 1.24.3
2025-12-13 10:48:41 -07:00
cliffhall
96e256687e Bump TS SDK version to 1.24.3 2025-12-13 12:01:40 -05:00
Cliff Hall
e7018c0e23
Merge pull request #969 from olaservo/release/v0.18.0
chore: bump version to 0.18.0
2025-12-13 11:11:43 -05:00
olaservo
b3a27297c8 chore: bump version to 0.18.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 08:08:44 -07:00
Ola Hungerford
5778a3a93e
Merge pull request #926 from bolinfest/sapling-pr-archive-bolinfest
fix: allow empty elicitation form data when all fields are optional
2025-12-11 21:34:12 -07:00
Ola Hungerford
bce61b2d34
Merge pull request #968 from Vijaydaswani/fix/icon-theme-property
feat: add theme property to Icon and Prompt types
2025-12-11 20:42:53 -07:00
Vijay Daswani
1e1b9e3619 feat: add theme property to Icon and Prompt types 2025-12-12 01:25:30 +04:00
Ola Hungerford
2056622607
Merge pull request #952 from cliffhall/sep-1330-enums
Add support for SEP-1330 Elicitation Enums
2025-12-09 20:28:14 -07:00
Ola Hungerford
3d15778a86
Merge pull request #964 from koic/fix_broken_links_to_contributing_md
[Docs] Fix broken CONTRIBUTING.md links in GitHub templates
2025-12-08 18:38:28 -07:00
olaservo
d1fcbd2c93 fix: detect 401 errors from StreamableHTTP transport for OAuth flow
The server-side error handling only checked for SseError instances
when detecting 401 responses from MCP servers. StreamableHTTPClientTransport
throws a different error type (generic Error with "HTTP 401" message)
when there's no authProvider configured.

This caused the proxy to return 500 instead of 401 to the client,
preventing the OAuth discovery and redirect flow from triggering.

Added is401Error() helper that checks for:
- SseError with code 401
- StreamableHTTPError with code 401
- Generic Error with "HTTP 401" or "(401)" in message

Fixes #960

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 07:22:29 -07:00
Koichi ITO
171d6b42b4 [Docs] Fix broken CONTRIBUTING.md links in GitHub templates
The links were broken because the relative paths were incorrect.
2025-12-08 16:50:43 +09:00
Ola Hungerford
2b79e36464
Merge pull request #963 from DaleSeo/patch-1
fix issue link in CONTRIBUTING.md
2025-12-07 15:24:45 -07:00
Dale Seo
25618173b2
fix issue link in CONTRIBUTING.md 2025-12-07 16:52:31 -05:00
Cliff Hall
976d77f05a
Merge pull request #958 from olaservo/update-pr-template
Update V2 messaging to clarify V1 focus
2025-12-06 10:39:05 -05:00
Ola Hungerford
06f4b25a11
Merge branch 'main' into update-pr-template 2025-12-05 09:05:19 -07:00
olaservo
de5b23bb5a Update V2 messaging to clarify V1 focus on bug fixes and spec compliance
Clarify in contribution guidelines that during V2 development, V1
contributions should focus on bug fixes and MCP spec compliance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:58:35 -07:00
Cliff Hall
2c94a00884
Merge branch 'main' into sep-1330-enums 2025-12-04 16:19:22 -05:00
Ola Hungerford
e9e38b08fe
Merge pull request #954 from cliffhall/bump-to-0.17.5 0.17.5
Bump version to 0.17.5
2025-12-04 08:01:40 -07:00
cliffhall
124e73311a Bump version to 0.17.5 2025-12-04 09:46:13 -05:00
cliffhall
cb1be764c1 Exclude tests from build in tsconfig.app.json 2025-12-03 10:16:33 -05:00
cliffhall
d0c5b884c6 Fix linter issues in DynamicJsonForm.tsx 2025-12-03 10:08:13 -05:00
cliffhall
3f0c45e10d update DynamicJsonForm tests; add enum coverage and JSON-mode assertions
- Align tests with new form-first rendering and UI behavior:
  - Labels prefer schema `title` over property key.
  - Descriptions shown for boolean checkboxes and select fields.
  - Explicit mode switching between Form/JSON when needed.
- Add comprehensive coverage for enum schema variants:
  - Titled single-select via `oneOf`/`anyOf` with `{ const, title }`.
  - Untitled single-select via `enum` (with legacy `enumNames` labels).
  - Untitled multi-select via `items.enum` with `minItems`/`maxItems` helper text.
  - Titled multi-select via `items.anyOf`/`oneOf` with `{ const, title }`.
- Adjust complex/JSON-mode tests to click “Switch to JSON” before asserting textarea and clipboard interactions.
- Fix debounced JSON update expectations to assert parsed objects rather than raw text.

Files updated:
- `client/src/components/__tests__/DynamicJsonForm.test.tsx`
- `client/src/components/__tests__/DynamicJsonForm.array.test.tsx`
2025-12-03 09:58:18 -05:00
cliffhall
fd99d879c5 DynamicJsonForm improvements and full enum schema support
In DynamicJsonForm.tsx,
  - Support all five enum shapes used by MCP SDK:
    - Titled single-select via `oneOf`/`anyOf` with `{ const, title }`
    - Untitled single-select via `enum`
    - Titled legacy single-select with optional `enumNames` for labels
    - Titled multi-select via `items.anyOf`/`oneOf`
    - Untitled multi-select via `items.enum`
  - Show field descriptions for string select fields and boolean checkboxes (consistent help text above inputs).
  - Prefer schema property `title` for object field labels; fall back to the JSON key when missing.
  - Allow top‑level form rendering for objects with properties, arrays with items, and primitive types (was overly strict before).
  - Multi-select UI: sensible list size and `minItems`/`maxItems` helper text when present.
  - JSON editor fallback, copy/format controls, and debounced parsing preserved.
  - apply defaults for optional fields during form init

In schemaUtils.ts
  - `generateDefaultValue` now includes optional properties that declare a `default`, ensuring fields like strings show their defaults on first render.

In jsonUtils.ts
  - Add legacy `enumNames?: string[]` and array constraints `minItems?`/`maxItems?`.
2025-12-02 19:37:28 -05:00
Cliff Hall
11e4e10c71
Merge pull request #778 from jesselumarie/jesselumarie/test-SEP-974
mcp: add icon + website for testing SEP-973
2025-12-01 16:29:49 -05:00
Cliff Hall
7b644f9f99
Merge branch 'main' into jesselumarie/test-SEP-974 2025-12-01 14:13:47 -05:00
Michael Bolin
4b20f15c72 add suggested tests from code review 2025-12-01 10:07:10 -08:00
Felix Weinberger
bb3a2a17ad
Merge pull request #941 from modelcontextprotocol/fweinberger/sep1699-debug
fix: proper stream cleanup and transport close on disconnect
2025-12-01 16:30:12 +00:00
Felix Weinberger
3058b56f94
Merge branch 'main' into fweinberger/sep1699-debug 2025-11-28 19:41:35 +00:00
Felix Weinberger
6e4a52b273
Merge pull request #940 from modelcontextprotocol/fweinberger/fix-stream-double-close
Fix ReadableStream controller double-close crash
2025-11-28 19:41:14 +00:00
Felix Weinberger
fe57d7e952
fix: proper stream cleanup and transport close on disconnect
1. createWebReadableStream: Add closed flag and cancel() callback to
   prevent double-close crashes when SSE streams end. This fixes the
   "Controller is already closed" error that occurs when the SDK calls
   response.body.cancel() on 202 responses.

2. DELETE handler: Call serverTransport.close() after terminateSession()
   to properly cleanup the transport and cancel pending reconnections.
   - terminateSession() notifies the server (sends DELETE request)
   - close() cleans up client-side resources (abort controller, timeouts)
   - Both are needed for a complete disconnect
2025-11-28 19:39:49 +00:00
Felix Weinberger
573bda8abd
Merge branch 'main' into fweinberger/fix-stream-double-close 2025-11-28 17:21:06 +00:00
Cliff Hall
436e77eba1
Merge pull request #939 from modelcontextprotocol/fix/zod4-compat
zod4 compatibility fixed for CI
2025-11-27 17:21:07 -05:00
Felix Weinberger
d995ce3bbd
Fix ReadableStream controller double-close crash
Guard against calling controller.close() when the stream has already
been closed by an external cancellation. This can happen when the SDK
cancels the stream before the underlying Node stream emits its 'end'
event.

- Add `closed` flag to track controller state
- Guard all controller operations with closed check
- Add `cancel()` callback to handle external cancellation
- Properly destroy the Node stream on cancellation
2025-11-27 21:57:17 +00:00
evalstate
6a86c19636 bump prettier. 3.7 was raising issues in CI (using 3.7.1) that 3.6.2 was not. 2025-11-27 20:48:30 +00:00
evalstate
927098faa9 prettier 2025-11-27 20:39:51 +00:00
evalstate
87f14dc9e4 npm audit fix 2025-11-27 20:34:08 +00:00
evalstate
85a4f630ed bump sdk to 1.23.0 2025-11-27 20:09:26 +00:00
evalstate
635a9a18f0 zod4 compatibility fixed for CI 2025-11-27 19:41:40 +00:00
Jesse Lumarie
a114db85bd mcp: update resources + icon alignment 2025-11-24 13:04:05 -07:00
Ola Hungerford
4e431c9c24
Merge pull request #921 from koic/bump_claude_code_github_action_to_v1 0.17.3 0.17.4
Bump Claude Code GitHub Action to v1
2025-11-20 22:54:41 -07:00
Michael Bolin
92e01dca08 fix: allow empty elicitation form data when all fields are optional 2025-11-19 17:38:11 -08:00
Cliff Hall
35286a24c6
Merge branch 'main' into jesselumarie/test-SEP-974 2025-11-19 16:21:26 -05:00
Koichi ITO
b566f0406e Bump Claude Code GitHub Action to v1
Follow-up to https://github.com/modelcontextprotocol/servers/pull/3018.

This PR bumps Claude Code GitHub Action to v1 from beta.
https://github.com/anthropics/claude-code-action/releases/tag/v1
2025-11-19 15:58:30 +09:00
Cliff Hall
dff91a8696
Merge pull request #770 from ln-12/meta_properies_in_tools
Added UI to provide additional _meta values
2025-11-18 14:50:28 -05:00
lorenzo.neumann
c0b3b952f5 Merge branch 'main' of https://github.com/modelcontextprotocol/inspector into meta_properies_in_tools 2025-11-18 15:07:12 +01:00
Cliff Hall
0f67756a7e
Merge pull request #902 from vincent0426/fix/resolve-ref-pre-validation
Fix $ref resolution in request schema properties before validation
2025-11-17 16:46:29 -05:00
Cliff Hall
156e1dcfed
Merge branch 'main' into fix/resolve-ref-pre-validation 2025-11-17 16:38:05 -05:00
Cliff Hall
f93afb062c
Merge pull request #916 from olaservo/fix/typescript-errors
Fix typescript errors and bump version
2025-11-17 16:37:54 -05:00
Konstantin Konstantinov
a5d5593c97
Merge branch 'main' into meta_properies_in_tools 2025-11-15 01:34:22 +02:00