Gavin Aboulhosn
d9df5ff860
refactor(completions): restore debouncing and improve MCP error handling
2025-02-12 20:19:36 -05:00
Gavin Aboulhosn
7f713fe40e
refactor(completions): improve completion handling and error states
...
- Move completion logic from App.tsx to useConnection hook
- Replace useCompletion with simpler useCompletionState hook
- Add graceful fallback for servers without completion support
- Improve error handling and state management
- Update PromptsTab and ResourcesTab to use new completion API
- Add type safety improvements across completion interfaces
2025-02-12 19:05:51 -05:00
Gavin Aboulhosn
9b624e8c87
feat(completions): integrate MCP Completion support into Prompts and Resources tabs
...
- create useCompletion hook to fetch completions with debouncing and abort control
- Updated `PromptsTab.tsx` and `ResourcesTab.tsx` to utilize the `Combobox` component and `useCompletions` hook, enabling argument autocompletion for prompts and resource URIs as per the MCP specification.
- Added a combobox to show completions
2025-02-12 11:21:27 -05:00
Justin Spahr-Summers
ba99638f48
Comment about SSEClientTransport auth API
2025-02-11 20:43:01 +00:00
Justin Spahr-Summers
e9a50adde7
Update OAuth callback code
2025-02-11 17:42:49 +00:00
Justin Spahr-Summers
eb6af47b21
Refactor to use auth from SDK
2025-02-11 16:39:07 +00:00
Allen Zhou
1b13b574f8
Update auth.ts
2025-02-05 12:45:11 -08:00
Allen Zhou
95bbd60a38
Add zod parsing for OAuthMetadataSchema and OAuthTokensSchema
2025-02-05 12:42:09 -08:00
Allen Zhou
96ba6fd531
Convert OAuthMetadata and OAuthTokens to zod
2025-02-05 12:38:26 -08:00
Allen Zhou
8592cf2d07
Run prettier-fix
2025-02-05 11:22:11 -08:00
Allen Zhou
dd47b574b3
Update useConnection.ts
2025-02-04 15:02:12 -08:00
Allen Zhou
b4ae1327b5
Update useConnection.ts
2025-02-04 15:00:14 -08:00
Allen Zhou
b5762d53fd
Handle infinite loop if server keeps returning 401
2025-02-04 14:53:41 -08:00
Allen Zhou
7957d9f577
Make OAuth start call modular
2025-02-03 20:06:21 -08:00
Allen Zhou
4c89aed4d9
Add check for expired refresh or session token that exists
2025-02-03 20:04:17 -08:00
Allen Zhou
79547143a8
Add refresh token handling if returned from server
2025-02-03 19:53:53 -08:00
Justin Spahr-Summers
0882a3e0e5
Formatting
2025-01-24 15:23:24 +00:00
Justin Spahr-Summers
99d7592ac9
Fix error state being briefly shown before OAuth
2025-01-24 15:02:34 +00:00
Justin Spahr-Summers
af8877064e
Set Authorization header from client
2025-01-24 13:55:32 +00:00
Justin Spahr-Summers
874320ebe6
Token exchange body needs to be JSON
2025-01-24 13:44:26 +00:00
Justin Spahr-Summers
02cfb47c83
Extract session storage keys into constants
2025-01-24 13:09:58 +00:00
Justin Spahr-Summers
23f89e49b8
Implement OAuth callback
2025-01-24 13:08:39 +00:00
Justin Spahr-Summers
16cb59670c
OAuth callback handler (not yet attached)
2025-01-24 11:37:35 +00:00
Justin Spahr-Summers
1c4ad60354
Redirect into OAuth flow upon receiving 401
2025-01-24 11:34:07 +00:00
Ashwin Bhat
715936d747
run prettier
2025-01-09 11:01:35 -08:00
Ashwin Bhat
dc49d46baa
refactor: extract draggable pane and connection logic into hooks
...
- Create useDraggablePane hook for history pane drag behavior
- Create useConnection hook for MCP client connection and requests
- Update App.tsx to use both hooks
2024-12-18 12:54:24 -08:00
Ashwin Bhat
11b891c6ca
make theme selectable in UI
2024-11-25 09:23:26 -05:00
Justin Spahr-Summers
360d090ac9
Fix inconsistent capitalization
2024-11-21 10:31:01 +00:00
Justin Spahr-Summers
fda05836cb
Merge branch 'main' into ashwin/errorlog
2024-11-21 10:30:29 +00:00
Ashwin Bhat
22bf78720b
show server stderr in inspector UI
2024-11-20 18:13:54 -08:00
Ashwin Bhat
78182eab10
dark mode fixes
2024-11-20 11:25:06 -08:00
David Soria Parra
216c8a15d5
run prettier
2024-11-04 21:29:59 +00:00
Ashwin Bhat
3cdd6faed7
init client
2024-10-07 16:28:05 -07:00