Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.
contracts/schemas/surfaces-file.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/surfaces-file.schema.json", |
| 4 | "title": "state_dir()/surfaces.json (mode 0600), written by the agent when the E2E surface listens. The terminator dials only host:port after checking that pid is the agent, and proves the listener holds `secret` (surface identity proof) before it sends the first ChatGPT byte. The secret is new at every start.", |
| 5 | "type": "object", |
| 6 | "required": ["v", "pid", "host", "port", "secret", "started_at"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "v": {"const": 1}, |
| 10 | "pid": {"type": "integer", "minimum": 1, "maximum": 4294967295}, |
| 11 | "host": {"const": "127.0.0.1"}, |
| 12 | "port": {"type": "integer", "minimum": 1024, "maximum": 65535}, |
| 13 | "secret": {"type": "string", "pattern": "^[A-Za-z0-9_-]{43}$"}, |
| 14 | "started_at": {"$ref": "common.schema.json#/$defs/epoch_s"} |
| 15 | } |
| 16 | } |