Commit Graph

437 Commits

Author SHA1 Message Date
Nathan Arseneau
029e482e05 fix: set default value for input fields in ToolsTab component 2025-03-19 20:15:14 -04:00
Ola Hungerford
cedf02d152 Merge pull request #185 from cliffhall/add-logging-message-handler
Add support for server logging messages
2025-03-15 09:44:22 -07:00
Cliff Hall
f01f02d5be Merge branch 'modelcontextprotocol:main' into add-logging-message-handler 2025-03-15 12:38:27 -04:00
Ola Hungerford
56932e8a93 Merge pull request #178 from lloydzhou/main
Add SSE 'Accept' header
2025-03-15 06:29:18 -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
cliffhall
d70e6dc0e8 In useConnection.ts,
- import LoggingMessageNotificationSchema
- set onNotification as notification handler for LoggingMessageNotificationSchema
2025-03-13 15:17:17 -04:00
Ola Hungerford
c77252900a Merge pull request #180 from seuros/version
feat: Fetch version from package.json in useConnection hook
2025-03-12 13:48:11 -07:00
Ola Hungerford
498c02b0f1 Merge pull request #182 from leoshimo/leoshimo/181-sampling-dark-mode
fix: add dark mode support to SamplingTab JSON display (#181)
2025-03-12 13:06:24 -07:00
leoshimo
e5ee00bf89 fix: add dark mode support to SamplingTab JSON display (#181) 2025-03-11 12:59:28 -07:00
Abdelkader Boudih
397a0f651f feat: Fetch version from package.json in useConnection hook 2025-03-11 13:33:45 +00:00
Justin Spahr-Summers
0281e5f821 Fix formatting 0.6.0 2025-03-11 10:56:53 +00:00
Justin Spahr-Summers
f56961ac62 Bump version 2025-03-11 10:55:14 +00:00
Justin Spahr-Summers
15bbb7502b Merge pull request #175 from avi1mizrahi/main
Add Bearer Token Support
2025-03-11 10:50:51 +00:00
Ola Hungerford
7caf6f8ba8 Merge pull request #170 from cliffhall/add-subscribe-to-resource
Add subscribe to resource functionality
2025-03-10 21:08:46 -07:00
Avi Mizrahi
dbd616905c Support bearer token 2025-03-10 17:50:12 +02:00
Cliff Hall
35a0f4611a Merge branch 'main' into add-subscribe-to-resource 2025-03-08 15:35:54 -05:00
cliffhall
952bee2605 Fix prettier complaints 2025-03-08 15:08:12 -05:00
cliffhall
a669272fda Track subscribed resources and show the appropriate subscribe or unsubscribe button on selected resource panel.
If the server does not support resource subscriptions, do not show any subscription buttons.

* In App.tsx
  - useState for resourceSubscriptions, setResourceSubscriptions a Set of type string.
  - in subscribeToResource()
    - only make the request to subscribe if the uri is not in the resourceSubscriptions set
  - in unsubscribeFromResource()
    - only make the request to unsubscribe if the uri is in the resourceSubscriptions set
  - in ResourceTab element,
    - pass a boolean resourceSubscriptionsSupported as serverCapabilities.resources.subscribe
    - pass resourceSubscriptions as a prop
* In ResourcesTab.tsx
  - deconstruct resourceSubscriptions and resourceSubscriptionsSupported from props and add prop type
  - in selected resource panel
    - don't show subscribe or unsubscribe buttons unless resourceSubscriptionsSupported is true
    - only show subscribe button if selected resource uri is not in resourceSubscriptions set
    - only show unsubscribe button if selected resource uri is in resourceSubscriptions set
    - wrap buttons in a flex div that is
      - justified right
      - has a minimal gap between
      - 2/5 wide (just big enough to contain two buttons and leave the h3 text 3/5 of the row to render and not overflow.
2025-03-08 13:40:37 -05:00
cliffhall
747c0154c5 WIP: Subscribe to resources
* In App.tsx
  - added subscribeToResource()
    - takes a uri
    - sends a `resources/subscribe` message with the uri
  - added unsubscribeFromResource()
    - takes a uri
    - sends a `resources/unsubscribe` message with the uri
  - in ResourcesTab element,
    - pass subscribeToResource and subscribeToResource invokers to component
* In notificationTypes.ts
  - add ServerNotificationSchema to NotificationSchema to permit server update messages.

* In ResourcesTab.tsx
  - deconstruct subscribeToResource and unsubscribeFromResource and add prop types
  - Add Subscribe and Unsubscribe buttons to selected resource panel, left of the refresh button. They call the sub and unsub functions that came in on props, passing the selected resource URI.
  - [WIP]: Will show the appropriate button in a follow up commit.
* In useConnection.ts
  - import ResourceUpdatedNotificationSchema
  - in the connect function,
    - set onNotification as the handler for ResourceUpdatedNotificationSchema
2025-03-08 11:05:13 -05:00
Ola Hungerford
0870a81990 Merge pull request #169 from cliffhall/dial-back-ping-button-energy
Removing the all the hype from the ping button.
2025-03-07 19:02:37 -07:00
cliffhall
ca18faa7c3 Removing the all the hype from the ping button.
Discussion at:
https://github.com/orgs/modelcontextprotocol/discussions/186
2025-03-07 13:05:45 -05:00
Ola Hungerford
014730fb2f Merge pull request #164 from TornjV/patch-1
Restore timeout search param
2025-03-06 10:22:33 -07:00
Veljko Tornjanski
9c690e004b Update useConnection.ts 2025-03-05 18:17:39 +01:00
Jerome
027eb02422 Merge pull request #162 from modelcontextprotocol/jerome/fix/versioning
Bumped versions of sub packages
0.5.1
2025-03-05 13:02:58 +00:00
Jerome
b116264f90 Bumped versions of sub packages 2025-03-05 12:55:55 +00:00
Jerome
290d5ab49e Bumping version for 0.5.1 release 2025-03-05 11:59:19 +00:00
Jerome
826ce37d2c Merge pull request #143 from modelcontextprotocol/justin/sdk-auth
Refactor to use auth from SDK
2025-03-05 11:58:03 +00:00
Jerome
7a56a7200c Updated mcp sdk to 1.6.1 2025-03-05 11:52:16 +00:00
Jerome
1eba99c531 Merge branch 'main' into justin/sdk-auth 2025-03-05 11:43:20 +00:00
Ashwin Bhat
13ae2b5659 Merge pull request #158 from modelcontextprotocol/ashwin/claudemd
docs: add CLAUDE.md for development guidance
2025-02-28 16:24:19 -08:00
Justin Spahr-Summers
db1b5cbc45 Merge pull request #113 from gavinaboulhosn/feature/completions
Implement MCP Completion Support in Prompts and Resources Tabs
2025-02-27 11:51:47 +00:00
Ashwin Bhat
989efb2204 docs: add CLAUDE.md for development guidance
Created a CLAUDE.md file containing build commands, code style guidelines, and project organization information for future development work.

🤖 Generated with [Claude Code](https://docs.anthropic.com/s/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-02-26 11:17:54 -08:00
Ola Hungerford
717c394d3b Merge pull request #157 from kshern/feature/add-array-proptype
Add an array input field to the ToolsTab using DynamicJsonForm.
2025-02-24 09:28:36 -07:00
kshern
8267e514ce fix: prettier write 2025-02-25 00:09:04 +08:00
kshern
18438dbdd0 feat: add error handling 2025-02-24 02:52:17 +08:00
kshern
07577fc94b feat:toolsbar add array support 2025-02-24 02:36:52 +08:00
Jerome
88984c7bc7 Linting 2025-02-23 15:15:28 +00:00
Ola Hungerford
b4870b3da3 Merge branch 'main' into feature/completions 2025-02-21 08:43:32 -07:00
Jerome
19ee9fa86a Merge remote-tracking branch 'origin/main' into justin/sdk-auth 2025-02-21 15:31:09 +00:00
Jerome
e28a64c932 Merge pull request #155 from modelcontextprotocol/jerome/fix/oauth-routing-in-prod-builds
Fix OAuth callback route in production builds
2025-02-21 15:08:25 +00:00
Jerome
02479d3ea9 Updating imports 2025-02-21 15:03:14 +00:00
Jerome
c3ece186a4 Using urlencoded params for refresh/auth tokens 2025-02-21 14:51:47 +00:00
Jerome
4201b31a24 Fix OAuth callback route in production builds
Add SPA routing configuration to serve-handler to ensure /oauth/callback
routes are correctly handled in production builds.
2025-02-21 14:47:31 +00:00
Ola Hungerford
50638806cb Merge branch 'main' into feature/completions 2025-02-21 06:19:41 -07:00
Justin Spahr-Summers
27880974a2 Merge pull request #148 from olaservo/add-note-for-dev-mode-on-windows
Add note for dev mode on windows
2025-02-19 15:31:58 +00:00
Ola Hungerford
266e8bec98 Fix formatting 2025-02-19 08:27:51 -07: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
8e06165d73 Revert unintentional package-lock change 2025-02-19 08:23:01 -07:00
Ola Hungerford
e22d3c76bf Revert unintentional package-lock change 2025-02-19 08:22:02 -07:00