MCP Tools CLI
Command-line interface for MCP servers
Manage and use MCP servers from the command line.
Quick Start
- Simple Usage
bash praisonai-ts mcp list --url https://mcp-server.example.com/api - With Configuration
bash praisonai-ts mcp run --url https://mcp-server.example.com/api --tool read_file --args '{"path":"."}' --json
Commands
List MCP Tools
# 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/apiRun MCP Tool
# Execute a tool
praisonai-ts mcp run read_file \
--command "npx -y @modelcontextprotocol/server-filesystem /path" \
--args '{"path": "file.txt"}'List Resources
praisonai-ts mcp resources \
--command "npx -y @modelcontextprotocol/server-filesystem /path"List Prompts
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
# List files
praisonai-ts mcp run list_directory \
--command "npx -y @modelcontextprotocol/server-filesystem ." \
--args '{"path": "."}'GitHub Server
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 connectionpraisonai-ts mcp info– Show server info