Commit Graph

20 Commits

Author SHA1 Message Date
Cliff Hall
f8c05004d0 Open CORS for any origin to allow direct browser connection (#2725)
* * In src/everything/sse.ts
  - import cors
  - use cors with config allowing any origin + GET/POST
* In src/everything/streamableHttp.ts
  - import cors
    - use cors with config allowing any origin + GET/POST/DELETE, and exposed protocol headers for client to read
* In package.json and package-lock.json
  - add cors as a dependency

* * In package.json and package-lock.json
  - add @types/cors as dev dependency

* Add caution note for CORS origin wildcard usage

Added caution note for using '*' in CORS origin.

* * In streamableHttp.ts
  - remove remove unintentional console log

* * In streamableHttp.ts
  - add comment about why opening cors for all routes

* * In sse.ts
  - add comment about using * with caution in production for cors

* * In sse.ts
  - indent on cors config

---------

Co-authored-by: shaun smith <1936278+evalstate@users.noreply.github.com>
2025-09-19 01:28:41 +01:00
Cliff Hall
c3093739ca Let Everything's STDIO server use SDK's automatic log level handling (#2706)
- bump TS SDK to 1.18.0
* In src/everything/stdio.ts
  - remove logging related imports
  - remove custom log-level handling, now handled automatically by the SDK
* In src/everything/everything.ts
  - remove console.log of sessionId
2025-09-11 17:31:49 -07:00
cliffhall
97c6408f04 * in .gitignore
- add .idea/ for Jetbrains IDEs
* in everything.ts
  - remove import of SetLevelRequestSchema
  - remove logLevel var
  - add sessionId var
  - in startNotificationIntervals function
    - add optional sid argument
    - set sessionId to sid
    - define messages to be sent, adding sessionId if present
  - remove setRequestHandler call for SetLevelRequestSchema
  - replace server.notification calls that sent "notifications/message" objects with calls to server.sendLoggingMessage, passing just the parameters and sessionId.
* In package.json & package-lock.json
  - bump TS SDK version to 1.17.5
* In sse.ts, pass transport.sessionId to startNotificationIntervals call
* In stdio.ts
  - destructure startNotificationIntervals from createServer call
  - implement custom logging request handler and server.sendLoggingMessage implementation, as a
  workaround for the fact that the SDK's automatic log level handling currently only tracks requested log level by session id. This will be fixed in a followup PR for the SDK
  - call the startNotificationIntervals function after connecting the transport to the server
* In streamableHttp.ts
  - destructure startNotificationIntervals from createServer call
  - call startNotificationIntervals passing the transport.sessionId after connecting the transport to the server
2025-09-02 17:18:11 -04:00
cliffhall
a32f15750d Suppress startElicitation tool if client does not advertise support for elicitation capability
* In everything.ts
  - remove inappropriate elicitation entry from server capabilities (this is a client capability)
  - When creating tool list, only add `ToolName.ELICITATION` definition to tools array if `clientCapabilities` includes `elicitation`

* In package.json / package-lock.json
  - bump @modelcontextprotocol/sdk to "^1.17.4", adding `elicitation` to `ClientCapabilities` type
2025-08-28 14:13:47 -04:00
Cliff Hall
8c5d9c8a40 Merge branch 'main' into add-instructions 2025-05-29 10:54:33 -04:00
David Soria Parra
2dc1a34b75 update 2025-05-29 12:04:52 +01:00
olaservo
318c22b2ac Add instructions 2025-05-26 12:49:33 -07:00
cliffhall
c4371d95d5 Update server-everything to use the latest version of the SDK 2025-05-05 18:00:44 -04:00
Shiv Deepak Muddada
07af15945d add streamableHttp server support for everything server 2025-04-22 19:27:00 -07:00
cliffhall
fc9e6ba3c9 Upgrade typescript-sdk version in everything server 2025-04-16 11:32:07 -04:00
Alexandros Pappas
f2a802822b feat: Add start and start:sse scripts to package.json on everything server 2024-12-22 15:55:07 +01:00
David Soria Parra
94a36286d2 typescript servers 0.6.2 2024-12-04 16:11:35 +00:00
David Soria Parra
a096c95e8e Typescript servers 0.6.1 2024-12-03 17:49:33 +00:00
David Soria Parra
129d80af31 TS Servers 0.6.0 2024-12-03 14:10:24 +00:00
David Soria Parra
3c03a8e9af update sdk 2024-12-03 13:00:22 +00:00
Justin Spahr-Summers
b876cbd52b Pre-emptive version bump 2024-11-25 13:35:36 -06:00
Justin Spahr-Summers
45c4f70da4 Bump all package versions to 0.5.0 2024-11-25 07:13:35 -06:00
Justin Spahr-Summers
9c7fd98051 Bump all versions again, for good measure 2024-11-21 22:32:42 +00:00
Justin Spahr-Summers
3d6de86730 Bump all package versions 2024-11-21 19:10:05 +00:00
Justin Spahr-Summers
8729d06c2e Create package for each server 2024-11-19 14:26:59 +00:00