Commit Graph

99 Commits

Author SHA1 Message Date
claude[bot]
7d88d4e932 feat: interleave text and blob resources for better variety
Previously resources were generated as 50 text resources followed by 50 blob resources.
Now they alternate: Text, Blob, Text, Blob, etc. This provides better variety
when using tools like getResourceLinks and maintains the useful interleaving
pattern that was present before the UUID-based refactor.

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-08-23 03:48:34 +00:00
claude[bot]
9d1a63cd42 feat: replace array index-based resource URIs with UUID-based semantic paths
Implements @domdomegg's proposal to use UUIDs for resource identification instead of array indices:

- Generate UUIDs for all 100 resources (50 text, 50 blob)
- Use semantic paths: test://static/resource/text/{uuid} and test://static/resource/blob/{uuid}
- Remove dependency on array indices for URI construction
- Update resource templates to reflect new URI patterns
- Modify getResourceReference tool to accept resourceUri instead of resourceId
- Update resource_prompt argument from resourceId to resourceUri
- Improve resource link descriptions to mention UUID-based identification
- Update README documentation to reflect UUID-based system

This eliminates the confusion between array indices (0-based) and URI numbers (1-based)
while providing more intuitive resource categorization through semantic paths.

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

Co-authored-by: adam jones <domdomegg@users.noreply.github.com>
2025-08-22 00:46:39 +00:00
Cliff Hall
1add4cab77 Merge branch 'main' into claude/issue-475-20250817-1726 2025-08-19 16:46:21 -04:00
claude[bot]
713eb6c180 fix: align everything server resource URI numbering with array indices
Fixes issue where array indices (0-based) didn't match URI numbers (1-based),
causing confusion where:
- Resource at index 0 was accessed via 'test://static/resource/1'
- Even indices (text resources) mapped to odd URI numbers

Changes:
- Resource URIs now use 0-based numbering to match array indices
- Resource 0 is now accessed via 'test://static/resource/0'
- Even indices now map to even URI numbers (more intuitive)

Resolves #475

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

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-08-17 17:28:30 +00:00
claude[bot]
9da43bc355 Fix SSE server crash by starting notification timers only after client connects
- Move setInterval calls from server creation to startNotificationIntervals function
- Only start notification timers when a client actually connects to the SSE server
- Prevents 'Not connected' error when server tries to send notifications before client connection
- Fixes issue where server crashes after 5 seconds when running 'npx @modelcontextprotocol/server-everything sse'

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

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-08-17 17:20:36 +00:00
Ola Hungerford
1028b32573 Merge pull request #2328 from kunalbabre/main
docs: Update VS Code installation instructions to use mcp.json for issue  #2320
2025-08-07 07:28:32 -07:00
evalstate
4c192aee93 Remove out-of-specification notifications/stderr sending 2025-08-02 08:46:33 +01:00
Richard Michael
84a872145c feature: Add a tool with Structured Content and an Output Schema
Tools gained Structured Content in Specification 2025-16-18
https://modelcontextprotocol.io/specification/2025-06-18/server/tools#structured-content

The MCP Inspector is able to handle these outputs.
2025-07-23 11:43:36 -07:00
Richard Michael
9e28ac7fd1 chore: Add serverInfo title, as in specification 2025-06-18 2025-07-23 11:43:33 -07:00
Richard Michael
bb1b418da1 chore: Code organization: consistent tool order everywhere 2025-07-23 11:43:30 -07:00
Richard Michael
7ec0064157 chore: Code organization: completions follow all schema definitions 2025-07-23 11:43:27 -07:00
Richard Michael
114ad51b54 chore: Format for readability 2025-07-23 11:43:24 -07:00
Richard Michael
0d1653fff3 chore: Adjust to format easier to read and maintain 2025-07-23 11:43:20 -07:00
Kunal Babre
55a36ad0dd docs: Clean up VS Code installation instructions
- Remove unnecessary explanatory note about JSON format
- JSON examples already demonstrate the correct format clearly
- Streamlines documentation to focus on essential information
- Maintains reference to official VS Code MCP documentation

The removed note was redundant since both configuration methods 
use identical JSON structure shown in the examples.
2025-07-11 22:53:13 -07:00
Kunal Babre
95a72b792f docs: Add reference to official VS Code MCP documentation
- Add link to official VS Code MCP documentation in all server READMEs
- Enhances existing VS Code installation instructions with authoritative reference
- Provides users with comprehensive documentation for advanced configuration
- Complements the existing two-method approach with additional resources

Affects: everything, filesystem, git, memory, sequentialthinking
2025-07-11 22:45:10 -07:00
Kunal Babre
20eb59590e docs: Update VS Code installation instructions to use mcp.json
- Replace outdated 'Preferences: Open Settings (JSON)' instructions
- Add proper guidance for 'MCP: Open User Configuration' command
- Update JSON examples to remove mcp wrapper key
- Clarify user vs workspace configuration methods
- Fixes issue with outdated documentation across all servers

Affects: sequentialthinking, filesystem, memory, everything, git
2025-07-11 21:36:21 -07:00
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