> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Tools CLI

> Command-line interface for MCP servers

# MCP Tools CLI

Manage and use MCP servers from the command line.

## Commands

### List MCP Tools

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# List tools from stdio server
praisonai-ts mcp list \
  --command "npx -y @modelcontextprotocol/server-filesystem /path"

# List from HTTP server
praisonai-ts mcp list --url https://mcp-server.example.com/api
```

### Run MCP Tool

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Execute a tool
praisonai-ts mcp run read_file \
  --command "npx -y @modelcontextprotocol/server-filesystem /path" \
  --args '{"path": "file.txt"}'
```

### List Resources

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts mcp resources \
  --command "npx -y @modelcontextprotocol/server-filesystem /path"
```

### List Prompts

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts mcp prompts \
  --command "npx -y @modelcontextprotocol/server-filesystem /path"
```

## Options

| Option        | Type    | Description           |
| ------------- | ------- | --------------------- |
| `--command`   | string  | Stdio command         |
| `--url`       | string  | HTTP/SSE URL          |
| `--transport` | string  | Transport type        |
| `--args`      | string  | Tool arguments (JSON) |
| `--json`      | boolean | JSON output           |

## Examples

### Filesystem Server

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# List files
praisonai-ts mcp run list_directory \
  --command "npx -y @modelcontextprotocol/server-filesystem ." \
  --args '{"path": "."}'
```

### GitHub Server

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
GITHUB_TOKEN=ghp_... praisonai-ts mcp list \
  --command "npx -y @modelcontextprotocol/server-github"
```

## Environment Variables

| Variable        | Description             |
| --------------- | ----------------------- |
| Server-specific | MCP server requirements |

## Related Commands

* `praisonai-ts mcp test` - Test MCP connection
* `praisonai-ts mcp info` - Show server info
