Commit Graph

83 Commits

Author SHA1 Message Date
Den Delimarsky
a83c56256e Fix content return 2025-07-06 21:18:43 -07:00
Den Delimarsky
7bc02607c5 Merge remote-tracking branch 'origin/elicitation-support' into elicitation-support 2025-07-05 11:47:10 -07:00
Den Delimarsky
d63329ded2 Updated based on PR feedback 2025-07-05 11:44:05 -07:00
Den Delimarsky ⚡
5ab3a00f5c Merge branch 'main' into elicitation-support 2025-07-04 10:58:24 -07:00
Ashwin Bhat
8dde417d10 formatting 2025-07-04 10:45:53 -07:00
Ashwin Bhat
0af52a9c22 remove summary 2025-07-04 10:39:07 -07:00
Ashwin Bhat
291ef21460 clarify message 2025-07-04 09:52:49 -07:00
Ashwin Bhat
6a7ef8f955 Add getResourceLinks tool to return multiple resource references
- Implement new tool that returns configurable number of resource links (1-10)
- Each link includes URI, name, description, and MIME type from available resources
- Minor formatting fixes for trailing commas and whitespace

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-03 22:50:51 -07:00
Den Delimarsky
11195cf3ff Update schema 2025-07-03 22:14:44 -07:00
Den Delimarsky
2de214f36a Some consistency changes 2025-07-03 21:03:10 -07:00
Den Delimarsky
dacaf27d5a Update README 2025-07-03 11:40:05 -07:00
Den Delimarsky ⚡
ebdfa7d84f Update src/everything/everything.ts
Co-authored-by: Ola Hungerford <olahungerford@gmail.com>
2025-06-30 14:27:57 -07:00
Den Delimarsky
0670875117 Remove comments 2025-06-25 21:08:24 -07:00
Den Delimarsky
a2a83cc40e Update elicitation demo 2025-06-25 20:54:33 -07:00
Den Delimarsky
642f3ac192 Update 2025-06-23 17:05:35 -07:00
Den Delimarsky
72714ed0f1 Elicitation support 2025-06-23 15:54:45 -07:00
Ola Hungerford
554320281b Update src/everything/instructions.md
Co-authored-by: Cliff Hall <cliff@futurescale.com>
2025-06-19 15:26:47 -07:00
Ola Hungerford
d85a01c4e2 Remove workflow mention related to resource subscription 2025-06-18 07:39:03 -07:00
Ola Hungerford
57c056e9ad Remove auto-sampling on subscription to a Resource 2025-06-17 06:58:12 -07:00
olaservo
88ce1f1fdd Adjust instructions 2025-06-14 18:22:43 -07:00
Cliff Hall
8c5d9c8a40 Merge branch 'main' into add-instructions 2025-05-29 10:54:33 -04:00
Cliff Hall
5f36973811 Merge pull request #1884 from cliffhall/everything-server-multiple-connection-support
Everything server multiple connection support
2025-05-29 10:41:51 -04:00
David Soria Parra
2dc1a34b75 update 2025-05-29 12:04:52 +01:00
cliffhall
3adf59409c In sse.ts, /message endpoint, if transport isn't found for the given sessionId, output a "No transport found for sessionId" message. 2025-05-28 17:29:42 -04:00
cliffhall
2da9f33969 Remove or clause for sessionId where "none" is offered as an alternative.
In the first case (line 16) we already know that req.query.sessionId is set to something. I

 n the second (line 40), it doesn't matter because if it doesn't map to a transport no further action is taken.
2025-05-28 16:31:21 -04:00
cliffhall
9ffacb78ab Be more verbose about unexpected GET /sse calls from already connected clients. 2025-05-28 11:14:03 -04:00
olaservo
318c22b2ac Add instructions 2025-05-26 12:49:33 -07:00
cliffhall
145f893108 Allow multiple connections to the everything server.
For both sse and streamableHttp, a server instance needs to be created for each transport. Otherwise, when a new client connects and its new transport is connected to the single server, the previous transport is overwritten in the server instance and can no longer communicate.

* In sse.ts
  - remove global server, cleanup, and transport vars
  - add transports map
  - in sse GET handler,
    - check for sessionId, there shouldn't be one, so comment "Reconnecting?" and do nothing if present
    - if sessionId not present
      - create new server and transport instance
      - connect server to transport
      - add transport to transports map
      - in server.onclose, delete the transport from the transports map and call cleanup
  - in /message POST handler
    - get the sessionId from the request
    - get the transport from the map by sessionId
    - handle the message if the transport was found

* In streamableHttp.ts
  - remove the global server and cleanup vars
  - change transports var to Map
  - in /mcp POST handler
    - when creating a new session
      - create a server instance
      - in server.onclose, delete the transport from the transports map and call cleanup
  - remove the calls to cleanup and server.close in the SIGINT handler, because the transport is closed and its onclose handler closes the server.
2025-05-22 11:41:16 -04:00
cliffhall
26aa0f8091 * In src/everything/sse.ts
- add SIGINT handler that does cleanup, server.close, and process.exit
2025-05-15 14:32:42 -04:00
cliffhall
3894d236c0 * In src/everything/sse.ts and streamableHttp.ts
- Replace console.log with console.error throughout
* In src/everything/sse.ts
  - remove the process.exit() in the server.onclose handler so reconnections are possible
2025-05-15 14:13:15 -04:00
Cliff Hall
2645e03e5f Merge pull request #1673 from cliffhall/choose-server-at-startup-from-npx
Choose the server-everything transport on the command line
2025-05-06 11:10:58 -04:00
cliffhall
e30f30868f Update server-everything to use the latest version of the SDK
* In sse.ts & streamableHttp.ts
  - change console.log to console.error
2025-05-06 10:27:49 -04:00
cliffhall
69549cc844 Update server-everything to use the latest version of the SDK
* In stdio.ts
  - change console.log to console.error
2025-05-06 10:26:47 -04:00
cliffhall
c4371d95d5 Update server-everything to use the latest version of the SDK 2025-05-05 18:00:44 -04:00
cliffhall
f06dc654ff Update server-everything to allow choosing the transport on the command line.
* Update README.md
2025-05-05 13:33:25 -04:00
cliffhall
f93911607b Update server-everything to allow choosing the transport on the command line.
# Run the default (stdio) server
```npx @modelcontextprotocol/server-everything```

# Or specify stdio explicitly
```npx @modelcontextprotocol/server-everything stdio```

# Run the SSE server
```npx @modelcontextprotocol/server-everything sse```

# Run the streamable HTTP server
```npx @modelcontextprotocol/server-everything streamableHttp```

* In src/everything/index.ts
  - refactor/extracted contents to stdio.ts
  - replaced with code that
    - Gets the single argument from the commandline as scriptName
    - switches on scriptName
    - imports the appropriate server script or outputs usage options
  - scripts run on import

* In src/everything/stdio.ts
  - added console log "Starting default (STDIO) server..."

* In src/everything/sse.ts
  - added console log "Starting SSE server..."

* In src/everything/streamableHttp.ts
  - added console log "Starting Streamable HTTP server..."

* This fixes #1594
2025-05-05 13:09:38 -04:00
Shiv Deepak Muddada
e70bcd317b remove json middleware from everything streamable http server 2025-04-22 19:51:16 -07:00
Shiv Deepak Muddada
d1d79444f7 fix: passing body to handleRequest, and optionally adding a response id if it exists 2025-04-22 19:32:07 -07:00
Shiv Deepak Muddada
03e9a7be0d ref: cleanup 2025-04-22 19:32:03 -07:00
Shiv Deepak Muddada
ace5c2a8dd update docs 2025-04-22 19:29:06 -07:00
Shiv Deepak Muddada
07af15945d add streamableHttp server support for everything server 2025-04-22 19:27:00 -07:00
David Soria Parra
52db0d9899 Merge pull request #1243 from burkeholland/burkeholland-vscode-install-instructions
Update READMEs with instructions for VS Code installation
2025-04-22 10:56:19 +01:00
Ola Hungerford
f93737dbb0 Merge pull request #1282 from morinokami/patch-2
fix: Add completions capability to Everything server
2025-04-18 08:19:15 -07:00
cliffhall
fc9e6ba3c9 Upgrade typescript-sdk version in everything server 2025-04-16 11:32:07 -04:00
Burke Holland
adac92f93d Merge branch 'main' of https://github.com/modelcontextprotocol/servers into burkeholland-vscode-install-instructions 2025-04-15 16:40:03 -05:00
cliffhall
b8ecbe79de Adjust intervals for outgoing demo messages
- subscription updates: 10 seconds
- logging messages: 20 seconds
- stderr messages: 30 seconds
2025-04-15 10:52:34 -04:00
cliffhall
41fa29e21b Fix formatting 2025-04-14 17:32:33 -04:00
cliffhall
9655d471f7 Add periodic stderr messages.
In everything.ts
- add a 10 second interval for sending 'notifications/stderr' messages to the client

This was created in order to test the display and clearing of stderr messages in the client.
- see https://github.com/modelcontextprotocol/inspector/pull/286
2025-04-14 17:13:11 -04:00
Shinya Fujino
7baf4c5c36 Merge branch 'main' into patch-2 2025-04-14 00:57:08 +09:00
Burke Holland
090b6b7c1a Move VS Code below Claude 2025-04-10 12:10:02 -05:00