Skip to content

Conversation

@jonathanhefner
Copy link
Member

This PR adds examples/integration-server, which is a clone of the current version of basic-server-react, including all necessary code for E2E tests. Furthermore, this PR simplifies basic-server-react and basic-server-vanillajs so that they become minimal, standalone examples (using a single transport, without depending on ../shared/server-utils.js).

Add dedicated `integration-server` example (duplicated from
`basic-server-react`) to preserve E2E testing capabilities while
allowing `basic-server-react` to be simplified as a minimal example.

Changes:
- Add `examples/integration-server` exercising SDK communication APIs
- Update E2E tests to use `integration-server` instead of
  `basic-server-react` and `basic-server-vanillajs`
- Use server name labels instead of indices for more robust test
  selection
- Remove `basic-react.png` and `basic-vanillajs.png` golden snapshots

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

Co-Authored-By: Claude <[email protected]>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 15, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@157

commit: 4cc89e2

jonathanhefner and others added 3 commits December 15, 2025 14:17
Add `id="server-time"` to the integration server's time display element
and update the E2E test mask selector to use `#server-time` instead of
the generic `code` element selector.

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove dependency on shared `server-utils.js`
- Use Express + `StreamableHTTPServerTransport` directly
- Simplify tool response to plain ISO time string
- Add graceful shutdown handling
- Remove artificial delay in UI teardown handler

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove dependency on shared `server-utils.js`
- Use Express + `StreamableHTTPServerTransport` directly
- Simplify tool response to plain ISO time string
- Add graceful shutdown handling
- Remove artificial delay in UI teardown handler

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@jonathanhefner
Copy link
Member Author

Closing in favor or #182.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant