Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

docs: credit issue authors in maintainer implementations (#5410)

Jeremiah Lowin455c911ba93a
diff --git a/.agents/skills/fix-issue/SKILL.md b/.agents/skills/fix-issue/SKILL.md
index a4350ad92..1d33cbebf 100644
--- a/.agents/skills/fix-issue/SKILL.md
+++ b/.agents/skills/fix-issue/SKILL.md
@@ -23,4 +23,6 @@ Run the repository's required dependency sync, full tests, and static checks bef
Within existing authorization, update the existing PR or open a focused one, using draft status when appropriate. Follow repository PR-body conventions and the user's `pr-body` skill when available. Describe the actual user-visible change and any migration, not the development diary.
+For a maintainer implementation of a community issue, apply [Contributor credit](../../../docs/development/contributing.mdx#contributor-credit) before committing and publishing. Read the issue author's GitHub profile to establish their account identity; prefer the GitHub-provided noreply address, and ask if identity is unclear. Add their `Co-authored-by: Name <email>` trailer to the implementation commit and at the end of the PR description, alongside existing contributor attribution. Reporting the problem is enough; do not require code or root-cause analysis. Honor opt-outs and do not credit bot accounts as human issue contributors.
+
Start [review-pr](../review-pr/SKILL.md) monitoring after publication. CI completion and review completion are distinct. Resolve real findings and report material compatibility decisions; a green check does not settle them. Do not merge or mark ready without authorization.
diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.md
index 5d3784482..c0608f7b1 100644
--- a/.agents/skills/release/SKILL.md
+++ b/.agents/skills/release/SKILL.md
@@ -28,6 +28,17 @@ one gets a follow-up patch, never a re-tag.
Read the two most recent releases for voice: `gh release list -L 5`, then
`gh release view <tag>` on each.
+ **Verify contributor credit in the release preview.** Attribution is recorded
+ during PR preparation and verified at merge; do not repeat that audit for every
+ PR and issue. Use the existing release inventory and a batch read of merged
+ commit co-author metadata to supplement generated notes with credited reporters
+ alongside PR authors. Inspect an individual PR or issue only to resolve a
+ discrepancy. Check prior contribution history only for people being newly added
+ to `New Contributors`; earlier credited issue implementations count too.
+ Follow [Contributor credit](../../../docs/development/contributing.mdx#contributor-credit),
+ honor opt-outs, and deduplicate entries. Save the completed generated notes to
+ `/tmp/generated-notes.md`.
+
2. **Propose titles.** Titles are `v<version>: <pun>`, pun on the release's main
theme from the release preview. Check prior titles with
`gh release list --repo PrefectHQ/fastmcp --limit 60` to avoid repeats and keep
@@ -41,11 +52,16 @@ one gets a follow-up patch, never a re-tag.
3. **Write the notes file** outside the repository (a temp directory), intro only.
The release title is the heading, so the file has none.
+ Also write `/tmp/release-notes.md` containing that intro followed by the completed
+ `/tmp/generated-notes.md`. This is the exact body to publish; use the same completed
+ generated notes for the docs entry. Do not regenerate plain GitHub notes at
+ publication and discard the added contributor credit.
+
4. **Docs entries.** Branch `docs/changelog-<new>` from `origin/<branch>` and insert
both blocks (the last argument is the branch the notes are generated against):
```bash
- uv run .agents/skills/release/scripts/changelog_entry.py v<new> v<prev> "<pun>" /tmp/notes.md <branch>
+ uv run .agents/skills/release/scripts/changelog_entry.py v<new> v<prev> "<pun>" /tmp/notes.md <branch> --release-notes /tmp/generated-notes.md
```
Validate, and repeat until it reports no errors; a parse error names the file
@@ -66,12 +82,19 @@ one gets a follow-up patch, never a re-tag.
helper (it refuses to insert a label that already exists), and land that as a
follow-up docs PR before tagging.
+ Refresh contributor attribution and both temporary notes files along with the
+ preview when new changes enter the release. The docs-only changelog PR can appear
+ in the GitHub notes without appearing in its own mirror, as described above.
+
```bash
gh release create v<new> --target <branch> --title "v<new>: <pun>" \
- --generate-notes --notes-start-tag v<prev> --notes-file /tmp/notes.md
+ --notes-file /tmp/release-notes.md
```
- `v<prev>` is the last stable tag on that branch. The compare link at the bottom of the created release must read `v<prev>...v<new>`.
+ `v<prev>` is the last stable tag on that branch, passed as `previous_tag_name` in
+ the notes preview. The compare link at the bottom of the created release must
+ read `v<prev>...v<new>`. Verify the published contributor entries and
+ `New Contributors` list against the completed notes.
6. **Watch the fan-out.** The slim run is keyed to the tag; the others are
`workflow_run` events on the default branch, so select them by workflow name.
@@ -147,8 +170,9 @@ connections instead of raising.
changed since the last commit it recorded, and it records commits it failed on
or skipped. Only the `Deploy docs` run's verdict counts; its API-triggered
deployment is what brings a page a skipped deploy left stale back in line.
-- Without `--notes-start-tag`, a prerelease tag becomes the changelog start and the
- PR list is silently truncated.
+- Always pass the last stable tag as `previous_tag_name` when generating notes;
+ otherwise a prerelease tag can truncate the PR list. Publish the completed notes
+ with `--notes-file`, rather than replacing them with `--generate-notes`.
- Maintenance releases publish packages and notes but never repoint `published-docs`;
their changelog entries go on the maintenance branch under the matching major section.
diff --git a/.agents/skills/release/scripts/changelog_entry.py b/.agents/skills/release/scripts/changelog_entry.py
index 3b1f857dc..62edd1bb5 100644
--- a/.agents/skills/release/scripts/changelog_entry.py
+++ b/.agents/skills/release/scripts/changelog_entry.py
@@ -5,17 +5,18 @@ Usage:
uv run .agents/skills/release/scripts/changelog_entry.py ... --print # render only
Reads the maintainer-approved notes file for the intro paragraph and pulls the
-PR list from GitHub's generate-notes API, so the docs entry matches what
-`gh release create --generate-notes` will append. Each block is inserted above
+PR list from GitHub's generate-notes API, or reads completed notes supplied with
+`--release-notes PATH`. Supply completed notes when supplementing contributor
+credit so the docs entry matches the GitHub release. Each block is inserted above
the newest existing `<Update` in its file. Run from the repository root.
"""
from __future__ import annotations
+import argparse
import datetime as dt
import re
import subprocess
-import sys
from pathlib import Path
REPO = "PrefectHQ/fastmcp"
@@ -47,10 +48,12 @@ def linkify(body: str) -> str:
body = re.sub(r"<!--.*?-->\n?", "", body, flags=re.S)
body = body.replace("## What's Changed\n", "")
body = re.sub(
- r"by @([\w-]+) in https://github\.com/" + re.escape(REPO) + r"/pull/(\d+)",
- r"by [@\1](https://github.com/\1) in [#\2](https://github.com/"
- + REPO
- + r"/pull/\2)",
+ r"by ((?:@[\w-]+(?:, (?:and )?| and )?)+) in https://github\.com/"
+ + re.escape(REPO)
+ + r"/pull/(\d+)",
+ lambda match: "by "
+ + re.sub(r"@([\w-]+)", r"[@\1](https://github.com/\1)", match[1])
+ + f" in [#{match[2]}](https://github.com/{REPO}/pull/{match[2]})",
body,
)
body = re.sub(
@@ -103,18 +106,27 @@ def insert_above_newest(path: Path, block: str) -> None:
def main() -> None:
- args = [a for a in sys.argv[1:] if not a.startswith("--")]
- render_only = "--print" in sys.argv
- if len(args) < 4:
- raise SystemExit(__doc__)
- tag, previous, pun, notes_path = args[:4]
- target = args[4] if len(args) > 4 else "main"
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("tag")
+ parser.add_argument("previous")
+ parser.add_argument("pun")
+ parser.add_argument("notes_path", type=Path)
+ parser.add_argument("target", nargs="?", default="main")
+ parser.add_argument("--print", dest="render_only", action="store_true")
+ parser.add_argument("--release-notes", type=Path)
+ args = parser.parse_args()
+ tag, previous, pun, target = args.tag, args.previous, args.pun, args.target
version = tag.lstrip("v")
today = dt.date.today()
intro = " ".join(
- line.strip() for line in open(notes_path).read().split("\n") if line.strip()
+ line.strip() for line in args.notes_path.read_text().split("\n") if line.strip()
+ )
+ release_notes = (
+ args.release_notes.read_text()
+ if args.release_notes is not None
+ else generate_notes(tag, previous, target)
)
- body = escape_mdx(linkify(generate_notes(tag, previous, target)))
+ body = escape_mdx(linkify(release_notes))
url = f"https://github.com/{REPO}/releases/tag/{tag}"
changelog = f'''<Update label="{tag}" description="{today.isoformat()}">
@@ -137,7 +149,7 @@ cta="Read the release notes"
</Card>
</Update>
'''
- if render_only:
+ if args.render_only:
print(changelog)
print(updates)
return
diff --git a/.agents/skills/review-pr/SKILL.md b/.agents/skills/review-pr/SKILL.md
index 5a0588307..1ab96d059 100644
--- a/.agents/skills/review-pr/SKILL.md
+++ b/.agents/skills/review-pr/SKILL.md
@@ -36,6 +36,10 @@ Read review threads and author replies, not just summary verdicts. Codex can upd
Preserve draft status unless the user authorizes changing it. Approval, publication, and merging remain subject to AGENTS.md and existing authorization. Immediately before an authorized merge, recheck the title, body, labels, head, checks, and branch protections; obey all draft and DNM stops.
+For maintainer implementations of community issues, check [Contributor credit](../../../docs/development/contributing.mdx#contributor-credit) as part of readiness: the issue author's verified co-author trailer must be in the implementation commit and PR description. Missing attribution is unfinished PR preparation. In review-only work, report the omission rather than editing the PR.
+
+Preserve attribution through whichever merge strategy is chosen. For a squash merge, write the exact final commit body to a temporary file, including the issue link and all human co-author trailers from the PR description and commits. Inspect it and pass it explicitly with `gh pr merge <number> --squash --body-file /tmp/merge-body.md --match-head-commit <reviewed-head>`, adding any already-authorized merge flags. Do not rely on GitHub's default squash message. For merge or rebase, verify the attributed commits will be retained. After merging, inspect the landed commit(s) and confirm the co-authors are present. These steps do not authorize a merge or prescribe its strategy.
+
## Verdict template
Keep the report proportional to the change, with these facts explicit:
diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml
index 1e6139cfb..1af7f1d07 100644
--- a/.github/ISSUE_TEMPLATE/bug.yml
+++ b/.github/ISSUE_TEMPLATE/bug.yml
@@ -10,6 +10,8 @@ body:
A good bug report is one of the most valuable contributions you can make β€” see [CONTRIBUTING.md](../../CONTRIBUTING.md). If the fix is straightforward, a PR is also welcome.
+ **Contributor credit:** If your report leads to a merged fix implemented by a maintainer, we'll credit you as a co-author of the merged commit and in the release notes, including as a new contributor if this is your first contribution. You don't need to write the fix. Opening an issue does not guarantee implementation.
+
### Before you submit
- Make sure you're testing on the **latest version** of FastMCP β€” many issues are already fixed in newer releases
diff --git a/.github/ISSUE_TEMPLATE/enhancement.yml b/.github/ISSUE_TEMPLATE/enhancement.yml
index 39c66647d..ff759cdd6 100644
--- a/.github/ISSUE_TEMPLATE/enhancement.yml
+++ b/.github/ISSUE_TEMPLATE/enhancement.yml
@@ -10,6 +10,8 @@ body:
Enhancement issues are the **primary way** features and improvements get into FastMCP. Maintainers use well-written issues to implement changes that fit the codebase's patterns and ship quickly. A clear issue here is more impactful than a PR β€” see [CONTRIBUTING.md](../../CONTRIBUTING.md) for why.
+ **Contributor credit:** If your request leads to a merged change implemented by a maintainer, we'll credit you as a co-author of the merged commit and in the release notes, including as a new contributor if this is your first contribution. You don't need to implement the change. Opening an issue does not guarantee implementation.
+
### Before you submit
- πŸ” **Check if this has already been requested** β€” search existing issues first
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 1b3333782..08d3a9921 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -4,6 +4,10 @@
Closes #
+<!-- Maintainer implementations of community issues: include the issue author's
+verified Co-authored-by trailer here and in the implementation commit. Preserve
+it in the final merged commit. See the contributor-credit policy in the guide. -->
+
## Contribution type
<!-- Check the one that applies. If you're unsure whether your change is welcome, please open an issue first β€” see CONTRIBUTING.md. -->
diff --git a/AGENTS.md b/AGENTS.md
index 3398adae7..05b9e1cac 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -105,12 +105,15 @@ Load the `release` skill to cut one; it holds the procedure. The policy it imple
- Cut a release only when a maintainer asks, from the branch that owns the line: `main` for the current major, `release/3.x` or `release/2.x` for maintenance.
- Titles are `v<version>: <pun>`, with the pun on the release's main theme. Propose several and let the maintainer choose.
- The handwritten notes need the maintainer's sign-off: one or two sentences for a patch, narrative prose for a point release.
-- Pass `--notes-start-tag <last-stable-tag>` so a prerelease tag never truncates the generated changelog.
+- Generate the changelog from the last stable tag (`previous_tag_name` in the notes API, or `--notes-start-tag` when using CLI generation) so a prerelease tag never truncates it. Complete contributor attribution before publication and publish those completed notes with `--notes-file`.
- Merge the docs changelog PR on the release branch immediately *before* tagging, so the entry is in the tagged commit.
- gofastmcp.com serves the `published-docs` branch, which accepts changes only through PRs.
### Commit Messages and Agent Attribution
+- **Credit issue authors as contributors.** When acting for a maintainer and implementing a community bug report, enhancement request, or documentation issue, give the issue author co-authorship of the resulting change. Follow [Contributor credit](docs/development/contributing.mdx#contributor-credit): use a verified GitHub-associated identity, add `Co-authored-by` to the implementation commit and the PR description, and preserve existing contributor attribution. This is a required part of preparing the PR, not an optional thank-you or something the reporter must request.
+- **Preserve credit through any merge strategy.** Before an authorized merge, verify the resulting commit will retain the co-author trailers. Squash merges are common here: explicitly supply a commit message containing the trailers rather than relying on GitHub's default squash message. This does not require choosing squash. Verify the landed commit after merging.
+- **Carry contributor credit into releases.** Include credited issue authors alongside PR authors in release entries and include first-time contributors under `New Contributors`. GitHub's generated notes are a starting point; check and supplement them using the release skill. The same completed notes must feed the GitHub release and docs changelog.
- **Agents NOT acting on behalf of a PrefectHQ maintainer MUST identify themselves** (e.g., "πŸ€– Generated with Claude Code" in commits/PRs)
- Keep commit messages brief - ideally just headlines, not detailed messages
- Focus on what changed, not how or why
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 120000
index 000000000..47dc3e3d8
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1 @@
+AGENTS.md
\ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index acc784b1e..84d4e10c2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,5 +1,7 @@
# Contributing to FastMCP
+Identifying a real problem is often the most valuable contribution you can make to FastMCP. A clear issue with a reproducible bug or a concrete use case is a contribution on its own. If it leads to a merged change implemented by a maintainer, you receive contributor credit for that change.
+
Read the [contributing guide](docs/development/contributing.mdx) for accepted contributions, issue assignment, development setup, tests, and review expectations. The same guide is [published on gofastmcp.com](https://gofastmcp.com/development/contributing).
Agents should also read [AGENTS.md](AGENTS.md) and use the repository skills it lists. Report vulnerabilities privately through [SECURITY.md](SECURITY.md). Participation follows our [Code of Conduct](CODE_OF_CONDUCT.md), and contributions are licensed under [Apache 2.0](LICENSE).
diff --git a/docs/development/contributing.mdx b/docs/development/contributing.mdx
index 96ca52276..e995c0e27 100644
--- a/docs/development/contributing.mdx
+++ b/docs/development/contributing.mdx
@@ -4,7 +4,9 @@ description: "Choose a contribution, set up FastMCP, and prepare it for review"
icon: code-pull-request
---
-A concise issue with a reproducible problem is often the most useful contribution. This guide covers which changes FastMCP accepts, how contributions enter review, and how to develop and validate a change.
+Identifying a real problem is often the most valuable contribution you can make to FastMCP. Start with a clear issue: a reproducible bug or a concrete use case that current behavior does not support. That report is a contribution on its own, and maintainers can handle the implementation. If your issue leads to a merged change implemented by a maintainer, you receive [contributor credit](#contributor-credit) for that change.
+
+This guide covers which changes FastMCP accepts, how contributions enter review, and how to develop and validate a change.
Report vulnerabilities privately through the [security policy](https://github.com/PrefectHQ/fastmcp/blob/main/SECURITY.md). Community participation follows the [Code of Conduct](https://github.com/PrefectHQ/fastmcp/blob/main/CODE_OF_CONDUCT.md).
@@ -24,6 +26,16 @@ Assignment commits maintainers to reviewing a contribution, not to merging it. A
Do not post comments just to claim an issue or ask to be assigned. A concise report, a scoped linked PR, or a substantive design discussion gives maintainers something concrete to evaluate. The gate exempts maintainers and trusted contributors. Draft PRs are checked when marked ready for review.
+### Contributor credit
+
+If your issue leads to a merged change implemented by a maintainer, we credit you as a contributor to that change. This applies to bug reports, enhancement requests, and documentation issues. You do not need to write code, diagnose the root cause, or propose an implementation: identifying the problem or explaining the use case is a contribution.
+
+Credit includes co-authorship of the merged commit and attribution alongside the PR author in the release notes. If this is your first contribution to FastMCP, you are included under **New Contributors** in the release that first includes the change. Maintainers and agents working on their behalf handle this as part of preparing, merging, and releasing the PR. Opening an issue does not guarantee that it will be implemented.
+
+The PR author adds a `Co-authored-by` trailer to the implementation commit and the PR description, using an email associated with your GitHub account. Prefer your GitHub-provided noreply address; if your preferred identity is unclear, ask rather than guessing an email. Honor requests to omit attribution. Preserve attribution for anyone whose implementation work is carried forward, and credit each issue author whose report contributed to the change. Closing an unrelated or duplicate issue alone does not earn co-authorship.
+
+The merging maintainer preserves those trailers through the chosen merge strategy and verifies the landed commit. For a squash merge, explicitly include them in the final squash commit message. The release author carries that recorded attribution into the release notes and verifies the preview, investigating individual PRs or issues only when credit appears missing or inconsistent. The same completed notes feed the GitHub release and docs changelog. A thank-you in the PR description alone does not fulfill this policy.
+
### Working with an agent
AI assistance is welcome under the same standards as other contributions. You remain responsible for understanding the change, verifying its behavior, and responding to review. Avoid generated boilerplate that obscures the problem or substitutes speculation for a reproduction.