• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
c15r

c15r

sync-mcp

MCP server for agent-sync coordination
Unlisted
Like
sync-mcp
Home
Code
6
docs
3
README.md
auth.ts
db.ts
H
main.ts
tools.ts
Connections
Environment variables
2
Branches
3
Pull requests
Remixes
History
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.
Sign up now
Code
/
docs
/
unification-design.md
Code
/
docs
/
unification-design.md
Search
3/5/2026
unification-design.md

Phase 1: Agent Identity Fix

Branch: agent-identity on c15r/sync-mcp

Changes

auth.ts

  • resolveToken: inverted preference from room > agent > view to agent > room > view
  • Added resolveAdminToken(userId, room): returns room admin token for privilege escalation

tools.ts

  • ToolContext: added resolveAdminToken function
  • Added withAdminEscalation helper: retries with admin token on scope_denied errors
  • sync_register_action: uses escalation (agent token first, room token fallback)
  • sync_register_view: uses escalation
  • sync_join_room: uses escalation (creating agents needs admin authority)

main.ts

  • Updated context construction to pass resolveAdminToken

What this fixes

  • from: null on messages → now shows agent identity
  • ${self} scope writes → now resolve to agent ID
  • set_status, update_objective → work via agent token
  • Vocabulary registration → transparent escalation to admin token

What this doesn't fix (deferred to merge)

  • 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
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.