---
title: "Contributing"
description: "Tooling, code style, commit conventions and the checks CI runs for nasa-mcp."
type: Guide
tags:
  - contributing
  - ci
  - style
generated:
  by: "claude/opus-5.5"
  at: "2026-11-27T00:00:00Z"
sources:
  - id: design
    resource: "DESIGN.md"
    title: "nasa-mcp design"
    author: "team:nasa-mcp"
status: stable
---

<!--
SPDX-FileCopyrightText: 2026 Tyson Lee Swetnam
SPDX-License-Identifier: CC-BY-4.0
-->

# Contributing

```bash
uv sync --extra dev --extra docs
uv run ruff check src tests scripts && uv run ruff format --check src tests scripts
uv run mypy --strict src
uv run pytest --cov
uv run python scripts/record_fixtures.py check
uv run python scripts/gen_tools_reference.py && uv run python scripts/gen_config_reference.py
uv run python scripts/gen_llms_txt.py && uv run python scripts/okf_validate.py docs
uv run zensical build --clean --strict
```

* Every source file starts with SPDX lines (`SPDX-FileCopyrightText`, `SPDX-License-Identifier:
  MIT`); documentation pages carry a `CC-BY-4.0` SPDX comment.
* Python 3.11+, PEP 8, type hints, `mypy --strict`. Upstream URLs live only in
  `providers/catalog.py` and the tool modules.
* **Never write an API key value** into code, docs, fixtures, logs or commit messages; use
  placeholders such as `<your-api-key>`.
* Docs are an OKF v0.2 bundle: frontmatter with `type`, `generated`, `sources`, `status`; service
  facts carry `stale_after`; never add `verified:`. Log changes in `docs/log.md`. `llms.txt`,
  `llms-full.txt`, the tool reference and the configuration table are generated and committed.
* Commit subjects start with `FIX:`, `FEATURE:`, `REFACTOR:`, `DOCS:`, `CLEANUP:`, `MODERNIZE:` or
  `UPDATE:`; the body says what, why and how it was tested.
* CI (`.github/workflows/ci.yml`, `docs.yml`): lint, types and hermetic tests on Python 3.11-3.13
  and a macOS job, the fixture policy check, the MCP conformance job with a grep for unused MCP features, docs checks
  (generated files in sync, OKF validation, `zensical build --strict`) and a live (`network`) job
  that does not run on pull requests. Actions are pinned by commit SHA.
