MCP ExplorerExplorer

Mcp Context Template

@currenjinon 10 months ago
3ย MIT
FreeCommunity
AI Systems
#claude#claude-ai#claude-code#context#cursor#cursor-ai#mcp#mcp-server#model-context-protocol#model-context-protocol-servers
๐Ÿชฑ MCP Context Template is a repository designed to centrally manage AI tools (MCP) to reduce context sharing costs and improve development productivity.

Overview

What is Mcp Context Template

MCP Context Template is a centralized repository designed to manage AI tools (MCP) effectively, reducing context sharing costs and enhancing development productivity.

Use cases

Use cases include guiding AI tools in code refactoring, generating tests, and conducting code reviews by providing context-specific documentation and examples.

How to use

To use MCP Context Template, set the โ€˜ai-context/โ€™ as the context path in your projectโ€™s settings. Reference specific guides in Claude Code prompts for context-aware requests, and contribute by submitting Pull Requests with clear Markdown documentation.

Key features

Key features include a common context repository independent of individual projects, a structured reference document system for improved collaboration, examples and guides for various teams, a consistent AI usage experience, and reduced duplicate context management.

Where to use

MCP Context Template is applicable in software development environments where multiple teams work on AI tools, particularly in projects requiring consistent context across different layers of an organization.

Content

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

MCP Context Template(Korean)

์†Œ๊ฐœ

MCP Context Template์€ AI ๋„๊ตฌ(MCP)๋ฅผ "์ค‘์•™ ์ง‘์ค‘์‹"์œผ๋กœ ๊ด€๋ฆฌํ•˜์—ฌ ์ปจํ…์ŠคํŠธ ๊ณต์œ  ๋น„์šฉ์„ ์ค„์ด๊ณ  ๊ฐœ๋ฐœ ์ƒ์‚ฐ์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.

Claude Code, Cursor AI ๋“ฑ ์ตœ์‹  AI ๋„๊ตฌ๋“ค์ด ์ผ๊ด€๋œ ๋ฐฉ์‹์œผ๋กœ ํšŒ์‚ฌ์˜ ์ฝ”๋“œ๋ฒ ์ด์Šค์™€ ๊ฐœ๋ฐœ ๊ด€ํ–‰์„ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋„๋ก ๋•๋Š” ์ค‘์•™ ์ปจํ…์ŠคํŠธ ์ €์žฅ์†Œ๋กœ ๊ธฐ๋Šฅํ•ฉ๋‹ˆ๋‹ค.

๋ชฉ์ 

  • ํ”„๋กœ์ ํŠธ์™€ ๋…๋ฆฝ์ ์œผ๋กœ ๊ด€๋ฆฌ๋˜๋Š” ๊ณตํ†ต ์ปจํ…์ŠคํŠธ ์ €์žฅ์†Œ
  • AI ๋„๊ตฌ์™€์˜ ํ˜‘์—… ํšจ์œจ์„ ๋†’์ด๊ธฐ ์œ„ํ•œ ์ฐธ๊ณ  ๋ฌธ์„œ ๊ตฌ์กฐ ์ œ๊ณต
  • ํŒ€๋ณ„, ๊ณ„์ธต๋ณ„๋กœ ํ™œ์šฉ ๊ฐ€๋Šฅํ•œ ์˜ˆ์‹œ์™€ ๊ฐ€์ด๋“œ ์ˆ˜๋ก
  • ํ”„๋กœ์ ํŠธ ๊ฐ„ ์ผ๊ด€๋œ AI ์‚ฌ์šฉ ๊ฒฝํ—˜ ์ œ๊ณต
  • ์ค‘๋ณต ์ปจํ…์ŠคํŠธ ๊ด€๋ฆฌ ๋ถ€๋‹ด ๊ฐ์†Œ

๋””๋ ‰ํ† ๋ฆฌ ๊ตฌ์กฐ

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

ํ™œ์šฉ ๋ฐฉ๋ฒ•

1. ํ”„๋กœ์ ํŠธ์—์„œ์˜ ํ™œ์šฉ

  • ํ”„๋กœ์ ํŠธ ๋‚ด .cloderc ๋˜๋Š” Cursor ์„ค์ •์—์„œ ai-context/๋ฅผ context path๋กœ ์ง€์ •
  • Claude Code ํ”„๋กฌํ”„ํŠธ ์ž‘์„ฑ ์‹œ "๋‹ค์Œ ๊ฐ€์ด๋“œ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”: [๊ฒฝ๋กœ]"์™€ ๊ฐ™์ด ๋ช…์‹œ์ ์œผ๋กœ ์–ธ๊ธ‰
  • ์˜ˆ์‹œ: context/backend/service-patterns.md์— ๊ธฐ๋ฐ˜ํ•œ ๋ฆฌํŒฉํ† ๋ง ์š”์ฒญ
๋ฆฌํŒฉํ† ๋ง ์š”์ฒญ:
context/backend/service-patterns.md์— ์ •์˜๋œ ์„œ๋น„์Šค ํŒจํ„ด์— ๋”ฐ๋ผ ๋‹ค์Œ ์ฝ”๋“œ๋ฅผ ๋ฆฌํŒฉํ† ๋งํ•ด ์ฃผ์„ธ์š”.

[์ฝ”๋“œ ์‚ฝ์ž…]

2. ๋ฌธ์„œ ๊ธฐ์—ฌ ๊ฐ€์ด๋“œ

  • Pull Request๋ฅผ ํ†ตํ•ด ๊ธฐ์—ฌ
  • ๋ชจ๋“  ์ปจ๋ฒค์…˜ ๋ฌธ์„œ๋Š” Markdown์œผ๋กœ ์ž‘์„ฑ
  • ํฐ ์ปจํ…์ŠคํŠธ ๊ตฌ์กฐ ๋ณ€๊ฒฝ์€ ์ด์Šˆ๋กœ ๋จผ์ € ์ œ์•ˆ ํ›„ ๋…ผ์˜
  • ์ปจํ…์ŠคํŠธ๋Š” ๊ฐ„๊ฒฐํ•˜๊ณ  ๋ช…ํ™•ํ•˜๊ฒŒ ์ž‘์„ฑํ•˜์—ฌ AI๊ฐ€ ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๊ฒŒ ๊ตฌ์„ฑ

3. ํ”„๋กฌํ”„ํŠธ ์ž‘์„ฑ ์˜ˆ์‹œ

prompts/test-generation.md ์˜ˆ์‹œ:

## ๋ชฉ์ 
์„œ๋น„์Šค ๋‹จ์œ„ ํ…Œ์ŠคํŠธ ์ž๋™ํ™”๋ฅผ ์œ„ํ•œ Claude์šฉ ํ”„๋กฌํ”„ํŠธ ์˜ˆ์‹œ

## ํ”„๋กฌํ”„ํŠธ
์„œ๋น„์Šค ํด๋ž˜์Šค์˜ ๋ฉ”์„œ๋“œ์— ๋Œ€ํ•ด ๋‹จ์œ„ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
- ํ…Œ์ŠคํŠธ ํ”„๋ ˆ์ž„์›Œํฌ: JUnit5
- ๋ชจํ‚น: MockK
- Given-When-Then ํ˜•์‹ ์‚ฌ์šฉ
- ํ…Œ์ŠคํŠธ ๋Œ€์ƒ ๋ฉ”์„œ๋“œ:

```kotlin
fun getUserById(id: Long): User

ํ™œ์šฉ ์‚ฌ๋ก€

  • ์ƒˆ๋กœ์šด ๊ฐœ๋ฐœ์ž ์˜จ๋ณด๋”ฉ - ์ฝ”๋“œ ์Šคํƒ€์ผ๊ณผ ํŒจํ„ด์„ ๋น ๋ฅด๊ฒŒ ์ดํ•ด
  • ๋ฐ˜๋ณต์ ์ธ ์ฝ”๋“œ ์ž‘์—… ์ž๋™ํ™” - ํ…Œ์ŠคํŠธ ์ฝ”๋“œ, ๋ณด์ผ๋Ÿฌํ”Œ๋ ˆ์ดํŠธ ์ƒ์„ฑ
  • ์ฝ”๋“œ ๋ฆฌ๋ทฐ ์ž๋™ํ™” - ์ผ๊ด€๋œ ๊ธฐ์ค€์œผ๋กœ ๋ฆฌ๋ทฐ ์ฝ”๋ฉ˜ํŠธ ์ƒ์„ฑ
  • ๋ฌธ์„œํ™” ์ง€์› - ์ฝ”๋“œ๋ฒ ์ด์Šค ๋ฌธ์„œํ™” ์ž‘์—… ๋ณด์กฐ

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers