tsw-cli

MCP.Pizza Chef: DTeam-Top

tsw-cli is a command line interface client designed to manage and interact with tiny smart workers (TSWs). It provides a streamlined way to configure environments, synchronize, and run commands related to TSWs, facilitating development and deployment workflows. It supports configuration files, environment setup, and integration with MCP servers, making it ideal for developers working with smart worker automation and orchestration in command line environments.

Use This MCP client To

Configure environment for tiny smart workers Synchronize smart worker code and dependencies Run and manage tiny smart worker commands Develop and test MCP server integrations Install MCP servers to AI platforms like Claude Automate smart worker deployment workflows

README

tsw-cli

A command line interface for your tiny smart workers.

How to Run

  1. configure your environment
  2. uv sync
  3. source .venv/bin/activate
  4. python cli.py

Note:

  • for environment configuration, you can use the .env.example file
  • normally, each command has a --config option to specify the configuration file. for its details, you can find them in codes.
  • the default PG schema for Knowledge is ai, you can find it with \dn in psql.

MCP Server

prerequisites: add source as the dependency

  • uv add --dev .
  • uv build
  • uv sync

development:

  • test: mcp dev mcp/kb_exploer.py
  • install to claude: mcp install mcp/kb_exploer.py --with-editable .

tsw-cli FAQ

How do I configure the environment for tsw-cli?
Use the .env.example file to set environment variables and activate the virtual environment with source .venv/bin/activate.
What is the typical workflow to run tsw-cli commands?
Configure your environment, run uv sync, activate the virtual environment, then execute python cli.py with desired commands.
Can tsw-cli manage MCP server dependencies?
Yes, it supports adding source dependencies and building MCP servers with commands like uv add, uv build, and uv sync.
How do I test MCP servers using tsw-cli?
Use the command mcp dev followed by the server script path, e.g., mcp dev mcp/kb_exploer.py.
Is there support for installing MCP servers to AI platforms?
Yes, tsw-cli supports installing MCP servers to platforms like Claude using mcp install with editable options.
Does tsw-cli support configuration files for commands?
Yes, most commands accept a --config option to specify configuration files for flexible setups.
What is the default PostgreSQL schema used by tsw-cli?
The default schema for Knowledge is ai, which can be verified using \dn in psql.