UW Blueprint SOW Document Generator
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
UW Blueprint SOW Document Generator
An MCP server that formats Copilot-approved Statement of Work content into a
UW Blueprint-branded .docx, callable as a tool from a Copilot Studio chatbot. The
chatbot drafts and workshops section content conversationally; this server's only job is
guaranteeing the final document matches house formatting exactly.
Full architecture, security design, and rationale: see the implementation plan at
C:\Users\rohan\.claude\plans\c-users-rohan-downloads-sows-s26-202609-velvet-moon.md.
Project layout
src/mcp_server/ MCP tool surface, auth, storage, config
src/formatting_engine/ Content-block -> python-docx rendering
templates/ master_template.docx (built, not hand-edited)
scripts/ One-time template-authoring tools
assets/fonts/ Poppins + Source Sans Pro .ttf source files
tests/unit, tests/integration
infra/main.bicep Azure deployment (secondary priority, review before applying)Related MCP server: Word Document MCP Server
Setup
python -m venv .venv
.venv/Scripts/pip install -e ".[dev]"
cp .env.example .envBuild the master template
Only needed once, or after a branding change. Requires the font files already staged in
assets/fonts/ (Poppins extracted from a sample SOW; Source Sans Pro from Adobe's
adobe-fonts/source-sans OFL release -- see scripts/build_master_template.py for
provenance notes).
.venv/Scripts/python scripts/build_master_template.pyRun tests
.venv/Scripts/python -m pytest tests/ -vRun the server locally
With no SOW_MCP_ENTRA_TENANT_ID set and SOW_MCP_ENVIRONMENT=dev, the server starts
with DevStubTokenVerifier, which accepts exactly one fixed bearer token
(dev-local-token) -- this proves the auth/discovery plumbing works before any real
Entra ID dependency exists. This mode must never run outside local development.
SOW_MCP_ENVIRONMENT=dev PYTHONPATH=src .venv/Scripts/python -m mcp_server.mainThen drive it with the official MCP Inspector (npx @modelcontextprotocol/inspector) or
any MCP client, authenticating with Authorization: Bearer dev-local-token.
What's built vs. what's next
Built and verified end-to-end (real MCP wire protocol, not just unit tests): the full
tool surface (start_draft, save_section, delete_section, get_draft,
list_drafts, get_document_status, list_draft_versions, restore_draft_version,
finalize_document), the structured content-block schema and its extra="forbid"
rejection behavior, the formatting engine and master template (fonts embedded, styles
matching the confirmed UW Blueprint look), local filesystem storage with ETag
concurrency and version-based draft-loss recovery, and the Entra ID token-verification
code path (tested against the dev stub; real-tenant validation still needs a live App
Registration to exercise against).
Still needed before production (plan section 8, steps 5 onward):
Create the two Entra ID App Registrations (plan section 5) and test
EntraTokenVerifieragainst a real token.Exercise
AzureBlobDraftStore/AzureBlobFinalizedStoreagainst a real storage account or Azurite -- they're written against the documented SDK APIs but untested, unlike the local store.Review and apply
infra/main.bicep, then deploy the container.Register the custom MCP connector in Copilot Studio and do one real end-to-end run.
Open
templates/master_template.docxin real Microsoft Word at least once as a final visual/corruption check -- automated tests confirm it's well-formed OOXML that python-docx round-trips cleanly, but that's not a substitute for a human look.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Generate on-brand proposals, reports, and contracts instantly. Auto-extracts brand from any URL.
Finished, on-brand .pptx and .docx from a brief - quality-gated by an agentic consulting team.
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables creation and management of Word documents from markdown content, with support for multiple templates and conversion of chat conversations to formatted Word documents.-
- AlicenseBqualityDmaintenanceEnables AI assistants to create and manipulate Microsoft Word documents programmatically with support for rich text formatting, tables, lists, headings, and find-and-replace operations.1013 npmMIT
- AlicenseBqualityDmaintenanceEnables creating professional Word documents from markdown or structured content with fast, customized formatting via natural language.71ISC
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to create, edit, and extract data from Microsoft Word documents programmatically, supporting document creation, content editing, table manipulation, parameter extraction, and template generation.1MIT