Skip to content

feat(cli): welcome banner + mcp command (5.10.0) - #94

Closed
abhishekmishragithub wants to merge 1 commit into
mainfrom
feat/cli-devx
Closed

feat(cli): welcome banner + mcp command (5.10.0)#94
abhishekmishragithub wants to merge 1 commit into
mainfrom
feat/cli-devx

Conversation

@abhishekmishragithub

Copy link
Copy Markdown
Collaborator

Two DevX polish items.

1. Bare smallestai shows a banner, not an error

Previously smallestai with no command errored with "Missing command". Now it prints an ASCII banner + a tidy command list (via an invoke_without_command callback), exit 0. --help and subcommands are unchanged.

  ███████╗███╗   ███╗ █████╗ ██╗     ██╗     ███████╗███████╗████████╗
  ...
  agent-crew       Init, deploy, and manage crew (custom-LLM) voice agents
  agents           Create, inspect, and call voice agents
  mcp              Set up the Smallest AI MCP server for Cursor / Claude
  ...

2. smallestai mcp

Helper for the (Node) MCP server @smallest-ai/mcp-server:

  • smallestai mcp — prints the client config + claude mcp add smallest-ai -- npx -y @smallest-ai/mcp-server.
  • smallestai mcp run — launches it via npx (Node 18+; warns if SMALLEST_API_KEY unset).
  • smallestai mcp config — prints the mcp.json snippet.

Checks

  • pytest tests/custom/test_cli_banner_mcp.py — 3 passed (bare = banner not error; mcp config present).
  • mypy clean; --help + subcommands verified.

Note: touches cli/main.py, which the telemetry PR (#93) also edits — trivial merge. Version 5.10.0 assumes the other CLI/feature PRs merge first.

Draft — merging bumps version + auto-publishes. Hold for your review.

- Bare `smallestai` now prints an ASCII banner + a tidy command list (via an
  invoke_without_command callback) instead of erroring with "Missing command".
- New `smallestai mcp` command group to set up/run the Smallest AI MCP server
  (npm @smallest-ai/mcp-server): `mcp` prints the client config + `claude mcp add`
  line, `mcp run` launches via npx (Node 18+), `mcp config` prints the mcp.json.

Version 5.10.0.
@abhishekmishragithub

Copy link
Copy Markdown
Collaborator Author

Superseded by the consolidated release PR release/5.10.0 (single review + single version bump). Branch kept.

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