Diagnostic snapshot of MCP Apps wiring for the named server.
| 11381 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 11382 | @dataclass |
| 11383 | class MCPAppsDiagnoseResult: |
| 11384 | """Diagnostic snapshot of MCP Apps wiring for the named server.""" |
| 11385 | |
| 11386 | capability: MCPAppsDiagnoseCapability |
| 11387 | """Capability negotiation snapshot""" |
| 11388 | |
| 11389 | server: MCPAppsDiagnoseServer |
| 11390 | """What the server returned for this session""" |
| 11391 | |
| 11392 | @staticmethod |
| 11393 | def from_dict(obj: Any) -> 'MCPAppsDiagnoseResult': |
| 11394 | assert isinstance(obj, dict) |
| 11395 | capability = MCPAppsDiagnoseCapability.from_dict(obj.get("capability")) |
| 11396 | server = MCPAppsDiagnoseServer.from_dict(obj.get("server")) |
| 11397 | return MCPAppsDiagnoseResult(capability, server) |
| 11398 | |
| 11399 | def to_dict(self) -> dict: |
| 11400 | result: dict = {} |
| 11401 | result["capability"] = to_class(MCPAppsDiagnoseCapability, self.capability) |
| 11402 | result["server"] = to_class(MCPAppsDiagnoseServer, self.server) |
| 11403 | return result |
| 11404 | |
| 11405 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 11406 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…