warpdotdev/warp · error · MergeError

invalid_server_definition

invalid_server_definition

Error message

invalid_server_definition

What it means

Error "invalid_server_definition" thrown in warpdotdev/warp.

Source

Thrown at resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py:182

def load_config(path: Path) -> ParsedConfig:
    raw, mode = _read_regular_file(path, missing_ok=True)
    exists = mode is not None
    if not exists:
        return ParsedConfig(
            document={},
            servers={},
            wrapper_path=("mcpServers",),
            exists=False,
            raw=b"",
            mode=None,
        )

    document = _decode_document(raw)
    wrapper_path, servers = _detect_wrapper(document)
    for value in servers.values():
        if not isinstance(value, dict):
            raise MergeError("invalid_server_definition")
    return ParsedConfig(
        document=document,
        servers=servers,
        wrapper_path=wrapper_path,
        exists=True,
        raw=raw,
        mode=mode,
    )


def _has_managed_marker(value: Any) -> bool:
    if isinstance(value, dict):
        for key, child in value.items():
            if key.casefold() in MANAGED_MARKERS or _has_managed_marker(child):
                return True
    elif isinstance(value, list):
        return any(_has_managed_marker(child) for child in value)
    return False

View on GitHub (pinned to e72fd7aacb)

When it happens

Trigger: Thrown at resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py:182 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of warpdotdev/warp@e72fd7aacb (2026-08-16). Data as JSON: /api/errors/5ffcb10b502b390e. Report an issue: GitHub.