Skip to main content

MCP Tools CLI

Manage and use MCP servers from the command line.

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/api

Run 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

OptionTypeDescription
--commandstringStdio command
--urlstringHTTP/SSE URL
--transportstringTransport type
--argsstringTool arguments (JSON)
--jsonbooleanJSON 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

VariableDescription
Server-specificMCP server requirements
  • praisonai-ts mcp test - Test MCP connection
  • praisonai-ts mcp info - Show server info