Commit graph

21 commits

Author SHA1 Message Date
Glen Maddern
fe65d50ec3
Fixing /sse support (#12)
* /sse still not working

* Add transport type selector to inspector UI and comprehensive transport testing

- Add transport type dropdown to inspector UI (auto, HTTP, SSE) with session storage persistence
- Update test framework to support transport type selection in test scenarios
- Add comprehensive test cases covering:
  * Working /mcp endpoints with auto and HTTP transports
  * SSE endpoint with SSE transport (expected to pass)
  * SSE endpoint with auto transport (expected to fail - demonstrates current fallback issue)
- Test structure now provides clear visibility into transport-specific behavior
- All tests properly named and categorized for easy identification of failing scenarios

* Gearing up to "make amp do it"

* fix: improve SSE fallback logic in auto transport mode

- Fix issue where SSE fallback was not attempted when HTTP transport failed
- Specific error types (404, 405, CORS) now correctly trigger SSE fallback
- Allow SSE fallback even when component state is 'failed' from previous attempts
- Maintain proper error handling for non-fallback HTTP errors
- All 6 transport scenarios now pass integration tests

The core issue was that failConnection() was being called for HTTP errors
before returning 'fallback', which set the component state to 'failed' and
prevented the orchestration logic from attempting SSE fallback. Now only
specific HTTP errors that should trigger fallback avoid calling failConnection
immediately, allowing the SSE transport to be attempted as expected.

---------

Co-authored-by: Glen Maddern <glen@glenmaddern.com>
2025-07-01 12:14:32 +10:00
Glen Maddern
7f019fed7f
Adding cf/agents tests (#11)
* Cloning demo repo

* added test for agents/mcp

---------

Co-authored-by: Glen Maddern <glen@glenmaddern.com>
2025-06-30 21:51:49 +10:00
Glen Maddern
ace3220fca
Merge pull request #10 from modelcontextprotocol/e2e-testing
E2E testing
2025-06-30 21:07:45 +10:00
Glen Maddern
6a3130a075 0.0.14 v0.0.14 2025-06-27 22:37:42 +10:00
Glen Maddern
effb28af19 Reworking auth flow. Still buggy.
'auto' now works for http servers, sse needs 'sse' setting.
2025-06-27 22:37:11 +10:00
Glen Maddern
8276b337fe 0.0.13 v0.0.13 2025-06-27 16:28:15 +10:00
Glen Maddern
85e21784fd Forgot I marked the SDK as external so it needs to be a normal dep 2025-06-27 16:28:10 +10:00
Glen Maddern
31d3108225 0.0.12 v0.0.12 2025-06-27 16:23:33 +10:00
Glen Maddern
381001eb74 Fixing pnpm conflict 2025-06-27 16:23:30 +10:00
Glen Maddern
fa0180330f 0.0.11 v0.0.11 2025-06-27 16:12:26 +10:00
Glen Maddern
84b58759ed updated readme 2025-06-27 16:12:00 +10:00
Glen Maddern
a225929ae2 Prettier changes 2025-06-27 16:09:36 +10:00
Glen Maddern
b326e36ccc Adding transportType to API 2025-06-27 16:08:56 +10:00
Glen Maddern
ef08e97a5f 0.0.10 v0.0.10 2025-06-26 21:24:03 +10:00
Glen Maddern
2b8b3773b5 Merge branch 'sanitise-urls' 2025-06-26 21:23:10 +10:00
Glen Maddern
960631bb74 Sanitising URLs 2025-06-26 20:47:51 +10:00
Glen Maddern
de9e20bf89 0.0.9 v0.0.9 2025-06-18 21:52:13 +10:00
Glen Maddern
bf9d40e9cf removing old links from readme 2025-06-18 21:52:04 +10:00
Glen Maddern
f14c88025e Disabling pkg.pr.new since it's not enabled here yet 2025-06-18 21:50:06 +10:00
Glen Maddern
de192f4de0 Transfer from geelen/use-mcp 2025-06-18 21:46:43 +10:00
Glen Maddern
d1d7803d9a
Initial commit 2025-03-20 11:09:42 +11:00