Skip to content

Comments

feat(cli): add composio tools command with list, info, search subcommands#2669

Merged
jkomyno merged 7 commits intonextfrom
plen-1583-clicommand-tools
Feb 19, 2026
Merged

feat(cli): add composio tools command with list, info, search subcommands#2669
jkomyno merged 7 commits intonextfrom
plen-1583-clicommand-tools

Conversation

@jkomyno
Copy link
Collaborator

@jkomyno jkomyno commented Feb 19, 2026

This PR:

  • builds on top of fix(cli): avoid AppleScript permission error in composio login #2666
  • closes PLEN-1583
  • adds composio tools list with --toolkits, --search, --tags, --limit filters for tool discovery
  • adds composio tools info <slug> displaying name, description, tags, and formatted input/output JSON schemas
  • adds composio tools search <query> with optional --toolkits scoping for quick semantic search
  • extends ComposioToolkitsRepository with searchTools() (single-page) and getToolDetailed() (retrieve)
  • extracts buildToolsNamespace() helper from ComposioClientLive to stay under max-lines-per-function lint rule
  • includes 18 new tests covering filter combinations, empty results, auth guards, and error suggestions

…mmands

Implements PLEN-1583. Agents and developers can now discover, search,
and inspect Composio tools directly from the CLI.

Subcommands:
- `composio tools list` — list tools with --toolkits, --search, --tags, --limit filters
- `composio tools info <slug>` — view tool details including input/output JSON schemas
- `composio tools search <query>` — search tools by use case with optional --toolkits scope

Service layer:
- Add searchTools() and getToolDetailed() to ComposioToolkitsRepository
- Extract buildToolsNamespace() helper for tools API methods
- Add ToolDetailedResponse schema for retrieve endpoint
- Pass-through in cached repository layer

Tests:
- 18 new tests covering list, info, search with various filter combinations
- Updated default command snapshots to include tools subcommands
@jkomyno jkomyno requested a review from haxzie as a code owner February 19, 2026 06:27
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 19, 2026 9:18pm

Request Review

- Rename --search to --query on `tools list` for consistency with `toolkits list`
- Remove dead code path in formatSchemaProperties (unreachable entries.length check)
- Enrich getToolDetailed mock to derive toolkit slug from tool slug prefix
- Add --tags filter test for `tools list`
- Add assertion for toolkit hint in `tools info` test
- Add tags filtering support to searchTools mock
- Add VHS recording entries for tools subcommands
Base automatically changed from fix/login-open-browser to next February 19, 2026 08:22
@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

⚠️ Security Audit Warning

The pnpm audit --prod check found security vulnerabilities in production dependencies.

Please review and fix the vulnerabilities. You can try running:

pnpm audit --fix --prod
Audit output
 WARN  post https://registry.npmjs.org/-/npm/v1/security/audits error (500). Will retry in 10 seconds. 2 retries left.
 WARN  post https://registry.npmjs.org/-/npm/v1/security/audits error (500). Will retry in 1 minute. 1 retries left.
 ERR_PNPM_AUDIT_BAD_RESPONSE  The audit endpoint (at https://registry.npmjs.org/-/npm/v1/security/audits) responded with 500: {"error":"Internal Server Error"}

The recording used `--search` but the actual CLI option is `--query`
(via `Options.text('query')`). Also regenerated all recordings.
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
@jkomyno jkomyno merged commit 29693d3 into next Feb 19, 2026
14 checks passed
@jkomyno jkomyno deleted the plen-1583-clicommand-tools branch February 19, 2026 23:05
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.

2 participants