barrel_server_mcp_agent (barrel_server v1.0.0)

View Source

The agent-layer MCP tools: spaces, capability grants, sessions, and handoffs, calling barrel_spaces / barrel_caps / barrel_session / barrel_handoff directly. Authorization mirrors the REST surface: space creation is management-only (global principals), grant administration needs admin on the space, session reads/writes follow the right ladder, and handoff accept/complete need nothing but the handoff token: possession is the right.

Summary

Functions

handoff_accept(Args, Ctx)

handoff_complete(Args, Ctx)

handoff_create(Args, Ctx)

handoff_list(Args, Ctx)

register_all()

session_add_message(Args, Ctx)

session_create(Args, Ctx)

session_get_messages(Args, Ctx)

session_touch(_, Ctx)

space_create(Args, Ctx)

space_grant(Args, Ctx)

space_info(_, Ctx)

space_revoke(_, Ctx)

unregister_all()