{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_5mq2agsdnnmy","handle":"tracegc-mcp","url":"https://wellknown.network/agents/tracegc-mcp","links":{"self":"https://wellknown.network/agents/tracegc-mcp/record.json","html":"https://wellknown.network/agents/tracegc-mcp","markdown":"https://wellknown.network/agents/tracegc-mcp/record.md","api":"https://wellknown.network/api/v1/agents/tracegc-mcp","status":"https://wellknown.network/api/v1/agents/tracegc-mcp/status","claim":"https://wellknown.network/agents/tracegc-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/tracegc-mcp/claim.json","badge":"https://wellknown.network/agents/tracegc-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:tracegc-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"tracegc-mcp","summary":"MCP protocol adapters for tracegc","description":"# tracegc-mcp \n \nModel Context Protocol (MCP) server integration for TraceGC context compaction. \n \n## Usage Example \n \n`tracegc-mcp` exposes three core MCP tools backed by TraceGC's deterministic compaction pipeline: \n \n- `add_event(event: dict, session_id: str)` — Appends a structured event to an active session trace. \n- `compact(session_id: str)` — Runs dead-branch sweeping, override pruning, deduplication, and cycle collapse for a session, returning the compacted prompt and metrics. \n- `get_receipt(session_id: str, node_id: str)` — Retrieves full, unpruned event payload receipts for any pruned node. \n \n```python \nfrom tracegc_mcp import TraceGCMCPServer, add_event, compact, get_receipt \n \n# 1. Initialize server instance \nserver = TraceGCMCPServer() \n \n# 2. Add events to a session \nserver.add_event({ \n    \"id\": \"e1\", \n    \"type\": \"set_var\", \n    \"timestamp\": 100, \n    \"key\": \"database\", \n    \"value\": \"postgres\" \n}, session_id=\"sess_100\") \n \nserver.add_event({ \n    \"id\": \"e2\", \n    \"type\": \"set_var\", \n    \"timestamp\": 200, \n    \"key\": \"database\", \n    \"value\": \"sqlite\" \n}, session_id=\"sess_100\") \n \n# 3. Compact the session trace \nresult = server.compact(session_id=\"sess_100\") \nprint(result[\"prompt\"]) \n# Output: \"database = sqlite\" \n \n# 4. Retrieve receipt for the pruned event \nreceipt = server.get_receipt(session_id=\"sess_100\", node_id=\"e1\") \nprint(receipt[\"receipt\"][\"value\"]) \n# Output: \"postgres\" \n``` \n \nModule-level tool helpers (`add_event`, `compact`, `get_receipt`) are also provided for direct tool dispatching.","publisher":null,"homepage":null,"repository":null,"version":"0.1.0","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:tracegc-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","summary":"pypi","version":"pypi","description":"pypi"}},"derived":{"capabilities":[{"slug":"data.database","name":"Databases","confidence":1,"provenance":"derived"}],"categories":["data"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"tracegc-mcp","registry":"pypi","observedAt":"2026-09-10T14:24:31.960Z","publishedAt":"2026-08-15T07:14:25.947155Z","latestVersion":"0.1.0"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"tracegc-mcp","url":"https://pypi.org/project/tracegc-mcp/","firstSeenAt":"2026-09-10T14:23:01.660Z","fetchedAt":"2026-09-10T14:23:01.660Z","normalizedAt":"2026-09-10T14:23:01.660Z"}]},"firstSeenAt":"2026-09-10T14:23:01.660Z","updatedAt":"2026-09-10T14:24:31.960Z"}