Skip to content

Conversation

@gary149
Copy link

@gary149 gary149 commented Sep 5, 2025

This PR brings the following updates from the fork:

  • Re-add SvelteKit inspector example under examples/inspector-svelte with per‑tool inputs derived from each tool's JSON schema (string/number/boolean/enum + JSON fallback).
  • Fix Svelte adapter: keep internal stateRef in sync with the published store state to prevent false "client not ready" errors while the UI shows ready.
  • Update README badges/links to reflect the @gary149/use-mcp package and example paths, and add quick-start instructions for the Svelte example.
  • .gitignore: ignore example build artifacts.
  • Version bump published on npm: @gary149/[email protected].

Notes:

  • The example defaults to HTTP transport (transportType: 'http') to avoid SSE 405 noise when probing /mcp.
  • OAuth callback is included at /oauth/callback.

Happy to split into separate PRs if you'd prefer a smaller change set.

gary149 and others added 15 commits September 5, 2025 13:42
…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
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant