### Run mcp-cli locally developed server Source: https://github.com/wong2/mcp-cli/blob/main/README.md Starts an MCP server using a locally developed Node.js file, passing any necessary arguments. ```bash npx @wong2/mcp-cli node path/to/server/index.js args... ``` -------------------------------- ### Run mcp-cli servers from NPM Source: https://github.com/wong2/mcp-cli/blob/main/README.md Launches MCP servers by executing a specified NPM package and its arguments through the mcp-cli. ```bash npx @wong2/mcp-cli npx ``` -------------------------------- ### Run mcp-cli without arguments Source: https://github.com/wong2/mcp-cli/blob/main/README.md Executes the mcp-cli tool without any specific arguments, defaulting to using the configuration file of Claude Desktop. ```bash npx @wong2/mcp-cli ``` -------------------------------- ### Run mcp-cli with a config file Source: https://github.com/wong2/mcp-cli/blob/main/README.md Runs the mcp-cli tool using a specified configuration file (e.g., config.json). The config file format is compatible with Claude Desktop. ```bash npx @wong2/mcp-cli -c config.json ``` -------------------------------- ### mcp-cli non-interactive mode: Use prompt Source: https://github.com/wong2/mcp-cli/blob/main/README.md Uses a specific prompt (e.g., 'filesystem:create_summary') on an MCP server in non-interactive mode, providing input text as an argument. ```bash npx @wong2/mcp-cli -c config.json get-prompt filesystem:create_summary --args '{"text": "Hello world"}' ``` -------------------------------- ### Connect mcp-cli to SSE server Source: https://github.com/wong2/mcp-cli/blob/main/README.md Connects the mcp-cli to a running MCP server hosted over Server-Sent Events (SSE) at a specified URL. ```bash npx @wong2/mcp-cli --sse http://localhost:8000/sse ``` -------------------------------- ### Connect mcp-cli to Streamable HTTP server Source: https://github.com/wong2/mcp-cli/blob/main/README.md Connects the mcp-cli to a running MCP server hosted over Streamable HTTP at a specified URL. ```bash npx @wong2/mcp-cli --url http://localhost:8000/mcp ``` -------------------------------- ### mcp-cli non-interactive mode: Call tool with arguments Source: https://github.com/wong2/mcp-cli/blob/main/README.md Calls a specific tool (e.g., 'filesystem:read_file') on an MCP server in non-interactive mode, providing arguments in JSON format. ```bash npx @wong2/mcp-cli -c config.json call-tool filesystem:read_file --args '{"path": "package.json"}' ``` -------------------------------- ### mcp-cli non-interactive mode: Call tool Source: https://github.com/wong2/mcp-cli/blob/main/README.md Executes a specific tool (e.g., 'filesystem:list_files') on an MCP server in non-interactive mode, without any arguments. ```bash npx @wong2/mcp-cli -c config.json call-tool filesystem:list_files ``` -------------------------------- ### mcp-cli non-interactive mode: Read resource Source: https://github.com/wong2/mcp-cli/blob/main/README.md Reads a specific resource (e.g., 'filesystem:file://system/etc/hosts') from an MCP server in non-interactive mode. ```bash npx @wong2/mcp-cli -c config.json read-resource filesystem:file://system/etc/hosts ``` -------------------------------- ### Purge mcp-cli stored data Source: https://github.com/wong2/mcp-cli/blob/main/README.md Removes stored data, such as OAuth tokens, from the mcp-cli. ```bash npx @wong2/mcp-cli purge ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.