Skip to content

Calculation registry, MCP server, PyPI packaging, Python 3.11–3.15 - #8

Merged
evangress merged 1 commit into
mainfrom
feat/ai-registry-mcp-pypi
Nov 7, 2026
Merged

evangress merged 1 commit into
mainfrom
feat/ai-registry-mcp-pypi

Conversation

@evangress

Copy link
Copy Markdown
Collaborator

Summary

  • Registry (fpc/registry.py): every calculation (121) catalogued from type hints and [unit] docstring tags, with JSON Schemas. Drives the new fpc search / describe / run / llms-txt commands and a generated llms.txt.
  • MCP server (fpc-mcp, optional mcp extra): five tools (list domains, search, describe, calculate, reference tables) so LM Studio, Ollama front ends, and Claude can call the library. Guide: docs/ai.md.
  • Type hints and units on every public method; fpc/hints.py; py.typed.
  • PyPI-ready: metadata and classifiers, a Trusted Publishing release workflow (release.yml: TestPyPI on manual runs, PyPI on a published release, tag must match the version), CHANGELOG.md, docs/releasing.md.
  • Python 3.11–3.15 (every CPython not past end-of-life): CI matrix on each; scripts/python_support.py check|status|set keeps pyproject, workflows, ruff, and mypy in step; a monthly workflow opens an issue when it's time to ratchet (docs/python-versions.md).
  • .gitignore fix: the virtualenv template's [Ss]cripts rule was hiding the project's scripts/ folder.
  • ROADMAP sections 9–11 and AGENTS.md.

Test plan

  • uv run pytest: 295 passed locally on 3.11, 3.12, 3.13, 3.14, and 3.15 (rc1)
  • ruff, ruff format, mypy, python_support.py check, pre-commit hooks
  • uv build + twine check --strict; wheel installed in clean 3.11 and 3.14 venvs; fpc and fpc-mcp (real stdio) work
  • mkdocs build --strict
  • CI matrix green on GitHub
  • Try the MCP server with a real local model (ROADMAP follow-up)

After merging, the one-time PyPI setup is in docs/releasing.md.

🤖 Generated with Claude Code

- fpc.registry: a machine-readable catalogue of every calculation (121),
  built from type hints and [unit] docstring tags, with JSON Schemas.
- fpc search / describe / run / llms-txt commands, and a generated llms.txt.
- fpc-mcp: an MCP server (optional `mcp` extra) so local models (LM Studio,
  Ollama front ends) and hosted ones can call the library.
- Type hints and [unit] tags on every public method; fpc.hints; py.typed.
- PyPI-ready metadata, a Trusted Publishing release workflow (TestPyPI on
  manual runs), CHANGELOG, and docs/releasing.md.
- Supports every CPython not past end-of-life (3.11-3.15), tested on each in
  CI. scripts/python_support.py keeps the range consistent and a monthly job
  opens an issue when it is time to ratchet it.
- .gitignore: stop the virtualenv template's [Ss]cripts rule from hiding the
  project's scripts/ folder.
- ROADMAP sections 9-11 (AI integration, distribution, trust) and AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant