CLI Commands
mcp
Themcp command manages individual MCP model servers in your local environment.
Usage
Description
Themcp command provides a suite of subcommands for managing MCP (Model Container Protocol) servers. These are the actual model servers that run your AI models, as opposed to the gateway server that routes requests to them.
With this command, you can:
- Start and stop specific model servers
- Configure model parameters
- View model status and information
- Manage multiple versions of the same model
Subcommands
| Subcommand | Description |
|---|---|
start | Start an MCP model server |
stop | Stop a running MCP model server |
restart | Restart an MCP model server |
status | Show the status of MCP model servers |
list | List installed MCP models |
info | Show detailed information about a model |
config | Show or modify model configuration |
Common Options
| Option | Description |
|---|---|
--help | Show help message for the mcp command or subcommand |
Examples
Start a Model Server
Stop a Model Server
List Models
Model Information
Output
For thestart command:
list command:
info command:
Model Configuration
Each model has its own configuration file located at~/.cogni/models/<model-id>/config.json. This file contains:
- Model parameters (temperature, context length, etc.)
- Resource allocations (CPU, memory, GPU)
- API endpoint customizations
- Version information
cogni mcp config command.
Related Commands
cogni install- Install a new MCP modelcogni server- Manage the gateway servercogni logs- View logs from running models
Tips
- The gateway server must be running before starting model servers
- Models can be resource-intensive; check the model info for requirements
- Use model parameters to customize behavior for your specific use case
- For production use, consider publishing your models to the Cogni+ Platform