SvelteKit inspector example + Svelte adapter fix (stateRef); README updates#40
Open
gary149 wants to merge 15 commits intomodelcontextprotocol:mainfrom
Open
SvelteKit inspector example + Svelte adapter fix (stateRef); README updates#40gary149 wants to merge 15 commits intomodelcontextprotocol:mainfrom
gary149 wants to merge 15 commits intomodelcontextprotocol:mainfrom
Conversation
…t `use-mcp/svelte`; update README; keep HTTP streaming priority with SSE fallback; implement auto-retry + SSR guards
…; enforce auth timeouts; split transport headers; reuse sanitized serverUrl\n\n- Auto fallback from HTTP to SSE in transportType 'auto'\n- Listen for both 'mcp_auth_callback' and 'mcp:oauthCallback'\n- Replace no-op auth timeouts with failing timeout handler\n- Use SSE-specific Accept header; avoid SSE Accept for HTTP\n- Sanitize and reuse serverUrl consistently for auth + transports
…velte field, sideEffects=false, publishConfig.access=public\n- Set repository/homepage/bugs to fork\n- Add prepublishOnly build script\n- Bump version to 0.1.0 and set scope name\n\nfeat(svelte): DX improvements\n- Re-export onMcpAuthorization from /svelte entry\n- Accept cross-origin auth via allowedOrigins option\n- Make .callTool available by attaching methods to snapshot\n\ndocs: update README examples to @gary149/use-mcp and add CORS note
…eaders-url Fix/svelte fallback auth timeout headers url
…ith tools list and call UI; add OAuth callback route
- myapp: re-add SvelteKit test app with tools list and per-tool input UI - Auto-generate inputs from JSON schema (string/number/boolean/enum + JSON fallback) - OAuth callback route and HTTP transport default - svelte adapter: keep internal stateRef synced with store state to avoid false "client not ready" errors when UI shows ready - chore: ignore myapp/.svelte-kit cache - chore: bump library to 0.1.2 (published)
…or-svelte and rename; update .gitignore and README
…p; link to examples/inspector-svelte
…ut, always-visible inputs, inline results\n\nchore: bump version to 0.1.3
… update examples imports\n\nchore: bump version to 0.1.4
… README; update examples imports\n\nchore: bump version to 0.1.4" This reverts commit 8bfe442.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR brings the following updates from the fork:
examples/inspector-sveltewith per‑tool inputs derived from each tool's JSON schema (string/number/boolean/enum + JSON fallback).stateRefin sync with the published store state to prevent false "client not ready" errors while the UI showsready.@gary149/use-mcppackage and example paths, and add quick-start instructions for the Svelte example.@gary149/[email protected].Notes:
transportType: 'http') to avoid SSE 405 noise when probing/mcp./oauth/callback.Happy to split into separate PRs if you'd prefer a smaller change set.