docs: demos walkthrough for forgejo:// resource templates #173
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/OpenSpec
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
RFC - Request For Comments
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
hermes-attempted
hermes-needs-clarification
hermes-ready
hermes-review
hermes-wip
human-required
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
agentic-forges/forgejo-mcp!173
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/173/head"
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?
Summary
Adds
demos/mcp-resource-templates.md— end-to-end walkthrough for all 7resource templates shipped in #172 (owner, repo, commit, commit-status,
issue, pr, comment).
Follows the existing
demos/README.mdstructure (seedemos/bounded-responses.mdfor style anchor). All captures are realcodeberg.org payloads against
goern/forgejo-mcp.Why
demos/has one-file-per-feature walkthroughs for every other shippedsurface. Resource templates were the gap.
openspec/changes/mcp-resource-templates/tasks.md(deferred manualclient verification).
forgejo-mcp-pkz.Invocation
--climode covers tools only. Demo uses stdio JSON-RPC:Coverage
resources/templates/list— all 7 templates listedforgejo://owner/{owner}— user/org dual-modeforgejo://repo/{owner}/{repo}— identity + countsforgejo://repo/{owner}/{repo}/commit/{sha}— JSON + markdown sidecarforgejo://repo/{owner}/{repo}/commit/{sha}/status— combined CI stateforgejo://repo/{owner}/{repo}/issue/{index}— JSON + markdown sidecarforgejo://repo/{owner}/{repo}/pr/{index}— embeds truncation sentinel example (PR #172 has 107 comments)forgejo://repo/{owner}/{repo}/{kind}/{index}/comment/{id}— kind ∈ {issue, pr}Security
gitleaks v8.30.1 detect --no-git→ no leaks found$FORGEJO_ACCESS_TOKENreferences use env var, never inlineTest Plan
Follow-ups (out of scope)
forgejo-mcp-7ra—subscribe=truesupportforgejo-mcp-7de— embedded-list cap telemetryop1st Pipelines as Code/code-scans-4gm2j is running.
Starting Pipelinerun code-scans-4gm2j in namespace op1st-pipelines
You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:
tkn pr logs -n op1st-pipelines code-scans-4gm2j -fop1st Pipelines as Code/on-pull-request-t4lzm is running.
Starting Pipelinerun on-pull-request-t4lzm in namespace op1st-pipelines
You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:
tkn pr logs -n op1st-pipelines on-pull-request-t4lzm -fop1st Pipelines as Code/code-scans-4gm2j has successfully validated your commit.
Task Statuses:
fetch-source
gitleaks-version
gitleaks
op1st Pipelines as Code/on-pull-request-t4lzm has successfully validated your commit.
Task Statuses:
fetch-source
commit-title-check
build-and-test
Minutes
Scheduled merge-when-green via
merge_pull_requestwithstyle=merge,delete_branch_after_merge=true.Workflow used: sonnet drafted from brief in worktree
demo-resource-templates; opus validated againstopenspec/changes/mcp-resource-templates/specs/mcp-resources-core/spec.mdandoperation/source. Two issues caught + fixed before commit:openspec/specs/mcp-resources-core/spec.mdwhich only exists post-archive; corrected to current change path.truncated: nullinjqprojection for commit-status (theomitemptyfield drops out when false); rewrote projection and added inline note about the field's natural absence.Security:
gitleaks v8.30.1 detect --no-gitreturnedno leaks found. Regex scrub[a-zA-Z0-9_-]{40,}matched only commit SHAs + showboat slug.$FORGEJO_ACCESS_TOKENalways passed via env var, never inline.Verification: all 7 captures real against
goern/forgejo-mcpon codeberg.org. JSON-RPC handshake (protocolVersion: 2024-11-05+notifications/initialized) exercised once per section so each block is copy-paste-runnable in isolation.Bead
forgejo-mcp-pkzclosing on merge.