MCP Release Monitor
# MCP Release Monitor
A small, read-only Model Context Protocol server that gives AI clients a safe,
structured view of the latest software release. The demo is deterministic,
runs offline, and requires no credentials or paid APIs.
## Why it exists
AI assistants often need release information without receiving broad filesystem,
shell, or API access. This project exposes one narrow tool,
`get_latest_release`, and returns only six allow-listed public fields:
- `release_id`
- `version`
- `released_at`
- `summary`
- `changes`
- `source`
The packaged fixture represents a fictional product release. In production, the
same domain boundary could sit in front of GitHub Releases, an internal catalog,
or another approved source without changing the MCP contract.
```mermaid
flowchart LR
subgraph local["Offline execution · no network · no credentials"]
C["Installed client"]
T["MCP over stdio"]
S["FastMCP server"]
D["Python domain logic"]
F[("Local JSON fixture")]
V["Allow-list + strict schema"]
C --> T
T --> S
S --> D
D --> F
F --> D
D --> S
S --> T
T --> V
V --> C
end
```
## Security properties
- Read-only, non-destructive, and idempotent MCP annotations.
- No tool arguments, credentials, network calls, or private backend access.
- Exact response schema; missing or extra fields fail closed.
- Stable errors that do not expose fixture values, environment variables,
local paths, or tracebacks.
- Sanitized observability on `stderr`: tool name, status, and duration only.
- Protocol output stays isolated on `stdout`.
## Run the demo
Requires Python 3.10 or newer.
```bash
python3 -m venv .venv
.venv/bin/python -m pip install -e ".[dev]"
.venv/bin/mcp-release-monitor-client
```
Expected output:
```json
{
"result": {
"changes": [
"Improves validation feedback for malformed release records.",
"Adds sanitized observability without identifiers or payload logging."
],
"release_id": "atlas-api-2026-10",
"released_at": "2026-10-15T12:00:00Z",
"source": "fictional packaged fixture for offline verification",
"summary": "Fictional Atlas API reliability release.",
"version": "2.4.0"
},
"tool": "get_latest_release"
}
```
The client launches the installed MCP server over `stdio`, invokes the tool,
validates the response again at the consumer boundary, and prints stable JSON.
## Verification
```bash
.venv/bin/python -m unittest discover -s tests -v
.venv/bin/python -m compileall -q src tests
.venv/bin/python -m ruff check .
.venv/bin/python -m build --wheel
```
The suite covers domain validation, real MCP protocol calls, unexpected input,
safe error behavior, sanitized telemetry, installed entry points, wheel smoke
tests, and CI policy. GitHub Actions runs the same checks on Python 3.10 and
3.12.
## Deliberate scope
This repository proves a secure MCP boundary, not live data freshness. The
fixture keeps review reproducible and free. A production adapter would add
authentication, caching, rate-limit handling, and source-specific failure
policies behind the existing domain contract.
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong one. Its purpose (fetching the latest approved release) is unambiguous.
The lone name, get_latest_release, follows a clean snake_case verb_noun convention. With only one tool there is no cross-tool pattern to confirm, so full marks are not quite warranted.
A single read-only tool is thin for something called a 'release monitor', which implies tracking, listing, or watching behavior. It is defensible if the server's scope is deliberately narrow, but the surface feels under-built.
The domain implies discovering sources, listing releases, or checking for updates, yet only a single 'get latest' operation exists. There is no way to enumerate approved sources, filter by product/version, or retrieve anything other than the newest release.