Commit Graph

109 Commits

Author SHA1 Message Date
Shiv Deepak Muddada
1ec4e3b556 fix cors issue with accessing mcp-session-id header 2025-04-23 01:43:49 -07:00
cliffhall
6e4dcd6120 WIP: Attempting to proxy streamable-http connections. Inspector still works fine with STDIO and SSE servers.
* In index.ts,
  - refactor transport webAppTransports to be a map with the session id as key and transport as value.

* Implement /mcp GET and POST endpoints using StreamableHTTPServerTransport and doing the new session in the POST (opposite from SSE) handler.

* In package.json
  - update the SDK to 1.10.2

* In useConnection.ts
  - import StreamableHTTPClientTransport
    - NOTE: while we NEED to do this, it causes useConnection.test.ts to fail with " ReferenceError: TransformStream is not defined"
  - in connect method
    - instantiate the appropriate transport
2025-04-22 18:25:47 -04:00
cliffhall
3a2e248527 Prettier 2025-04-21 11:40:01 -04:00
cliffhall
e5f6524eb6 Fix support for streamable-http connections.
* In server/index.js
  - add get/post handlers for /mcp
  - amend console log on SSE connect, with deprecation message
  - add /stdio GET handler and refactored /sse GET handler to not also do stdio. Each transport has its own handler now
  - add appropriate headers to streamable-http request

* In /client/src/lib/hooks/useConnection.ts
  - in connect function
    - create server url properly based on new transport type.
2025-04-21 11:34:55 -04:00
Shiv Deepak Muddada
8213402185 attach auth headers to the streamable http request 2025-04-17 21:34:17 -07:00
Shiv Deepak Muddada
36178632fc Merge branch 'main' into main 2025-04-17 21:33:53 -07:00
David Soria Parra
bbe4924c88 bump 2025-04-18 00:08:56 +01:00
cliffhall
2720d68417 Bump inspector, cli, client, server to 0.10.1 2025-04-17 18:11:41 -04:00
Cliff Hall
b3971259d2 Merge branch 'main' into main 2025-04-17 16:40:48 -04:00
cliffhall
958c9a36f1 Bump typescript-sdk version to 1.10.0 throughout 2025-04-17 15:42:56 -04:00
cliffhall
92bf9abb40 Bump version to 0.10.0 in
* cli/package.json
* client/package.json
* server/package.json
* package.json
  - also bump npm dependencies for cli, client, and server to 0.10.0
* package-lock.json
2025-04-17 14:21:22 -04:00
cliffhall
bb7834543b Revert "Bump version to 0.10.0 in"
This reverts commit d7dff30cdb.
2025-04-17 14:15:43 -04:00
cliffhall
d7dff30cdb Bump version to 0.10.0 in
* cli/package.json
* client/package.json
* server/package.json
* package.json
  - also bump npm dependencies for cli, client, and server to 0.10.0
* package-lock.json
2025-04-17 14:08:39 -04:00
cliffhall
8901beb73e Upgrade server's express version to "^5.1.0" 2025-04-16 11:45:39 -04:00
olaservo
e20c4fb4ff Bump version to 0.9.0 2025-04-14 08:23:08 -07:00
Shiv Deepak Muddada
f43a9140ef run prettier-fix 2025-04-09 21:09:32 -07:00
Shiv Deepak Muddada
638603c0f3 add support for streamable http server 2025-04-09 20:47:53 -07:00
cliffhall
a506e4c419 Bump version to 0.8.2
* In package.json
  - Use inspector-[client|server] version 0.8.2
* In [client|server]/package.json
  - New version to 0.8.2
  - Use typescript SDK version 1.9.0
* In package-lock.json
  - above changes
  - sdk dependency's version increased: node_modules/@modelcontextprotocol/sdk/node_modules/pkce-challenge
2025-04-07 12:19:34 -04:00
cliffhall
9092c780f7 Bump version to 0.8.1
* In client/package.json
  - version bumped to 0.8.1
  - typescript SDK version 0.8.0 (latest)
* In server/package.json
  - version bumped to 0.8.1
  - typescript SDK version 0.8.0 (latest)
* In client/package.json
  - version bumped to 0.8.1
  - inspector-client bumped to 0.8.1
  - inspector-server bumped to 0.8.1
2025-04-03 14:30:59 -04:00
Pulkit Sharma
debb00344a Merge branch 'main' into add_proxy_config 2025-04-02 13:43:42 +05:30
Ola Hungerford
65f38a4827 Bump version to 0.8.0 2025-04-01 07:07:57 -07:00
Pulkit Sharma
51c7eda6a6 Add MCP proxy address config support, better error messages 2025-04-01 19:21:19 +05:30
Abdelkader Boudih
6c67bf6d6d Merge branch 'main' into main 2025-03-31 18:32:18 +00:00
Abdelkader Boudih
80f5ab1136 fix: typo 2025-03-31 18:28:40 +00:00
Cliff Hall
fb29ca0113 Merge branch 'main' into cleanup-old-transports 2025-03-31 12:36:34 -04:00
Abdelkader Boudih
da9dd09765 refactor: Update default ports for MCPI client and MPCP server
Changes the default ports used by the MCP Inspector client UI and the MCP Proxy server to avoid conflicts with common development ports and provide a memorable mnemonic based on T9 mapping.
2025-03-31 00:31:28 +00:00
cliffhall
054741be03 Run prettier. 2025-03-29 12:36:03 -04:00
cliffhall
1b754f52ca This fixes #214 where when the inspector is started, it can report that the inspector is up, when in fact it isn't because the address is already in use. It catches this condition, as well as the condition where the proxy server port is in use, reports it, and exits.
* In bin/cli.js
  - in the delay function, have the setTimeout return a true value.
  - try the server's spawnPromise call and within the try block, use Promise.race to get the return value of the first promise to resolve. If the server is up, it will not resolve and the 2 second delay will resolve with true, telling us the server is ok. Any error will have been reported by the server startup process, so we will not pile on with more output in the catch block.
  - If the server started ok, then we will await the spawnPromise call for starting the client. If the client fails to start it will report and exit, otherwise we are done and both servers are running and have reported as much. If an error is caught and it isn't SIGINT or if process.env.DEBUG is true then the error will be thrown before exiting.
* In client/bin/cli.js
  - add a "listening" handler to the server, logging that the MCP inspector is up at the given port
  - Add an "error" handler to the server that reports  that the client port is in use if the error message includes "EADDRINUSE", otherwise throw the error so the entire contents can be seen.
* In server/src/index.ts
  - add a "listening" handler to the server, logging that the Proxy server is up at the given port
  - Add an "error" handler to the server that reports  that the server port is in use if the error message includes "EADDRINUSE", otherwise throw the error so the entire contents can be seen.
* In package.json
  - in preview script
    - add --port 5173 to start the client on the proper port. This was useful in getting an instance of the client running before trying the start script. otherwise it starts on 4173
2025-03-28 11:59:21 -04:00
Simon Knott
353d6b549b fix: clean up previous transport processes 2025-03-27 09:52:35 +01:00
Ola Hungerford
16b38071e7 Bump version to 0.7.0 2025-03-24 12:36:17 -07:00
lloydzhou
aeaf32fa45 fix 2025-03-15 12:58:11 +08:00
lloydzhou
090b7efdea add sse accept header 2025-03-15 12:58:11 +08:00
Justin Spahr-Summers
0281e5f821 Fix formatting 2025-03-11 10:56:53 +00:00
Justin Spahr-Summers
f56961ac62 Bump version 2025-03-11 10:55:14 +00:00
Jerome
b116264f90 Bumped versions of sub packages 2025-03-05 12:55:55 +00:00
Jerome
7a56a7200c Updated mcp sdk to 1.6.1 2025-03-05 11:52:16 +00:00
Ola Hungerford
ed59974d65 Add dev:windows to server instead and reference from root package.json 2025-02-19 08:26:14 -07:00
Ola Hungerford
2a1536d2ab Revert other changes 2025-02-14 06:16:02 -07:00
Ola Hungerford
beee38387c Merge branch 'main' of https://github.com/olaservo/inspector 2025-02-14 06:07:46 -07:00
Justin Spahr-Summers
410a6f33dc Format fixes 2025-02-12 18:10:25 +00:00
Justin Spahr-Summers
b324378b2c Bump all versions to 0.4.1 2025-02-12 18:08:31 +00:00
Ola Hungerford
9c3fee1442 Merge branch 'main' into add-server-startup-logging 2025-02-08 13:13:14 -07:00
Ola Hungerford
98b26e9d06 Merge branch 'main' of https://github.com/olaservo/inspector 2025-01-31 05:54:12 -07:00
Ola Hungerford
6a3d901a72 Update dev command 2025-01-29 20:16:51 -07:00
Ola Hungerford
f980763381 Specify proxy server 2025-01-26 20:46:08 -07:00
Ola Hungerford
d754395a9a Revert tsx watch change 2025-01-26 20:36:31 -07:00
Ola Hungerford
df955cfdb5 Remove other logging and just keep listening and try catch 2025-01-26 20:24:59 -07:00
Ola Hungerford
5b884b55b5 Add server startup logging 2025-01-26 20:13:11 -07:00
Justin Spahr-Summers
0882a3e0e5 Formatting 2025-01-24 15:23:24 +00:00
Justin Spahr-Summers
a6d22cf1e4 Bump SDK version 2025-01-24 14:54:46 +00:00