Add login and tool commands (search, image, music, video, x)#13
Merged
Add login and tool commands (search, image, music, video, x)#13
Conversation
- Add `login` command to save ATXP connection string to ~/.atxp/config - Add tool commands that wrap @atxp/client: - `search <query>` - web search via search.mcp.atxp.ai - `image <prompt>` - image generation via image.mcp.atxp.ai - `music <prompt>` - music generation via music.mcp.atxp.ai - `video <prompt>` - video generation via video.mcp.atxp.ai - `x <query>` - X/Twitter search via x-live-search.mcp.atxp.ai - Move demo and create commands under `dev` subcommand - Maintain backwards compatibility for `npx atxp demo` and `npx atxp create` - Update help text with new command structure Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update index.test.ts with tests for dev subcommand and tool argument parsing - Add login.test.ts for config file format and login options - Add call-tool.test.ts for server mapping and result parsing - Add commands/commands.test.ts for all tool commands (search, image, music, video, x) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Wrap case block in braces to fix no-case-declarations error in index.ts - Remove unused fs import from login.test.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
logincommand to save ATXP connection string to~/.atxp/config@atxp/client:search,image,music,video,xdemoandcreatecommands underdevsubcommand (with backwards compatibility)New Commands
npx atxp loginnpx atxp search <query>npx atxp image <prompt>npx atxp music <prompt>npx atxp video <prompt>npx atxp x <query>Test plan
npx atxp helpshows new commandsnpx atxp loginprompts for connection string and saves to ~/.atxp/confignpx atxp dev demoandnpx atxp dev createworknpx atxp demostill works🤖 Generated with Claude Code