Releasing¶
Pushing a tag vX.Y.Z runs .github/workflows/release.yml, which:
- checks that the tag matches the version in
pyproject.toml,server.jsonand the plugin files (scripts/set_version.py --check-tag), and takes the release notes from that version's section inCHANGELOG.md(scripts/release_notes.py). If either step fails, nothing is published; - builds the sdist and wheel with
uv buildand checks that the wheel runs withuvx; - creates PEP 740 attestations;
- publishes to PyPI with trusted publishing (no token);
- publishes
server.jsonto the MCP Registry asio.github.n-kostadinov/yfinance-agent-mcp, logging in with GitHub OIDC; - creates a GitHub Release with the changelog section and the package files.
One-time setup¶
These steps need the maintainer's accounts and are done once.
PyPI trusted publisher¶
On PyPI, add a pending publisher:
| Field | Value |
|---|---|
| PyPI project name | yfinance-agent-mcp |
| Owner | n-kostadinov |
| Repository name | yfinance-agent-mcp |
| Workflow name | release.yml |
| Environment name | pypi |
GitHub repository¶
- Environment: create an environment named
pypi(Settings → Environments). Adding yourself as a required reviewer makes every release wait for your approval. - Pages: Settings → Pages → Source: GitHub Actions.
-
Metadata: description, homepage and topics, for example:
gh repo edit n-kostadinov/yfinance-agent-mcp \ --description "Read-only Yahoo Finance MCP server for AI trading-research agents (yfinance)" \ --homepage https://n-kostadinov.github.io/yfinance-agent-mcp/ \ --add-topic mcp --add-topic mcp-server --add-topic model-context-protocol \ --add-topic yfinance --add-topic yahoo-finance --add-topic stock-market \ --add-topic market-data --add-topic trading --add-topic ai-agents --add-topic llm \ --add-topic claude --add-topic python --add-topic finance --add-topic uv -
Social preview: upload an image under Settings → General → Social preview (a page card from
site/assets/images/social/index.pngworks).
MCP Registry¶
Nothing to register up front. The workflow logs in with GitHub OIDC, which proves ownership
of the io.github.n-kostadinov/ namespace, and the registry checks the
<!-- mcp-name: ... --> marker in the README published on PyPI.
Release a version¶
-
Bump the version everywhere it appears:
-
In
CHANGELOG.md, rename[Unreleased]to the new version with today's date, add an empty[Unreleased]above it, and update the links at the bottom. -
Check and commit:
-
Tag and push:
-
Watch the Release workflow, then verify:
and search the registry for
yfinance-agent-mcp.