@shaykec/ai-native-engineer
v1.0.5
Published
MCP server for AI-Native Engineer templates
Readme
AI-Native Templates MCP Server
MCP server that provides AI-Native Engineer templates for syncing to your projects.
Overview
This MCP server is a pure data provider. It fetches templates from GitHub and returns them with llmInstructions that guide the AI agent on how to handle each file. The agent (not the MCP) performs all file operations.
Prerequisites
- Node.js 20+
- gh CLI installed and authenticated:
# Install gh CLI
brew install gh # macOS
# or see https://cli.github.com/
# Authenticate
gh auth loginInstallation
Via npx (recommended)
Add to your .cursor/mcp.json:
{
"mcpServers": {
"ai-native-engineer": {
"command": "npx",
"args": ["@shaykec/ai-native-engineer"]
}
}
}Local development
cd mcp-server
npm install
npm run buildAdd to .cursor/mcp.json:
{
"mcpServers": {
"ai-native-engineer": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"]
}
}
}Usage
Single Tool: templates
This MCP exposes one tool with two modes:
List Templates
templates({ mode: "list" })Returns array of available templates with descriptions:
{
"templates": [
{ "path": "templates/root/AGENTS.md", "destPath": "AGENTS.md", "description": "Core AI agent instructions." },
{ "path": "templates/cursor-rules/security.mdc", "destPath": ".cursor/rules/security.mdc", "description": "Security rules." }
]
}Sync Templates
templates({ mode: "sync" })Returns all templates with content and handling instructions:
{
"templates": [
{
"destPath": "AGENTS.md",
"content": "# AGENTS.md - AI Agent Instructions...",
"llmInstructions": {
"purpose": "Core AI agent instructions.",
"action": "merge",
"preserve": ["Quick Reference Commands", "Project Overview"],
"update": ["Critical Rules", "Workflows"],
"hints": "Keep project-specific content, update process sections."
}
}
],
"latestCommit": "abc1234",
"globalInstructions": "For each template..."
}llmInstructions Actions
| Action | Behavior |
|--------|----------|
| create-if-missing | Only create file if it doesn't exist |
| overwrite | Replace file entirely with template |
| merge | Use preserve/update arrays to intelligently merge |
Templates Included
- Root docs: AGENTS.md, CONTRIBUTING.md, SECURITY.md, TESTING.md
- Cursor rules: always.mdc, security.mdc, testing.mdc, code-style.mdc, architecture.mdc
- Scripts: start-issue.sh, finish-issue.sh, check-ci.sh, setup.sh, etc.
- GitHub: PR template, issue templates, CI workflows
- Knowledge: DECISIONS.md, KNOWN_ISSUES.md, LESSONS_LEARNED.md
How It Works
- Templates are stored in
shayke-cohen/ai-native-engineerGitHub repo - MCP fetches templates via
gh api(uses your existing GitHub auth) - Templates are cached for 1 hour
- Agent receives templates + llmInstructions
- Agent reads existing files, applies merge logic, writes files
- No file system access needed by MCP - agent handles everything
Agent Workflow
When a user asks to sync templates:
- Agent calls
templates({ mode: "sync" }) - For each template in response:
- Read existing file at
destPath(if any) - Apply
actionfromllmInstructions - Write file using agent's file tools
- Read existing file at
- Report: X created, Y updated, Z skipped
- Remind user:
chmod +x scripts/*.sh
Source Repository
Templates: https://github.com/shayke-cohen/ai-native-engineer
Related
- ai-tester - AI-powered testing MCP server
