Repository navigation
v0.4.0 — lifespan, MCP Context, Resources
Closes the last four optional items from the /mcp-builder best-practices checklist.
- Lifespan management —
asynccontextmanagerhook cleans uppython-gitlabHTTP sessions and the manager cache on shutdown. - MCP Context integration —
gitlab_pipeline_healthandgitlab_get_job_logare nowasync defand emitctx.info/ctx.report_progressevents. Clients with progress UIs (Claude Code, Cursor) will show a progress bar while the 30-day history is being fetched. - MCP Resources — two URI templates for clients that prefer Resources over tools:
gitlab://project/info— markdown snapshot of the default projectgitlab://project/ci-config— raw.gitlab-ci.yml
- Threading model documented — FastMCP auto-runs sync tools in a worker thread (
anyio.to_thread.run_sync), so not converting every tool toasync defis an intentional choice, not an oversight. README has a new section spelling this out.
Package health: 16 tests (9 smoke + 7 mock), ruff clean, all 23 tools + 2 resources registered.