magg_add_server
Register a new MCP server by specifying its name and source URL, with optional configurations for command, URI, environment variables, and transport settings.
Instructions
Add a new MCP server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique server name | |
| source | Yes | URL of the server package/repository | |
| prefix | No | Tool prefix (defaults to conformed server name) | |
| command | No | Full command to run (e.g., 'python server.py', 'npx @playwright/mcp@latest') | |
| uri | No | URI for HTTP servers | |
| env | No | Environment variables (dict or JSON string) | |
| cwd | No | Working directory (for commands) | |
| notes | No | Setup notes | |
| enable | No | Whether to enable the server immediately (default: True) | |
| transport | No | Transport-specific configuration (dict or JSON string) 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}` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| output | No |