// setup & usage
DOCS
MCP Setup (Claude Code)
Add CodeAdvisor to any project's .mcp.json:
{
"mcpServers": {
"codeadvisor": {
"url": "https://api.codeadvisor.dev/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Claude Code will automatically discover and use CodeAdvisor's
9 tools. The codeadvisor_rules prompt instructs Claude
to query schemas before generating code.
REST API
All endpoints require X-API-Key header.
Schema Lookup
curl -H "X-API-Key: YOUR_KEY" \ "https://api.codeadvisor.dev/schema/lookup?technology=terraform-aws&resource=aws_s3_bucket"
Validate Attributes
curl -X POST -H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
"https://api.codeadvisor.dev/validate/resource" \
-d '{"technology":"terraform-aws","resource":"aws_s3_bucket","attributes":["bucket","acl","fake"]}'
Version Recommendation
curl -H "X-API-Key: YOUR_KEY" \ "https://api.codeadvisor.dev/recommend?technology=pydantic"
Stack Check
curl -X POST -H "X-API-Key: YOUR_KEY" \ -H "Content-Type: application/json" \ "https://api.codeadvisor.dev/stack/check" \ -d '["terraform-aws","pydantic","react"]'
Coverage (Public)
curl "https://api.codeadvisor.dev/api/coverage"
Supported Technologies
Infrastructure
Terraform (AWS, Azure, Google, Datadog, PagerDuty), CloudFormation, AWS CDK, Pulumi, Kubernetes
AWS SDK
boto3/botocore — 18 services including S3, EC2, IAM, Lambda, ECS, RDS, DynamoDB, SQS, SNS
Python
Pydantic (v1 + v2), SQLAlchemy, FastAPI
Frontend
React 19, Next.js 15
Ops & CI
Ansible (amazon.aws), GitHub Actions (10 official actions)
Landmines
62 hand-curated patterns where LLMs consistently generate wrong code, with correct alternatives