mcporter/src
Martin Gontovnikas 31142e03a6 fix(oauth): three fixes for headless servers and non-standard OAuth providers
1. Remove hardcoded scope='mcp:tools' from client metadata.
   Providers like Granola reject this scope at the authorize endpoint
   (invalid_scope). Let the MCP SDK derive scope from server metadata
   instead, falling back to the auth server's scopes_supported.

2. Swallow xdg-open ENOENT on headless Linux servers.
   On VPS/CI environments without a desktop, spawning xdg-open throws
   an unhandled error event that crashes the process before the OAuth
   callback server can receive the redirect.

3. Clear stale client registration when dynamic callback port changes.
   With dynamic ports (the default), each run picks a different port.
   If a previous client registration is cached with a different
   redirect_uri, the auth server rejects subsequent requests with
   invalid_redirect_uri. Now detects the mismatch and re-registers.

Fixes #67
2026-03-02 18:32:55 +00:00
..
cli fix: preserve config imports defaults 2025-12-30 01:25:04 +01:00
config/imports test: strengthen claude import coverage 2025-11-22 01:59:49 +01:00
daemon Daemon restart on config changes 2025-12-08 21:09:57 +00:00
runtime chore: fix lint and tests 2025-12-03 17:20:09 +00:00
cli-metadata.ts feat(generate-cli): filter tools in generated CLIs 2025-12-29 21:23:46 +01:00
cli.ts chore: fix lint and tests 2025-12-03 17:20:09 +00:00
config-imports.ts refactor(config): modularize import helpers 2025-11-17 20:31:55 +01:00
config-normalize.ts feat(auth): stdio oauth helper 2025-12-03 17:12:35 +00:00
config-schema.ts chore: update dependencies 2025-12-06 01:24:27 +01:00
config.ts Daemon restart on config changes 2025-12-08 21:09:57 +00:00
env.ts fix(runtime): trim escaped env placeholders 2025-11-15 07:24:17 +01:00
error-classifier.ts Improve connection issue handling 2025-11-07 03:57:27 +00:00
fs-json.ts Add shared JSON file helpers 2025-11-07 04:24:24 +00:00
generate-cli.ts feat(generate-cli): filter tools in generated CLIs 2025-12-29 21:23:46 +01:00
index.ts Add JSON outputs and expose connection issues 2025-11-07 04:11:03 +00:00
lifecycle.ts Release 0.5.8 2025-11-15 07:17:20 +01:00
logging.ts Document function headers 2025-11-06 15:24:03 +00:00
oauth-persistence.ts chore: store oauth vault in credentials.json 2025-12-06 02:24:45 +01:00
oauth-vault.ts chore: store oauth vault in credentials.json 2025-12-06 02:24:45 +01:00
oauth.ts fix(oauth): three fixes for headless servers and non-standard OAuth providers 2026-03-02 18:32:55 +00:00
result-utils.ts fix: render plain text content properly instead of JSON 2025-11-18 06:10:56 +01:00
runtime-header-utils.ts Refactor runtime utility modules 2025-11-07 04:24:15 +00:00
runtime-oauth-support.ts chore(oauth): centralize credentials 2025-12-03 16:41:09 +00:00
runtime-process-utils.ts fix: harden windows support 2025-11-10 16:00:55 +00:00
runtime.ts feat(list): use cached oauth for non-interactive list 2025-11-25 17:22:37 +01:00
schema-cache.ts Document function headers 2025-11-06 15:24:03 +00:00
sdk-patches.ts fix(list): suppress stdio stderr noise 2025-11-15 18:56:38 +00:00
server-proxy.ts Document function headers 2025-11-06 15:24:03 +00:00