Document adopting the Image via .mcp.json #32

Closed
opened 2026-09-30 17:32:01 +00:00 by piscis · 0 comments
Owner

What to build

A Consumer landing on the README can adopt the Image in their own project by copying one .mcp.json snippet. The README already has a "Claude Code setup" section (from #9); this ticket brings it in line with this repo's own dogfooded config from the blocking ticket and fills in what's missing.

Update the existing section:

  • Snippet: replace it with this repo's project MCP config exactly: docker run --rm -i --pull=always, :3, bare -e FORGEJO_ACCESS_TOKEN, and -e FORGEJO_URL=${FORGEJO_URL:-https://code.vicoli.de}. Update the claude mcp add one-liner to match.
  • Prose: FORGEJO_URL now has a default, so "export both variables" becomes "export FORGEJO_ACCESS_TOKEN; set FORGEJO_URL only to point at another instance".

Add to that section (each point one or two sentences):

  • Prerequisites: Docker and a Forgejo personal access token.
  • The token is read from FORGEJO_ACCESS_TOKEN in the environment Claude Code starts in; if you already keep your token under another name, add e.g. export FORGEJO_ACCESS_TOKEN=$FORGEJO_TOKEN to your shell profile.
  • Token scopes are the only guardrail: Upstream has no read-only mode or tool filtering, so grant the smallest scopes that cover your use.
  • The same command/args work in any stdio MCP client (only Claude Code's .mcp.json is shown).
  • Gotcha: if Forgejo runs on the Consumer's own machine, localhost inside the container is not the host; use host.docker.internal.

Already covered, leave as is: exact pinning to X.Y.Z-rN (Tags section), HTTP mode.

Out of scope (decided): per-client snippets, CI check of the snippet, ADR, glossary changes.

Acceptance criteria

  • The README snippet and the claude mcp add line match this repo's project MCP config exactly
  • The Claude Code setup section covers every "Add" point above, and no longer says both variables must be exported
  • Wording uses glossary terms (Image, Consumer, Upstream)

Blocked by

## What to build A Consumer landing on the README can adopt the Image in their own project by copying one `.mcp.json` snippet. The README already has a "Claude Code setup" section (from #9); this ticket brings it in line with this repo's own dogfooded config from the blocking ticket and fills in what's missing. Update the existing section: - **Snippet**: replace it with this repo's project MCP config exactly: `docker run --rm -i --pull=always`, `:3`, bare `-e FORGEJO_ACCESS_TOKEN`, and `-e FORGEJO_URL=${FORGEJO_URL:-https://code.vicoli.de}`. Update the `claude mcp add` one-liner to match. - **Prose**: `FORGEJO_URL` now has a default, so "export both variables" becomes "export `FORGEJO_ACCESS_TOKEN`; set `FORGEJO_URL` only to point at another instance". Add to that section (each point one or two sentences): - Prerequisites: Docker and a Forgejo personal access token. - The token is read from `FORGEJO_ACCESS_TOKEN` in the environment Claude Code starts in; if you already keep your token under another name, add e.g. `export FORGEJO_ACCESS_TOKEN=$FORGEJO_TOKEN` to your shell profile. - **Token scopes are the only guardrail**: Upstream has no read-only mode or tool filtering, so grant the smallest scopes that cover your use. - The same `command`/`args` work in any stdio MCP client (only Claude Code's `.mcp.json` is shown). - Gotcha: if Forgejo runs on the Consumer's own machine, `localhost` inside the container is not the host; use `host.docker.internal`. Already covered, leave as is: exact pinning to `X.Y.Z-rN` (Tags section), HTTP mode. Out of scope (decided): per-client snippets, CI check of the snippet, ADR, glossary changes. ## Acceptance criteria - [ ] The README snippet and the `claude mcp add` line match this repo's project MCP config exactly - [ ] The Claude Code setup section covers every "Add" point above, and no longer says both variables must be exported - [ ] Wording uses glossary terms (Image, Consumer, Upstream) ## Blocked by - #31
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
Reference
vicoli-oss/docker-forgejo-mcp#32
No description provided.