{"at":"2026-11-23T04:05:53.886Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:05:54.287Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:05:57.406Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T04:05:57.853Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"netmap","version":"1.0.7"}}}}
{"at":"2026-11-23T04:05:57.853Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:05:57.853Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:05:57.855Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Return the current map state: all nodes, manual connections, stickies and notes. NOTE: only manual connections are included — use map_get_all_connections to also get auto-generated connections (DNS→server, project→server, service→node).","inputSchema":{"properties":{},"type":"object"},"name":"map_get_state"},{"description":"Add a new node to the map. Returns the new node id.","inputSchema":{"properties":{"ip":{"description":"IP address (optional)","type":"string"},"name":{"description":"Display name","type":"string"},"type":{"description":"Node type","enum":["server","router","switch","firewall","domain","project","service","pc","nas","ap","camera","printer","other"],"type":"string"},"x":{"description":"Canvas X position (optional)","type":"number"},"y":{"description":"Canvas Y position (optional)","type":"number"}},"required":["type","name"],"type":"object"},"name":"map_add_node"},{"description":"Update fields of an existing node by id.\n\nFIELD SCHEMA BY NODE TYPE\nAll types: name, ip, x, y, w, h, notes\n  ips: [{address, label}]  — extra IP addresses\n\nserver / pc / nas / ap / camera / printer / router / switch / firewall / other:\n  ports: [{port, protocol(\"tcp\"|\"udp\"|\"icmp\"), service, url, bindIp}]\n  dockerServices: [{name, image, hostPort, containerPort, protocol(\"tcp\"|\"udp\"), url}]\n\nproject:\n  parentServer  — id of the parent server node (creates auto-connection)\n  repoUrl       — Git/GitLab URL\n  deployPath    — deployment directory\n  cicdUrl       — CI/CD pipeline URL\n  dockerServices (same as server)\n\ndomain (DNS Zone):\n  ip            — registrar name (e.g. \"Cloudflare\")\n  registrarUrl  — registrar control panel URL\n  domains: [{name, record(\"A\"|\"AAAA\"|\"CNAME\"|\"MX\"|\"TXT\"|\"NS\"|\"SRV\"), target, url}]\n             target IP in 'target' triggers auto-connection to matching server node\n\nservice (External Service):\n  provider      — provider name (e.g. \"Supabase\", \"Vercel\")\n  dashboardUrl  — link to service dashboard\n  serviceConns: [{toId, label}]  — links to other nodes (creates auto-connections)\n  servedDomains: [string]","inputSchema":{"properties":{"changes":{"description":"Fields to update — see tool description for full schema per node type","type":"object"},"id":{"description":"Node id","type":"string"}},"required":["id","changes"],"type":"object"},"name":"map_update_node"},{"description":"Delete a node and all its connections.","inputSchema":{"properties":{"id":{"description":"Node id","type":"string"}},"required":["id"],"type":"object"},"name":"map_delete_node"},{"description":"Add a manual connection between two nodes. Returns the new connection id.","inputSchema":{"properties":{"color":{"description":"Optional line color, e.g. #ef4444","type":"string"},"from_id":{"description":"Source node id","type":"string"},"label":{"description":"Optional connection label","type":"string"},"to_id":{"description":"Target node id","type":"string"}},"required":["from_id","to_id"],"type":"object"},"name":"map_add_connection"},{"description":"Delete a connection by id.","inputSchema":{"properties":{"id":{"description":"Connection id","type":"string"}},"required":["id"],"type":"object"},"name":"map_delete_connection"},{"description":"Add a sticky note to the map. Returns the new sticky id.","inputSchema":{"properties":{"color":{"description":"Hex color, e.g. #fbbf24 (optional)","type":"string"},"text":{"description":"Note text","type":"string"},"x":{"description":"Canvas X position (optional)","type":"number"},"y":{"description":"Canvas Y position (optional)","type":"number"}},"required":["text"],"type":"object"},"name":"map_add_sticky"},{"description":"Move a node to new canvas coordinates without changing any other fields.","inputSchema":{"properties":{"id":{"description":"Node id","type":"string"},"x":{"description":"New canvas X position","type":"number"},"y":{"description":"New canvas Y position","type":"number"}},"required":["id","x","y"],"type":"object"},"name":"map_move_node"},{"description":"Move a sticky note to new canvas coordinates without changing its text or color.","inputSchema":{"properties":{"id":{"description":"Sticky note id","type":"string"},"x":{"description":"New canvas X position","type":"number"},"y":{"description":"New canvas Y position","type":"number"}},"required":["id","x","y"],"type":"object"},"name":"map_move_sticky"},{"description":"Remove all nodes, connections and stickies from the current sheet.","inputSchema":{"properties":{"confirm":{"description":"Must be true to confirm destructive action","type":"boolean"}},"required":["confirm"],"type":"object"},"name":"map_clear"},{"description":"Auto-arrange all nodes in a grid or circle layout.","inputSchema":{"properties":{"layout":{"description":"Layout type","enum":["grid","circle"],"type":"string"}},"required":["layout"],"type":"object"},"name":"map_arrange"},{"description":"Update label or color of an existing connection.","inputSchema":{"properties":{"changes":{"description":"Fields to update","properties":{"color":{"description":"Hex color, e.g. #ef4444","type":"string"},"label":{"type":"string"}},"type":"object"},"id":{"description":"Connection id","type":"string"}},"required":["id","changes"],"type":"object"},"name":"map_update_connection"},{"description":"Update text, color or size of a sticky note.","inputSchema":{"properties":{"changes":{"description":"Fields to update","properties":{"color":{"description":"Hex color, e.g. #fbbf24","type":"string"},"h":{"description":"Height in pixels","type":"number"},"text":{"type":"string"},"w":{"description":"Width in pixels","type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"type":"object"},"id":{"description":"Sticky note id","type":"string"}},"required":["id","changes"],"type":"object"},"name":"map_update_sticky"},{"description":"Delete a sticky note by id.","inputSchema":{"properties":{"id":{"description":"Sticky note id","type":"string"}},"required":["id"],"type":"object"},"name":"map_delete_sticky"},{"description":"List all sheets with their id, name, createdAt, updatedAt and which is active.","inputSchema":{"properties":{},"type":"object"},"name":"map_list_sheets"},{"description":"Return nodes/connections/stickies/notes for a specific sheet (defaults to active sheet).","inputSchema":{"properties":{"id":{"description":"Sheet id (omit for active sheet)","type":"string"}},"type":"object"},"name":"map_get_sheet_data"},{"description":"Create a new empty sheet and switch to it. Returns new sheet id.","inputSchema":{"properties":{"name":{"description":"Sheet name (optional, auto-generated if omitted)","type":"string"}},"type":"object"},"name":"map_create_sheet"},{"description":"Switch the active sheet. Saves current sheet state first.","inputSchema":{"properties":{"id":{"description":"Sheet id to switch to","type":"string"}},"required":["id"],"type":"object"},"name":"map_switch_sheet"},{"description":"Rename a sheet.","inputSchema":{"properties":{"id":{"description":"Sheet id","type":"string"},"name":{"description":"New name (max 50 chars)","type":"string"}},"required":["id","name"],"type":"object"},"name":"map_rename_sheet"},{"description":"Delete a sheet. Cannot delete the last remaining sheet.","inputSchema":{"properties":{"confirm":{"description":"Must be true to confirm destructive action","type":"boolean"},"id":{"description":"Sheet id","type":"string"}},"required":["id","confirm"],"type":"object"},"name":"map_delete_sheet"},{"description":"Set canvas zoom level (0.1–3.0).","inputSchema":{"properties":{"zoom":{"description":"Zoom level, e.g. 1.0 = 100%, 0.5 = 50%","type":"number"}},"required":["zoom"],"type":"object"},"name":"map_set_zoom"},{"description":"Pan canvas to an absolute pixel offset.","inputSchema":{"properties":{"x":{"description":"Horizontal offset in pixels","type":"number"},"y":{"description":"Vertical offset in pixels","type":"number"}},"required":["x","y"],"type":"object"},"name":"map_set_canvas_offset"},{"description":"Auto-fit all nodes into the viewport by adjusting zoom and pan.","inputSchema":{"properties":{"padding":{"description":"Padding around content in pixels (default 80)","type":"number"}},"type":"object"},"name":"map_zoom_to_fit"},{"description":"Return the sheet-level notes text.","inputSchema":{"properties":{},"type":"object"},"name":"map_get_notes"},{"description":"Set the sheet-level notes text.","inputSchema":{"properties":{"notes":{"description":"Notes content","type":"string"}},"required":["notes"],"type":"object"},"name":"map_set_notes"},{"description":"Lock or unlock a sheet. A locked sheet rejects all MCP mutations and disables manual editing in the UI. Pass locked: false to unlock.","inputSchema":{"properties":{"id":{"description":"Sheet id (omit for active sheet)","type":"string"},"locked":{"description":"true = lock (default), false = unlock","type":"boolean"}},"type":"object"},"name":"map_lock_sheet"},{"description":"Return current app settings (sshMode, dblClickAction, perfMode, showGrid, showZoomSlider).","inputSchema":{"properties":{},"type":"object"},"name":"map_get_settings"},{"description":"Update one or more app settings.","inputSchema":{"properties":{"changes":{"description":"Settings fields to update","properties":{"dblClickAction":{"enum":["node","sticky"],"type":"string"},"perfMode":{"type":"boolean"},"showGrid":{"type":"boolean"},"showZoomSlider":{"type":"boolean"},"sshMode":{"enum":["iframe","tab"],"type":"string"}},"type":"object"}},"required":["changes"],"type":"object"},"name":"map_update_settings"},{"description":"Return all connections including auto-generated ones (DNS→server, project→server, service→node). Auto connections have auto:true flag. Use this instead of map_get_state.connections when you need the full topology picture.","inputSchema":{"properties":{},"type":"object"},"name":"map_get_all_connections"},{"description":"Return current canvas zoom level and pan offset.","inputSchema":{"properties":{},"type":"object"},"name":"map_get_view"},{"description":"Search nodes by name, IP, type, or free-text query. Returns id, name, type, ip, x, y for each match. Use this to locate a node before updating it.","inputSchema":{"properties":{"ip":{"description":"Exact match on primary IP or any secondary IP","type":"string"},"name":{"description":"Substring match on node name (case-insensitive)","type":"string"},"text":{"description":"Free-text search across name, IPs, and domain records","type":"string"},"type":{"description":"Filter by node type","enum":["server","router","switch","firewall","domain","project","service","pc","nas","ap","camera","printer","other"],"type":"string"}},"type":"object"},"name":"map_find_node"},{"description":"Full-text search across nodes (name/ip/notes), stickies, connection labels, and ports (port-number/service). Returns categorized hits with a total count. Use map_find_node for structured node-only filtering.","inputSchema":{"properties":{"q":{"description":"Query string (case-insensitive substring match)","type":"string"},"types":{"description":"Limit search scope (default: all 4)","items":{"enum":["nodes","stickies","connections","ports"],"type":"string"},"type":"array"}},"required":["q"],"type":"object"},"name":"map_search"},{"description":"Parse nmap scan output (XML from `nmap -oX`) and create nodes with their open ports. Auto-infers node type from OS fingerprint + port profile (router/switch/firewall/server/printer/etc.). Provide either raw `xml` OR pre-parsed `hosts[]` — `hosts` takes priority when both are given. Nodes are auto-arranged in a grid. Returns {count, ids}.","inputSchema":{"properties":{"hosts":{"description":"Alternative: pre-parsed hosts [{ip, hostnames[], ports[{portid, protocol, service}], osMatch}]","type":"array"},"xml":{"description":"Raw nmap XML output (use `nmap -oX -`)","type":"string"}},"type":"object"},"name":"map_import_nmap"},{"description":"Smart auto-layout: force-directed (organic, deterministic with seed), cluster-by-type (horizontal lanes per node type), or cluster-by-connection (BFS components → separate zones). Different from map_arrange (naive grid/circle). Mutates node positions in-place.","inputSchema":{"properties":{"algorithm":{"description":"Layout algorithm (default: force)","enum":["force","cluster-by-type","cluster-by-connection"],"type":"string"},"iterations":{"description":"Force-directed only; default 200, recommended range 50-1000","type":"number"},"seed":{"description":"PRNG seed for force-directed reproducibility (default 42)","type":"number"}},"type":"object"},"name":"map_suggest_layout"},{"description":"Import nodes from CSV. Auto-detects columns from the header row (name/ip/type/ports/notes — case-insensitive, aliases like hostname/description/host_ip accepted). Ports field accepts 'port/protocol,port/protocol' (e.g. '22/tcp,80/tcp') or bare port numbers (default tcp). Nodes laid out in a 6-column grid. Returns {count, ids}.","inputSchema":{"properties":{"columns":{"description":"Optional explicit column mapping: {name: 0, ip: 1, type: 2, ports: 3, notes: 4} — overrides auto-detect; missing keys default to -1","type":"object"},"csv":{"description":"CSV content with header row (RFC 4180-lite: quoted fields, escaped \"\", UTF-8 BOM tolerated)","type":"string"}},"required":["csv"],"type":"object"},"name":"map_import_csv"},{"description":"Return all nodes of a given type with FULL field data (ports, dockerServices, domains, ips, notes, parentServer, etc.). For stripped projection or multi-criteria filtering use map_find_node instead.","inputSchema":{"properties":{"type":{"description":"Node type to filter by","enum":["server","router","switch","firewall","domain","project","service","pc","nas","ap","camera","printer","other"],"type":"string"}},"required":["type"],"type":"object"},"name":"map_get_nodes_by_type"},{"description":"Replace active sheet content with provided JSON data. Useful for loading a prepared topology in one call.","inputSchema":{"properties":{"data":{"description":"Sheet data: { nodes: [], connections: [], stickies?: [], notes?: '' }","properties":{"connections":{"type":"array"},"nodes":{"type":"array"},"notes":{"type":"string"},"stickies":{"type":"array"}},"required":["nodes","connections"],"type":"object"}},"required":["data"],"type":"object"},"name":"map_import_sheet"},{"description":"Export sheet data as JSON including auto-connections. Defaults to active sheet.","inputSchema":{"properties":{"id":{"description":"Sheet id (omit for active sheet)","type":"string"}},"type":"object"},"name":"map_export_sheet"},{"description":"Export current or specified sheet as JSON / PNG / PDF. PNG and PDF return base64-encoded blobs with mimeType — the client decodes and saves to a file. Server raises the response timeout to 30s for PNG/PDF since large maps can take several seconds to render.","inputSchema":{"properties":{"format":{"description":"Output format (default: json)","enum":["json","png","pdf"],"type":"string"},"sheet_id":{"description":"Sheet id (omit for the active sheet)","type":"string"}},"type":"object"},"name":"map_export"},{"description":"Clone a node with all its properties (ports, services, domains, etc.). Returns new node id.","inputSchema":{"properties":{"id":{"description":"Source node id","type":"string"},"name":{"description":"Override name for the clone (default: same as original)","type":"string"},"offset_x":{"description":"X offset from original (default 40)","type":"number"},"offset_y":{"description":"Y offset from original (default 40)","type":"number"}},"required":["id"],"type":"object"},"name":"map_duplicate_node"},{"description":"Return currently selected node/sticky ids and connection id. Result shape: { nodeIds: string[], nodeId: string|null (= nodeIds[0], legacy single-id), connId: string|null }.","inputSchema":{"properties":{},"type":"object"},"name":"map_get_selection"},{"description":"Programmatically select node(s)/sticky(s) and/or a connection. Pass node_ids (array) for multi-select; node_id (string) is legacy single-select. Empty array or null deselects. Connection selection remains single (multi-select connections out of scope v1).","inputSchema":{"properties":{"conn_id":{"description":"Connection id to select (single-select)","type":["string","null"]},"node_id":{"description":"Legacy single node/sticky id (prefer node_ids for multi-select)","type":["string","null"]},"node_ids":{"description":"Array of node/sticky ids to select (multi-select). Replaces the existing selection.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"map_select"},{"description":"Add multiple nodes in a single call. Each node accepts the same fields as map_add_node plus all type-specific fields (ports, dockerServices, domains, parentServer, etc.). Returns array of created ids.","inputSchema":{"properties":{"nodes":{"description":"Array of node objects","items":{"properties":{"cicdUrl":{"type":"string"},"dashboardUrl":{"type":"string"},"deployPath":{"type":"string"},"dockerServices":{"type":"array"},"domains":{"type":"array"},"ip":{"type":"string"},"ips":{"type":"array"},"name":{"type":"string"},"notes":{"type":"string"},"parentServer":{"type":"string"},"ports":{"type":"array"},"provider":{"type":"string"},"registrarUrl":{"type":"string"},"repoUrl":{"type":"string"},"serviceConns":{"type":"array"},"type":{"enum":["server","router","switch","firewall","domain","project","service","pc","nas","ap","camera","printer","other"],"type":"string"},"x":{"type":"number"},"y":{"type":"number"}},"required":["type","name"],"type":"object"},"type":"array"}},"required":["nodes"],"type":"object"},"name":"map_bulk_add_nodes"},{"description":"Add multiple connections in a single call. Returns array of created ids.","inputSchema":{"properties":{"connections":{"description":"Array of connection objects","items":{"properties":{"color":{"type":"string"},"from_id":{"type":"string"},"label":{"type":"string"},"to_id":{"type":"string"}},"required":["from_id","to_id"],"type":"object"},"type":"array"}},"required":["connections"],"type":"object"},"name":"map_bulk_add_connections"}]}}}
