Skip to content

fix: construct full URL when using --token for headless login#21

Merged
emilioacc merged 1 commit intomainfrom
fix/headless-token-url-format
Jan 26, 2026
Merged

fix: construct full URL when using --token for headless login#21
emilioacc merged 1 commit intomainfrom
fix/headless-token-url-format

Conversation

@emilioacc
Copy link
Copy Markdown
Contributor

Summary

  • When using npx atxp login --token <token>, the raw token was saved directly to the config file
  • The @atxp/client library expects a full URL format: https://accounts.atxp.ai?connection_token=<token>
  • This caused "Invalid URL" errors when trying to use any ATXP tools after headless login

Test plan

  • Run npx atxp login --token <connection_token>
  • Verify ~/.atxp/config contains full URL format
  • Run npx atxp search "test" and verify it works without "Invalid URL" error

🤖 Generated with Claude Code

When using `npx atxp login --token <token>`, the raw token was saved
directly to the config file. However, the @atxp/client library expects
a full URL format with the connection_token parameter.

This caused "Invalid URL" errors when trying to use any ATXP tools
after headless login.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@emilioacc emilioacc merged commit f4bf6f0 into main Jan 26, 2026
1 check passed
@emilioacc emilioacc deleted the fix/headless-token-url-format branch January 26, 2026 22:03
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