You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let authorized agents manage a thread’s guest link through MCP
#27969
A user can ask an agent to create a guest link for its current thread, but the T3 MCP server has no guest-link management tool. The agent can read the thread and return an internal t3-thread:// reference, yet cannot invoke the guest service that already backs web/desktop sharing. This is independent of the native mobile creation gap: asking from desktop reaches the same missing tool.
Proposed interface
One focused tool, provisionally t3_thread_guest_link, with actions:
Action
Result and effect
status
Report availability, share state, expiry, and redemption state; never return the invitation credential or change access.
create
Create an invitation if needed; reuse an active, unclaimed one instead of silently rotating it. If already claimed, explain that replacement needs explicit intent.
get_link
Return the existing usable, unclaimed invitation without changing its identity or expiry.
replace
Explicitly revoke the old share and issue a new invitation. Explain that the current guest loses access and unsent requests are discarded.
revoke
End guest access without creating another invitation; safe to repeat.
Default to the caller's current thread. Explicit thread/environment targeting must retain the existing caller, thread-control, runtime-mode, and target-host boundaries. The exact name/schema and authorized remote-caller policy are proposed for maintainer review, not assumed to be approved.
Example interaction: “Create a guest link for this thread” → a successful authorized tool call → an HTTPS guest invitation with its expiry and one-browser limitation. “Is this thread shared? Just check” → metadata only. “Stop sharing” → revocation, never a replacement. These flows are shown in a conversation mockup; design approval is pending.
Authority and implementation boundary
Use the existing guest service and the shared lifecycle/lookup API, not a second credential or sharing implementation. Keep transports thin.
Reject invitation creation, URL retrieval, replacement, and revocation for read-only MCP clients. These actions must honor the caller's approved MCP mode, live thread authority, and the host's sharing authorization boundary. A browser's access:write permission is not automatically equivalent to an unrelated MCP grant; the mapping needs explicit review.
Existing runtime approval policies still apply. The model must not publish as a side effect of reading a thread, replace a link merely to retrieve it, or treat an internal deep link as a public invitation.
Preserve the Guest links beta and T3 Connect prerequisites. Report disabled/unavailable/unauthorized/unsupported conditions without enabling settings, linking a host, or escalating access.
Retries must not issue multiple replacements. A destructive request must target the share the caller observed, so it cannot close a newer share created elsewhere. Reuse existing request-identity and orchestration patterns rather than adding a second state machine.
Return a credential only when explicitly requested by an authorized caller. Keep it out of ordinary thread-list/read/status results.
Focused service and MCP integration tests cover all actions, caller authorization, wrong/stale thread/share targets, expiry/redemption, disabled beta, missing Connect, and repeated/concurrent requests.
status never returns a URL; repeated creation/lookup does not rotate an unclaimed share; explicit replacement invalidates the old one; revocation leaves no replacement.
Verify normal tool registration/discovery, provider injection paths, and accurate tool results. Add model-facing eval coverage per the repo's eval guidance where tool descriptions/instructions change.
Exercise the complete flow with isolated test data. Do not publish an existing private conversation as a test.
Keep this a separate PR from the native UI. Any minimal shared lifecycle API should be agreed once and reused; coordinate PR order rather than duplicate it.
Scope approval requested
Would maintainers accept a focused MCP guest-link management capability with the above authority boundary? We would like to implement it as a separate draft PR after design and maintainer approval; a draft is not a workaround for CONTRIBUTING's approval requirement.
Out of scope: permanent public transcripts, multiple guests, new roles, arbitrary guest RPC/MCP access, new provider-specific sharing systems, and ordinary thread-navigation link changes (#26290). Guest tokens remain distinct from authenticated environment/MCP sessions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
A user can ask an agent to create a guest link for its current thread, but the T3 MCP server has no guest-link management tool. The agent can read the thread and return an internal
t3-thread://reference, yet cannot invoke the guest service that already backs web/desktop sharing. This is independent of the native mobile creation gap: asking from desktop reaches the same missing tool.Proposed interface
One focused tool, provisionally
t3_thread_guest_link, with actions:statuscreateget_linkreplacerevokeDefault to the caller's current thread. Explicit thread/environment targeting must retain the existing caller, thread-control, runtime-mode, and target-host boundaries. The exact name/schema and authorized remote-caller policy are proposed for maintainer review, not assumed to be approved.
Example interaction: “Create a guest link for this thread” → a successful authorized tool call → an HTTPS guest invitation with its expiry and one-browser limitation. “Is this thread shared? Just check” → metadata only. “Stop sharing” → revocation, never a replacement. These flows are shown in a conversation mockup; design approval is pending.
Authority and implementation boundary
access:writepermission is not automatically equivalent to an unrelated MCP grant; the mapping needs explicit review.Source baseline: complete MCP registration, MCP caller guards, guest service, and guest authentication design.
Acceptance and verification
statusnever returns a URL; repeated creation/lookup does not rotate an unclaimed share; explicit replacement invalidates the old one; revocation leaves no replacement.Scope approval requested
Would maintainers accept a focused MCP guest-link management capability with the above authority boundary? We would like to implement it as a separate draft PR after design and maintainer approval; a draft is not a workaround for CONTRIBUTING's approval requirement.
Out of scope: permanent public transcripts, multiple guests, new roles, arbitrary guest RPC/MCP access, new provider-specific sharing systems, and ordinary thread-navigation link changes (#26290). Guest tokens remain distinct from authenticated environment/MCP sessions.
All reactions