MCP Context Template

by currenjin

390 downloads
Not rated
GitHub

About

πŸͺ± MCP Context Template is a repository designed to centrally manage AI tools (MCP) to reduce context sharing costs and improve development productivity.

Details

Author
currenjin
Downloads
390
Categories
Developer Tools

- Central context repository managed independently from projects
- Provides reference document structure for AI collaboration
- Includes examples and guides usable by multiple teams
- Ensures consistent AI usage experience across projects
- Reduces burden of duplicate context management

Set ai-context/ as a context path in your project’s .cloderc or Cursor settings, then reference guides explicitly in promptsβ€”e.g., β€œPlease refer to the following guide: [path].” Contribute via Pull Requests, writing all convention documents in Markdown, and propose significant structure changes as issues first.

MCP Context Template

Introduction

MCP Context Template is a repository designed to centrally manage AI tools (MCP) to reduce context sharing costs and improve development productivity.

It serves as a central context repository that helps modern AI tools like Claude Code and Cursor AI consistently understand your company's codebase and development practices.

Purpose

Common context repository managed independently from individual projects Providing reference document structure to improve collaboration efficiency with AI tools Containing examples and guides that can be used by different teams and organizational layers Providing consistent AI usage experience across projects Reducing the burden of duplicate context management

Directory Structure

ai-context/
β”œβ”€β”€ README.md
β”œβ”€β”€ context/
β”‚   β”œβ”€β”€ backend/
β”‚   β”‚   β”œβ”€β”€ domain-overview.md
β”‚   β”‚   β”œβ”€β”€ service-patterns.md
β”‚   β”‚   └── test-guidelines.md
β”‚   β”œβ”€β”€ frontend/
β”‚   β”‚   β”œβ”€β”€ component-structure.md
β”‚   β”‚   └── naming-convention.md
β”‚   β”œβ”€β”€ mobile/
β”‚   β”‚   └── network-layer.md
β”‚   └── shared/
β”‚       β”œβ”€β”€ business-terms.md
β”‚       └── naming-style.md
β”œβ”€β”€ prompts/
β”‚   β”œβ”€β”€ refactoring.md
β”‚   β”œβ”€β”€ test-generation.md
β”‚   └── code-review.md
└── examples/
β”œβ”€β”€ cursor-snippets.md
└── claude-usage.md

How to Use

1. Project Integration

Set ai-context/ as a context path in your project's .cloderc or Cursor settings Explicitly reference guides in Claude Code prompts with "Please refer to the following guide: [path]" Example: Request refactoring based on context/backend/service-patterns.md
Refactoring request:
Please refactor the following code according to the service patterns defined in context/backend/service-patterns.md.

[INSERT CODE]

2. Contribution Guidelines

Contribute via Pull Request Write all convention documents in Markdown Propose significant context structure changes as issues first for discussion Write context concisely and clearly for easy AI understanding

3. Prompt Writing Examples

Example from prompts/test-generation.md:

## Purpose
Claude prompt example for automating service unit test generation

Prompt

Please write unit test code for the following service class method: - Test framework: JUnit5 - Mocking: MockK - Use Given-When-Then format - Target method:
kotlin fun getUserById(id: Long): User ```

Use Cases

New developer onboarding - quickly understand code styles and patterns Automation of repetitive coding tasks - generating test code, boilerplate Code review automation - generate review comments with consistent standards Documentation support - assist in codebase documentation tasks

---

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.