feat(auth): in-MCP auth login — complete the OAuth flow from inside the session, secure backend only #89
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
An unauthed session has no sanctioned remedy from inside the harness. Today the agent hits
not configured - run 'madtea auth login' first(loudly at connect once #88 lands), and the only fix is dropping to a terminal to run the interactive login. And the tempting agent-side workaround is now an explicit anti-goal — decision (2026-07-15): an agent must never cross outside the launch pwd and use auth tokens it finds in other checkouts (see the companion boundary-enforcement issue). The launch scope is the credential boundary, so authenticating that scope, in-session is the only correct remedy short of relaunching.Ask
An MCP-surface login that completes the existing OAuth flow for the launch-scope forge (likely
madt_auth_login, or an action on the auth noun; gated domain is fine):promptToken.Hard constraints:
Acceptance
Refs #88 (connect-time warning that points here), #10 (elicitation/progress client-support matrix), the launch-scope credential-boundary issue (ruling that rules out token borrowing).