Quickstart: MCP (AI Agents)
Connect your AI coding agent to appgrammar in 3 steps.
1. Get an MCP Token
Sign in at appgrammar.com and go to MCP Setup in the sidebar. Generate a new token and copy it.
2. Configure Your Agent
Add appgrammar to your agent's MCP configuration:
Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"appgrammar": {
"url": "https://appgrammar.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_TOKEN"
}
}
}
}
Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"appgrammar": {
"url": "https://appgrammar.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_TOKEN"
}
}
}
}
3. Create and Execute Your First Appgrammar
Tell your agent:
Create an appgrammar for a task management API with TypeScript and PostgreSQL, then execute it.
Your agent will:
- Call
appgrammar_createto generate a 5-step plan - Submit each step result via
appgrammar_create_submit - Once ready, call
appgrammar_startto get the first execution step - Work through each step via
appgrammar_nextuntildn: true
What Happens During Creation
The 5-step creation pipeline generates:
| Step | Output |
|---|---|
| 1. Architecture | Module graph, dependencies, technology choices |
| 2. Design System | UI framework, colors, typography, component patterns |
| 3. Task DAG | Ordered build steps with parallel groups |
| 4. File Registry | Every file path with exports and dependencies |
| 5. Enrichment | Compressed specifications for each step |
What Happens During Execution
Each call to appgrammar_next returns a stage containing one or more parallel groups. Groups within a stage can run concurrently. Steps within a group run sequentially.
Stage 0: [Group A: step 1, step 2] [Group B: step 1]
Stage 1: [Group C: step 1, step 2, step 3]
Stage 2: [Group D: step 1]
Each step includes:
- File paths to create or modify
- Compressed specification describing the implementation
- Context from previous steps
- Registry of all project files
Team Connections (Optional)
If you're part of a team, you can add a team-scoped connection so your team's conventions are automatically applied to every appgrammar you build:
Claude Code
claude mcp add --transport http appgrammar-myteam https://appgrammar.com/mcp \
--header "Authorization: Bearer YOUR_MCP_TOKEN" \
--header "X-Team-Id: YOUR_TEAM_UUID"
Cursor / VS Code
Add "X-Team-Id": "YOUR_TEAM_UUID" to the headers object and change the key from appgrammar to appgrammar-myteam.
The MCP Setup page generates these snippets for you -- just select your team in the team scope selector.
See MCP Token Management for all IDE configurations.
Next Steps
- Core Concepts — Understand the execution model in detail
- MCP Tools Reference — Full reference for all 25+ tools
- Tool Operations Guide — Learn to breed, splice, and transform appgrammars