magg_add_server
Add a new MCP server to MAGG by providing a unique name, source URL, and optional settings like commands, environment variables, and transport configurations. Enables dynamic extension of LLM capabilities.
Instructions
Add a new MCP server.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | No | Full command to run (e.g., 'python server.py', 'npx @playwright/mcp@latest') | |
cwd | No | Working directory (for commands) | |
enable | No | Whether to enable the server immediately (default: True) | |
env | No | Environment variables | |
name | Yes | Unique server name | |
notes | No | Setup notes | |
prefix | No | Tool prefix (defaults to conformed server name) | |
source | Yes | URL of the server package/repository | |
transport | No | Transport-specific configuration (optional) Common options for all command-based servers: - `keep_alive` (boolean): Keep the process alive between requests (default: true) Python servers (command="python"): - `python_cmd` (string): Python executable path (default: sys.executable) Node.js servers (command="node"): - `node_cmd` (string): Node executable path (default: "node") NPX servers (command="npx"): - `use_package_lock` (boolean): Use package-lock.json if present (default: true) UVX servers (command="uvx"): - `python_version` (string): Python version to use (e.g., "3.13") - `with_packages` (array): Additional packages to install - `from_package` (string): Install tool from specific package HTTP/SSE servers (uri-based): - `headers` (object): HTTP headers to include - `auth` (string): Authentication method ("oauth" or bearer token) - `sse_read_timeout` (number): Timeout for SSE reads in seconds Examples: - Python: `{"keep_alive": false, "python_cmd": "/usr/bin/python3"}` - UVX: `{"python_version": "3.11", "with_packages": ["requests", "pandas"]}` - HTTP: `{"headers": {"Authorization": "Bearer token123"}, "sse_read_timeout": 30}` | |
uri | No | URI for HTTP servers |