MCP workflow
Turn a merged change into reviewed documentation
Read the merged PR and local docs, draft an update, and verify links before publishing to the documentation system.
The problem
Documentation drifts when releases ship without doc updates. An agent can compare a merged change against existing docs, propose precise edits, and catch stale references, provided it works from the actual diff rather than release notes alone.
Why these components
Each server contributes a specific capability. The workflow is the contract between them.
Repository, issue, pull request, and code search operations through GitHub's official MCP server.
Code search · Issue management · Pull request inspectionstdioFilesystem MCP ServerScoped read and write access to local directories for reference and development workflows.
Directory listing · File read · File writestdio / Streamable HTTPNotion MCP ServerSearch and read Notion pages, databases, and workspace knowledge through MCP.
Workspace search · Page retrieval · Database queriesPrerequisites
- Read access to the merged pull request and documentation repository.
- A docs directory restricted for the filesystem server.
- A target Notion page or static site build for validation.
Step-by-step
Identify user-visible changes
Read the merged PR, linked issue, and release notes. List behavior changes, new configuration, deprecations, and migrations that a user must know about.
Verify: The list separates user-visible changes from internal refactors.
Map changes to existing docs
Search the docs directory for the affected commands, options, and page titles. Identify pages that are now wrong, incomplete, or duplicated.
Verify: Each change is mapped to a specific file and section or marked as undocumented.
Draft minimal edits
Update only the affected sections. Include a runnable example or exact configuration when the change requires it, and call out version requirements.
Verify: No unrelated page is rewritten.
Validate links and examples
Build the docs, check internal links, and run the example if it is executable. Capture any validation that could not be performed instead of asserting it passed.
Verify: The build output is recorded and broken links are fixed.
Publish through review
Create a documentation PR or update the Notion page after a human review. Link the doc change back to the code change.
Verify: The published page reflects the merged behavior and links to the source change.
Generate a configuration for this workflow
Choose the client you use. The generator will preload 3 componentsand produce that client's documented format. Review every placeholder before saving.
The workflow does not imply that all components support the same transports in every client. The generator validates each entry and reports incompatibilities.
Permissions and security
- Use read-only source-repository access for analysis; publish documentation through a reviewed change.
- Do not copy secrets, internal URLs, or customer identifiers from the code change into public docs.
- Notion and GitHub permissions differ; confirm the agent cannot write outside the intended space.
Expected outcome
A precise, reviewed documentation update tied to the merged code change, with validated examples and working links.
Sources & evidence
- github.com/github/github-mcp-serverRepository · checked Oct 23, 2026 · documented
The GitHub MCP documentation describes pull request and repository content tools.
- github.com/makenotion/notion-mcp-serverRepository · checked Oct 23, 2026 · documented
Notion's MCP documentation describes page and workspace content tools.