# Pattern: [Pattern Name]
**Category:** [Architecture/Design/Code/Testing/Deployment]
**Last Updated:** [YYYY-MM-DD]
**Frequency:** [How often this pattern is used]
## Problem
[What problem does this pattern solve? When would you use it?]
## Solution
[High-level description of the pattern]
## Implementation
### Structure
```
[Diagram or structure representation]
```
### Code Example
```typescript
// [Language used in project]
// Example implementation
[code example showing the pattern]
```
### Step-by-Step
1. [Step 1 with explanation]
2. [Step 2 with explanation]
3. [Step 3 with explanation]
## When to Use
[Specific scenarios where this pattern applies]
- [Scenario 1]
- [Scenario 2]
- [Scenario 3]
## When NOT to Use
[Anti-patterns or situations where this isn't appropriate]
- [Scenario where it's not suitable]
- [Reason to avoid]
## Examples in Codebase
### [Example 1]
**Location:** `path/to/file.ts:123-145`
**Description:** [How this example uses the pattern]
```typescript
[relevant code snippet]
```
### [Example 2]
**Location:** `path/to/other.ts:67-89`
**Description:** [How this example uses the pattern]
## Benefits
- [Benefit 1]
- [Benefit 2]
- [Benefit 3]
## Trade-offs
- [Trade-off 1]
- [Trade-off 2]
## Related Patterns
- [Pattern Name] - [Relationship]
- [Another Pattern] - [Relationship]
## Common Mistakes
1. **[Mistake]** - [Why it's wrong and how to avoid]
2. **[Another Mistake]** - [Explanation]
## Testing Approach
[How to test code that uses this pattern]
```typescript
// Test example
[code]
```
## References
- [Link to external documentation]
- [Link to ADR]
- [Link to discussion]
## Notes
[Any additional context]
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/ScottHoang/breadcrumbs_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server