{"record":{"id":"5ffcb10b502b390e","repo":"warpdotdev/warp","slug":"invalid-server-definition","errorCode":"invalid_server_definition","errorMessage":"invalid_server_definition","messagePattern":"invalid_server_definition","errorType":"exception","errorClass":"MergeError","httpStatus":null,"severity":"error","filePath":"resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py","lineNumber":182,"sourceCode":"\ndef load_config(path: Path) -> ParsedConfig:\n    raw, mode = _read_regular_file(path, missing_ok=True)\n    exists = mode is not None\n    if not exists:\n        return ParsedConfig(\n            document={},\n            servers={},\n            wrapper_path=(\"mcpServers\",),\n            exists=False,\n            raw=b\"\",\n            mode=None,\n        )\n\n    document = _decode_document(raw)\n    wrapper_path, servers = _detect_wrapper(document)\n    for value in servers.values():\n        if not isinstance(value, dict):\n            raise MergeError(\"invalid_server_definition\")\n    return ParsedConfig(\n        document=document,\n        servers=servers,\n        wrapper_path=wrapper_path,\n        exists=True,\n        raw=raw,\n        mode=mode,\n    )\n\n\ndef _has_managed_marker(value: Any) -> bool:\n    if isinstance(value, dict):\n        for key, child in value.items():\n            if key.casefold() in MANAGED_MARKERS or _has_managed_marker(child):\n                return True\n    elif isinstance(value, list):\n        return any(_has_managed_marker(child) for child in value)\n    return False","sourceCodeStart":164,"sourceCodeEnd":200,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py#L164-L200","documentation":"Error \"invalid_server_definition\" thrown in warpdotdev/warp.","triggerScenarios":"Thrown at resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py:182 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}