milestone: v1.0.0 — MCP server, docs, release packaging - #13
Merged
Conversation
src/design_patterns_mcp/: MCPServer (mcp 2.x SDK) exposing - tools: list_patterns, get_pattern, search_patterns, run_example (sandboxed), recommend_pattern (caveats + prefer-alternative notes) - resources: catalog://index, pattern://<group>/<slug>[/<variant>] - prompts: refactor_toward, explain_pattern, choose_pattern search.py: pure-stdlib BM25 over frontmatter+prose with field weights. sandbox.py: catalog-resolved paths only, python -I subprocess, scrubbed env, temp cwd, 10s timeout, 64KB output caps. Console script python-design-patterns-mcp (stdio default, --http for Streamable HTTP). docs/mcp.md documents connection and the sandbox contract. 228 tests incl. in-memory MCP client integration and sandbox refusal tests; both transports probed live with initialize round-trips. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
README: minimal and WHY-first for someone scanning the repo on GitHub — what it is, how to read one unit, one MCP command, then the catalog table generated from frontmatter (make readme). CI fails if the table drifts. docs/: how-to-read-this-repo, verdicts, contributing, index; mcp.md landed with the server. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
- version 1.0.0 - wheel now packages patterns/ (docs + examples + tests) so the MCP server works from an installed distribution, not only a checkout - find_patterns_root falls back to the installed patterns package - verified clean-room: fresh venv + wheel -> server answers initialize, catalog loads 32 units Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Staging → main for v1.0.0: MCP server (tools/resources/prompts, sandboxed run_example, BM25 search), README rewrite with generated catalog table + CI drift check, docs pages, wheel that ships the catalog (clean-room verified).
🤖 Generated with Claude Code