sync-mcp
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Branch: agent-identity on c15r/sync-mcp
resolveToken: inverted preference fromroom > agent > viewtoagent > room > view- Added
resolveAdminToken(userId, room): returns room admin token for privilege escalation
ToolContext: addedresolveAdminTokenfunction- Added
withAdminEscalationhelper: retries with admin token on scope_denied errors sync_register_action: uses escalation (agent token first, room token fallback)sync_register_view: uses escalationsync_join_room: uses escalation (creating agents needs admin authority)
- Updated context construction to pass
resolveAdminToken
from: nullon messages → now shows agent identity${self}scope writes → now resolve to agent IDset_status,update_objective→ work via agent token- Vocabulary registration → transparent escalation to admin token
- Auto-join (MCP client as agent)
- Multi-client identity (separate agents per MCP client)
- HTTP proxy overhead (still round-trips to sync.parc.land)
- Vault as shadow of agents table