@oneqode/pattern-store-mcp
v1.0.0
Published
Pattern Store MCP for Cracked Jacked Claude - Stores and retrieves code patterns, conventions, and learnings
Maintainers
Readme
Pattern Store MCP 🧩
The Pattern Store MCP (Model Context Protocol) server stores and retrieves code patterns, conventions, and project-specific learnings for the Cracked Jacked Claude framework.
Features
- Pattern Storage: Store code patterns with metadata (category, language, quality score)
- Semantic Search: Search patterns by query, category, language, or quality
- Quality Tracking: Track and update pattern quality scores
- Usage Analytics: Track pattern usage frequency
- Category Management: Organize patterns by categories
Installation
# Global installation
npm install -g @oneqode/pattern-store-mcp
# Or use via npx
npx @oneqode/pattern-store-mcpUsage with Claude
Add to your .claude.json:
{
"mcpServers": {
"pattern-store": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@oneqode/pattern-store-mcp@latest"],
"description": "Pattern storage for code conventions and learnings"
}
}
}Available Tools
store_pattern
Store a new code pattern or convention.
pattern_store.store_pattern({
name: "error-boundary-react",
category: "react",
language: "typescript",
pattern: "class ErrorBoundary extends React.Component<Props, State> {...}",
description: "React error boundary pattern for catching component errors",
tags: ["error-handling", "react", "components"],
quality_score: 9
})search_patterns
Search for patterns by query, category, or language.
pattern_store.search_patterns({
query: "error handling",
category: "react",
min_quality: 7
})get_pattern
Get a specific pattern by name.
pattern_store.get_pattern({
name: "error-boundary-react"
})update_quality
Update the quality score of a pattern based on usage experience.
pattern_store.update_quality({
name: "error-boundary-react",
quality_score: 10,
reason: "Works perfectly in production"
})list_categories
List all available pattern categories with statistics.
pattern_store.list_categories()Pattern Categories
- architecture: System design patterns
- testing: Test patterns and strategies
- security: Security best practices
- performance: Performance optimization patterns
- react: React-specific patterns
- node: Node.js patterns
- typescript: TypeScript patterns
- error-handling: Error handling strategies
- api: API design patterns
- database: Database patterns
Storage
Patterns are stored in ~/.pattern-store/patterns.json as a JSON file for simplicity and portability.
Development
# Install dependencies
npm install
# Build
npm run build
# Development mode
npm run devLicense
MIT © OneQode
