biz.dfch.SpecMgr
Provides a tool to fetch content from Confluence instances using bearer-token authentication, with requests filtered to a configured base URL.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@biz.dfch.SpecMgrlist all architecture decision records"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
biz.dfch.SpecMgr
An artifact manager for system specifications.
This project is an MCP server that you can use to manage different specification artifacts.
At this time, we have these artifact types:
Architecture Decision Record (ADR) (deprecated, will be phased out, use DEC instead)
Decision (DEC)
Feature (FEAT)
Goal (GOL)
Problem Statement (PRB)
Question and Answer (QA)
Requirement (REQ)
Risk (RSK)
Standard Operating Procedure (SOP)
System Requirements Specification (SYSRS)
Task List (TSK)
Use Case (UC)
Verification Case Record (VCR)
See MCP Server and docs/MCP.md for details.
The MCP server (and the management CLI) are optional. You install them as "extras" (see Installation).
Table of Contents
Related MCP server: mcp-memoria
Installation
As a library only (no CLI, no MCP server):
pip install biz-dfch-specmgrWith the CLI:
pip install "biz-dfch-specmgr[cli]"With the MCP server:
pip install "biz-dfch-specmgr[mcp]"Or with uv:
uv add "biz-dfch-specmgr[cli,mcp]"CLI Usage
With the CLI you can generate schema and documentation. We use these commands
in pre-commit hooks and ci.yml.
No domain document-management commands (create/update/status/etc.) exist
in the CLI yet — those are currently MCP-only, see
MCP Server. The CLI covers version, mcp (below), and a
handful of cross-cutting/doc-generation commands (specmgr --help for the
full list).
specmgr versionMCP Server
Requires the mcp extra. The server exposes resources, tools, and prompts
for document management, plus cross-cutting utilities (e.g. markdown
formatting).
The full, up-to-date list of every resource, resource template, tool, and
prompt — with parameters, MIME types, and descriptions — lives in
docs/MCP.md. That document generated from the live server
registration by specmgr mcp-docs and kept in sync by a pre-commit hook and
a CI check.
Environment Variables
Every document type stores its .md files in a base directory on disk —
the file is always the source of truth, re-read and re-parsed on every
tool call, so hand-editing a file between calls is safe.
ADRs: base directory defaults to
docs/adr, configurable via theSPECMGR_ADR_DIRenvironment variable. This is ADR-specific and not shared with other document types.Requirements (REQ) and future document types: share one root directory, configurable via the
SPECMGR_DOCS_DIRenvironment variable (defaultdocs), with each type's own subdirectory appended automatically (e.g.docs/reqfor requirements).Features (FEAT): base directory defaults to
.specmgr/feat, configurable via theSPECMGR_FEAT_DIRenvironment variable. This is FEAT-specific, like ADRs above, and not shared viaSPECMGR_DOCS_DIR.The
confluence_fetchtool (renamed fromwebfetch; bearer-authenticated, URL-filtered HTTP GET, intended primarily for Confluence instances using PAT authentication) requires two environment variables:SPECMGR_CONFLUENCE_BASE_URL(the base URL requested URLs must case-insensitively start with) andSPECMGR_CONFLUENCE_BEARER(the bearer token sent as theAuthorizationheader). Both must be set or the tool raises an error; there are no defaults.
All of the base directories above are resolved relative to the MCP server
process's own current working directory unless overridden by their env var
(or, for the shared SPECMGR_DOCS_DIR root, unless the server was started
with --directory/uv run --directory targeting your project). If that
CWD is not what you expect — e.g. after adding specmgr to an MCP host
per Add to OpenCode below — read the specmgr://config
resource to see every domain's actually-resolved absolute base directory
and whether its env var is explicitly set, without needing shell access to
the server's host.
Start the MCP Server
Start the server with the mcp command:
specmgr mcpBy default it runs over stdio, for MCP hosts that launch it as a
subprocess (see Add to OpenCode below). It can also
run over SSE/network:
specmgr mcp --transport sse --host localhost --port 8000Or over the spec-current streamable-http transport, which replaces the
legacy/deprecated sse transport for HTTP deployments:
specmgr mcp --transport streamable-http --host localhost --port 8000Option | Env var | Default | Description |
|
|
| Transport mode: |
|
|
| Bind address (SSE/streamable-http mode only) |
|
|
| TCP port (SSE/streamable-http mode only) |
Add to OpenCode
To add the specmgr MCP server to your OpenCode configuration:
Open your OpenCode config file (typically
~/.config/opencode/opencode.jsonor~/.config/opencode/opencode.jsonc)Add a configuration to the
mcpsection (and use it viastdio).A bare
uvx --from biz-dfch-specmgr[mcp] specmgr mcpcommand with no--directoryand noSPECMGR_*_DIRenv vars is unsafe: the server resolves every base directory (docs,docs/adr,.specmgr/feat, ...) relative to its own process's current working directory, which an MCP host is free to launch from anywhere — not necessarily your project root. Pick one of the two options below instead of the plain form:Option A — pin the working directory with
--directory(a globaluv/uvxflag, so it must come before--from):"specmgr": { "type": "local", "enabled": true, "command": [ "uvx", "--directory", "<path-to-your-project>", "--from", "biz-dfch-specmgr[mcp]", "specmgr", "mcp" ] }Option B — set the directory env vars explicitly instead of (or in addition to)
--directory:"specmgr": { "type": "local", "enabled": true, "command": [ "uvx", "--from", "biz-dfch-specmgr[mcp]", "specmgr", "mcp" ], "environment": { "SPECMGR_DOCS_DIR": "<path-to-your-project>/docs", "SPECMGR_ADR_DIR": "<path-to-your-project>/docs/adr", "SPECMGR_FEAT_DIR": "<path-to-your-project>/.specmgr/feat" } }Either option (or both together) makes the resolved base directories independent of wherever the MCP host happens to launch the server from. Whichever you choose, you can confirm it worked by reading the
specmgr://configresource, which reports the actually-resolved absolute base directory for every domain and whether its env var is explicitly set.Save the file and restart OpenCode
Development
Install dev dependencies
uv sync --all-extrasInstall pre-commit hooks (one-time)
uv run --frozen pre-commit installuv sync only installs Python dependencies into the venv — it never
registers the hooks from .pre-commit-config.yaml with git, so run
this once per clone before your first commit.
Run linters
uv run --frozen ruff format --check
uv run --frozen ruff check
uv run --frozen pylint $(git ls-files '*.py')Run tests
uv run --frozen pytest -n auto --cov=src --cov-report=Testing
You can exercise the MCP server directly with the MCP Inspector, in either its CLI (scriptable) or TUI (interactive terminal) client.
Prerequisites
The
mcpextra installed (see Installation), so.venv/bin/specmgrexists.npx(ships with Node.js, version 22.19.0 or newer) — no separate Inspector install is required, it runs on demand vianpx @modelcontextprotocol/inspector.
Point the Inspector at the venv's specmgr binary directly (rather than at
uv run specmgr mcp) so none of uv run's own flags (e.g. --frozen) are
mistaken for Inspector flags:
npx @modelcontextprotocol/inspector --tui .venv/bin/specmgr mcp
npx @modelcontextprotocol/inspector --cli .venv/bin/specmgr mcp --method tools/listCLI examples
Each CLI invocation connects, runs one request, prints the result, and exits — useful for scripting or a quick smoke test.
Get the specmgr://version resource:
npx @modelcontextprotocol/inspector --cli .venv/bin/specmgr mcp \
--method resources/read --uri specmgr://versionList task lists via the list_tsk tool:
npx @modelcontextprotocol/inspector --cli .venv/bin/specmgr mcp \
--method tools/call --tool-name list_tskGet one task list via the get_tsk tool (replace <id> with a real task
list id from the list_tsk output above):
npx @modelcontextprotocol/inspector --cli .venv/bin/specmgr mcp \
--method tools/call --tool-name get_tsk --tool-arg id=<id>Add --format json to any of the above to get machine-readable output,
e.g. piped into jq.
Connecting with the TUI
npx @modelcontextprotocol/inspector --tui .venv/bin/specmgr mcpThis launches the server as an ad-hoc stdio target and opens the terminal
UI with it preselected (unlike the CLI, the TUI has no --server <name>
flag — it lists whichever servers are available and you pick one, though
with a single ad-hoc target there is nothing else to pick). Press c to
connect, then use the tabs to explore:
t— Tools tab: browse and call tools (e.g.get_tsk) with a form-based input.r— Resources tab: browse and read resources (e.g.specmgr://version,specmgr://iso25010).m— Prompts tab: list and render prompts.p— Protocol tab: raw JSON-RPC request/response history, useful for debugging.o— Console tab:stderrfrom the connectedspecmgr mcpprocess (tracebacks land here).c/d— connect / disconnect;EscorCtrl+C— exit.
The TUI requires a real TTY (raw-mode support) and does not run in a headless CI job — use the CLI client there instead.
Make a Release
The normative release procedure is the SOP
Perform a release of biz.dfch.SpecMgr
(SOP 98537416). Where this section, the script, or the command ever
disagree with the SOP, the SOP wins.
Using the OpenCode command (recommended)
/release [X.Y.Z | patch | minor | major] [--dry-run]The command drives the staged script and performs the SOP's agent-judgment
steps: it confirms the resolved version with you, curates the changelog's
[Unreleased] section, pauses at the merge gate before dev is merged
into main, and triages failures without ever auto-retrying.
Using the script directly
Each SOP step maps to a deterministic, idempotent stage (the SOP carries a manual fallback command for every step):
scripts/release.sh resolve minor # print the target version (e.g. 0.15.0); no mutation
scripts/release.sh precheck 0.15.0 # fail-fast pre-release checks
scripts/release.sh bump 0.15.0 # pyproject.toml + uv.lock
scripts/release.sh changelog 0.15.0 # [Unreleased] -> dated section
scripts/release.sh commit-push 0.15.0 # 3-file release commit, push dev, wait for CI
scripts/release.sh pr-create 0.15.0 # dev->main release PR, wait for checks (no merge)
scripts/release.sh pr-merge 0.15.0 # ff-only merge (after maintainer go-ahead)
scripts/release.sh tag-push 0.15.0 # tag on main, push the tag, back to dev
scripts/release.sh publish-wait 0.15.0 # the four publish.yml jobs
scripts/release.sh release-notes 0.15.0 # verify the release + set the GH release notes
scripts/release.sh status 0.15.0 # where does this release stand?
scripts/release.sh all 0.15.0 # the whole chain, TTY only (interactive merge gate)Changelog curation (SOP step 3) is an agent or manual step: the
changelog stage only moves the already-curated [Unreleased] section
into its dated form.
Manual fallback
Follow the SOP step by step — each step carries a Manual fallback
paragraph. The essentials: bump the version in pyproject.toml and
move the [Unreleased] section of CHANGELOG.md into a new dated
## [x.y.z] - YYYY-MM-DD section; uv lock; commit exactly
pyproject.toml + uv.lock + CHANGELOG.md as
chore(release): bump version to vX.Y.Z and push to dev; once CI is
green, open the dev → main pull request and merge it
fast-forward-only (git merge --ff-only dev — never a merge commit or
squash: main must stay a strict ancestor of dev); then create
git tag vX.Y.Z on main, push the tag, and wait for the publish
workflow.
Note: .github/workflows/publish.yml handles the rest of the release
automatically once the tag above is pushed — it builds and publishes the
sdist/wheel to TestPyPI then PyPI via Trusted Publishing (OIDC, no
stored token), creates the matching GitHub Release with the built
artifacts attached, and publishes server.json (repo root, the MCP
Registry publisher manifest — see the
server.json format spec)
to the MCP Registry
via mcp-publisher/GitHub OIDC. biz-dfch-specmgr is live on
PyPI and in the
MCP Registry
as of v0.1.0.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read-only MCP server over the APIs.io catalog — discover APIs, providers, tags & artifacts.
MCP server for Product Management
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for innovationlab documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that gives LLM agents structured, safe, and traceable access to engineering project documentation stored in Markdown/Git repositories, enabling management of requirements, decisions, tests, tasks, and impact analysis.1418MIT
- FlicenseNot gradedqualityCmaintenanceShared project memory MCP server for storing and retrieving technical decisions, lessons learned, ADRs, and cross-links between projects.-
- AlicenseNot gradedqualityCmaintenanceMCP server for managing an OKF markdown knowledge base, enabling AI agents to query, read, write, and auto-sync architectural decisions and rules via Git.MIT
- AlicenseNot gradedqualityAmaintenanceThis MCP server enables AI agents to manage artifacts across sessions by providing tools for searching, retrieving, and registering entries in a persistent ledger, ensuring consistency and traceability of agent outputs.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dfch/biz.dfch.SpecMgr'
If you have feedback or need assistance with the MCP directory API, please join our Discord server