Interactive profile setup menu for canonical Gitea MCP config #31

Closed
opened 2026-07-01 22:26:46 -05:00 by jcwalker3 · 0 comments
Owner

Parent

Roadmap #10. Depends on #19 / PR #30 (canonical runtime profiles).

Problem

Hand-editing the canonical profiles JSON is error-prone and unsafe; users should not paste Gitea tokens into Claude/Gemini/Codex MCP configs.

Goal

Interactive setup/menu utility to create, edit, validate, and display safe launcher snippets for the canonical Gitea MCP profile config.

Behavior

  • Menu: list / add / edit / remove profiles; validate config; test auth; show authenticated user; generate thin launcher snippets (Claude/Gemini/Codex); check reviewer eligibility for a PR.
  • Auth by reference only: macOS keychain (security, service id like prgs-gitea-reviewer-token) or env var name (e.g. GITEA_TOKEN_PRGS_REVIEWER). Never echo/log/commit tokens; never write raw tokens into launcher configs.
  • Canonical file at ~/.config/gitea-tools/profiles.json: mkdir parents, atomic write, pretty JSON, preserve existing profiles.
  • Auth test + eligibility hit the API only on explicit selection; eligibility never approves/merges.
  • Backwards compatible: env-only mode unaffected; menu not required for MCP startup.

Delivery

Stacked on PR #30 (feat/json-runtime-profiles); merges after #30.

Refs #10, #19.

## Parent Roadmap #10. Depends on #19 / PR #30 (canonical runtime profiles). ## Problem Hand-editing the canonical profiles JSON is error-prone and unsafe; users should not paste Gitea tokens into Claude/Gemini/Codex MCP configs. ## Goal Interactive setup/menu utility to create, edit, validate, and display safe launcher snippets for the canonical Gitea MCP profile config. ## Behavior - Menu: list / add / edit / remove profiles; validate config; test auth; show authenticated user; generate thin launcher snippets (Claude/Gemini/Codex); check reviewer eligibility for a PR. - Auth by reference only: macOS keychain (`security`, service id like `prgs-gitea-reviewer-token`) or env var name (e.g. `GITEA_TOKEN_PRGS_REVIEWER`). Never echo/log/commit tokens; never write raw tokens into launcher configs. - Canonical file at `~/.config/gitea-tools/profiles.json`: mkdir parents, atomic write, pretty JSON, preserve existing profiles. - Auth test + eligibility hit the API only on explicit selection; eligibility never approves/merges. - Backwards compatible: env-only mode unaffected; menu not required for MCP startup. ## Delivery Stacked on PR #30 (`feat/json-runtime-profiles`); merges after #30. Refs #10, #19.
jcwalker3 added the status:in-progress label 2026-07-01 22:26:53 -05:00
sysadmin removed the status:in-progress label 2026-07-02 01:30:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#31