magg_add_server
Add and configure a new MCP server to the MAGG meta-MCP server, specifying details like name, source, command, and environment variables for enhanced 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 (dict or JSON string) | |
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 (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}` | |
uri | No | URI for HTTP servers |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Full command to run (e.g., 'python server.py', 'npx @playwright/mcp@latest')",
"title": "Command"
},
"cwd": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Working directory (for commands)",
"title": "Cwd"
},
"enable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": true,
"description": "Whether to enable the server immediately (default: True)",
"title": "Enable"
},
"env": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Environment variables (dict or JSON string)",
"title": "Env"
},
"name": {
"description": "Unique server name",
"title": "Name",
"type": "string"
},
"notes": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Setup notes",
"title": "Notes"
},
"prefix": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tool prefix (defaults to conformed server name)",
"title": "Prefix"
},
"source": {
"description": "URL of the server package/repository",
"title": "Source",
"type": "string"
},
"transport": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Transport-specific configuration (dict or JSON string)\nCommon options for all command-based servers:\n- `keep_alive` (boolean): Keep the process alive between requests (default: true)\n\nPython servers (command=\"python\"):\n- `python_cmd` (string): Python executable path (default: sys.executable)\n\nNode.js servers (command=\"node\"):\n- `node_cmd` (string): Node executable path (default: \"node\")\n\nNPX servers (command=\"npx\"):\n- `use_package_lock` (boolean): Use package-lock.json if present (default: true)\n\nUVX servers (command=\"uvx\"):\n- `python_version` (string): Python version to use (e.g., \"3.13\")\n- `with_packages` (array): Additional packages to install\n- `from_package` (string): Install tool from specific package\n\nHTTP/SSE servers (uri-based):\n- `headers` (object): HTTP headers to include\n- `auth` (string): Authentication method (\"oauth\" or bearer token)\n- `sse_read_timeout` (number): Timeout for SSE reads in seconds\n\nExamples:\n- Python: `{\"keep_alive\": false, \"python_cmd\": \"/usr/bin/python3\"}`\n- UVX: `{\"python_version\": \"3.11\", \"with_packages\": [\"requests\", \"pandas\"]}`\n- HTTP: `{\"headers\": {\"Authorization\": \"Bearer token123\"}, \"sse_read_timeout\": 30}`\n",
"title": "Transport"
},
"uri": {
"anyOf": [
{
"format": "uri",
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "URI for HTTP servers",
"title": "Uri"
}
},
"required": [
"name",
"source"
],
"type": "object"
}