This task implements a command-line interface (CLI) for the MCP Client and integrates it into the project''s NPM scripts. This will allow for easy testing and interaction with MCP servers directly from the command line.
Deliverables
- MCP Client CLI Script: Create
ai/mcp/client/mcp-cli.mjs.
- Uses
commander to parse CLI arguments for server selection, tool listing, and tool invocation.
- Bootstraps the
Neo.mjs framework.
- Instantiates
Neo.ai.mcp.client.Client to interact with specified MCP servers.
- NPM Script Integration: Add a new script
ai:mcp-client to package.json that executes node ai/mcp/client/mcp-cli.mjs.
This task implements a command-line interface (CLI) for the MCP Client and integrates it into the project''s NPM scripts. This will allow for easy testing and interaction with MCP servers directly from the command line.
Deliverables
ai/mcp/client/mcp-cli.mjs.commanderto parse CLI arguments for server selection, tool listing, and tool invocation.Neo.mjsframework.Neo.ai.mcp.client.Clientto interact with specified MCP servers.ai:mcp-clienttopackage.jsonthat executesnode ai/mcp/client/mcp-cli.mjs.