-
Notifications
You must be signed in to change notification settings - Fork 59
MCP Tools Reference
Drift provides 50 MCP tools organized in a 7-layer architecture designed for efficient AI agent interaction. This architecture minimizes token usage while maximizing capability β a model for how MCP servers should be built.
Drift's MCP architecture follows key principles that make it the gold standard for AI tool design:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Layer 1: ORCHESTRATION β
β "Tell me what you want to do, I'll give you everything" β
β drift_context, drift_package_context β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 2: DISCOVERY β
β "Quick health check, what's available?" β
β drift_status, drift_capabilities, drift_projects β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 3: SURGICAL β
β "I need exactly this one thing, nothing more" β
β 12 ultra-focused tools (200-500 tokens each) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 4: EXPLORATION β
β "Let me browse and filter" β
β drift_patterns_list, drift_security_summary, etc. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 5: DETAIL β
β "Deep dive into this specific thing" β
β drift_pattern_get, drift_code_examples, etc. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 6: ANALYSIS β
β "Run complex analysis" β
β drift_test_topology, drift_coupling, drift_error_handling β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 7: GENERATION β
β "Help me write/validate code" β
β drift_suggest_changes, drift_validate_change, drift_explain β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Every tool is designed with token budgets:
| Layer | Target Tokens | Max Tokens | Purpose |
|---|---|---|---|
| Orchestration | 1000-2000 | 4000 | Comprehensive context |
| Discovery | 200-500 | 1000 | Quick status |
| Surgical | 200-500 | 800 | Precise lookups |
| Exploration | 500-1000 | 2000 | Paginated lists |
| Detail | 500-1500 | 3000 | Deep dives |
| Analysis | 1000-2000 | 4000 | Complex analysis |
| Generation | 500-1500 | 3000 | Code suggestions |
Every response follows a consistent structure:
{
"summary": "One-line description of what was found",
"data": { /* The actual payload */ },
"pagination": {
"cursor": "next_page_token",
"hasMore": true,
"totalCount": 150,
"pageSize": 20
},
"hints": {
"nextActions": ["Suggested next steps"],
"relatedTools": ["drift_tool_1", "drift_tool_2"],
"warnings": ["Important warnings"]
},
"meta": {
"requestId": "req_abc123",
"durationMs": 45,
"cached": false,
"tokenEstimate": 850
}
}- Response caching β Repeated queries return cached results
- Rate limiting β Prevents runaway tool calls
- Metrics collection β Track usage patterns
The recommended starting point. These tools understand your intent and return curated context.
The "final boss" tool. Instead of making the AI figure out which tools to call, this tool understands intent and returns everything needed.
{
"intent": "add_feature",
"focus": "user authentication",
"question": "How do I add a new auth endpoint?",
"project": "backend"
}Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
intent |
enum | Yes | What you're trying to do |
focus |
string | Yes | The area you're working with |
question |
string | No | Specific question to answer |
project |
string | No | Target a specific registered project |
Intent Options:
-
add_featureβ Adding new functionality -
fix_bugβ Fixing a bug or issue -
refactorβ Improving code structure -
security_auditβ Reviewing for security issues -
understand_codeβ Learning how something works -
add_testβ Adding test coverage
Returns:
{
"summary": "Adding feature in 'user authentication'. Found 5 relevant patterns...",
"relevantPatterns": [
{
"id": "auth-jwt-pattern",
"name": "JWT Authentication",
"category": "auth",
"why": "Directly related to 'authentication' - this is the established pattern",
"example": "// Code example from your codebase",
"confidence": 0.92,
"locationCount": 12
}
],
"suggestedFiles": [
{
"file": "src/auth/login.ts",
"reason": "Matches focus area",
"patterns": ["JWT Authentication", "Error Handling"],
"risk": "medium"
}
],
"guidance": {
"keyInsights": [
"This codebase has established API patterns - follow them for consistency",
"Error handling patterns exist - use the established error types"
],
"commonMistakes": [
"Don't create new patterns when existing ones apply",
"Remember to add appropriate logging"
],
"decisionPoints": [
"Decide if this feature needs its own module or fits in existing structure"
]
},
"warnings": [
{
"type": "data_access",
"message": "src/auth/login.ts accesses sensitive data: users.password_hash",
"severity": "warning"
}
],
"confidence": {
"patternCoverage": 80,
"dataFreshness": "Current session",
"limitations": []
},
"deeperDive": [
{
"tool": "drift_code_examples",
"args": { "pattern": "auth-jwt-pattern", "maxExamples": 3 },
"reason": "See more examples of 'JWT Authentication' pattern"
}
],
"semanticInsights": {
"frameworks": ["Express", "Prisma"],
"entryPoints": [
{ "name": "login", "file": "src/auth/login.ts", "type": "route", "path": "/api/auth/login" }
],
"dataAccessors": [
{ "name": "findUser", "file": "src/repositories/user.ts", "tables": ["users"] }
]
},
"constraints": [
{
"id": "auth-required",
"name": "Authentication Required",
"enforcement": "error",
"guidance": "All /api/* routes must use @RequireAuth middleware"
}
]
}Get context for a specific package or module.
{
"package": "src/auth",
"depth": "detailed"
}Quick, lightweight tools for health checks and capability discovery.
Codebase health snapshot. Always fast, always lightweight.
{}Returns:
{
"summary": "47 patterns (12 approved), health score 72/100",
"data": {
"patterns": {
"total": 47,
"approved": 12,
"discovered": 32,
"ignored": 3
},
"categories": {
"api": 12,
"auth": 8,
"errors": 15,
"data-access": 12
},
"healthScore": 72,
"criticalIssues": []
}
}List all Drift capabilities and when to use each tool.
{}Returns: Organized guide to all 50 available tools.
Manage registered projects for multi-project workflows.
{
"action": "list"
}Actions: list, info, switch, recent, register
Initialize and configure drift for a project.
{
"action": "status"
}Actions: status, init, scan, callgraph, full
Manage telemetry settings. Telemetry helps improve pattern detection by sharing anonymized data (no source code is ever sent).
{
"action": "status"
}Actions:
-
statusβ Check current telemetry settings -
enableβ Enable telemetry (opt-in to help improve Drift) -
disableβ Disable telemetry
Privacy Guarantees:
- No source code is ever sent
- Only pattern signatures (SHA-256 hashes), categories, and confidence scores
- Aggregate statistics (pattern counts, languages detected)
- Anonymous installation ID (UUID, not tied to identity)
Returns:
{
"success": true,
"enabled": true,
"config": {
"sharePatternSignatures": true,
"shareAggregateStats": true,
"shareUserActions": false,
"installationId": "uuid-here",
"enabledAt": "2026-02-03T12:00:00Z"
},
"message": "Telemetry enabled. Thank you for helping improve Drift!"
}Curate patterns: approve, ignore, or review with mandatory verification. Prevents AI hallucination through grep-based evidence checking.
{
"action": "review",
"category": "api",
"minConfidence": 0.7
}Actions:
-
reviewβ Get patterns pending review with evidence requirements -
verifyβ Verify a pattern exists (REQUIRED before approve for non-high-confidence) -
approveβ Approve a verified pattern -
ignoreβ Ignore a pattern with reason -
bulk_approveβ Auto-approve patterns with confidence >= 0.95 -
auditβ View curation decision history
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
enum | Yes | Action to perform |
patternId |
string | For verify/approve/ignore | Pattern ID to act on |
category |
string | No | Filter by pattern category |
minConfidence |
number | No | Minimum confidence filter |
maxConfidence |
number | No | Maximum confidence filter |
limit |
number | No | Max patterns to return (default: 20) |
evidence |
object | For verify/approve | Evidence for verification |
ignoreReason |
string | For ignore | Why ignoring (required) |
approvedBy |
string | No | Who approved |
confidenceThreshold |
number | No | Min confidence for bulk_approve (default: 0.95) |
dryRun |
boolean | No | Preview bulk_approve without changes |
Evidence Requirements (by confidence level):
- High (>=0.85): 1 file, no snippet required
- Medium (>=0.65): 2 files, snippets required
- Low (>=0.45): 3 files, snippets required
- Uncertain (<0.45): 5 files, snippets required
Workflow:
- Use
action="review"to see pending patterns - For each pattern, grep the codebase to find evidence
- Use
action="verify"with evidence to validate - If verified, use
action="approve"to approve
Example - Review patterns:
{
"action": "review",
"category": "api",
"minConfidence": 0.7,
"limit": 10
}Example - Verify with evidence:
{
"action": "verify",
"patternId": "api-rest-controller",
"evidence": {
"files": ["src/api/users.ts", "src/api/posts.ts"],
"snippets": ["export class UsersController", "export class PostsController"],
"reasoning": "Found consistent controller pattern across API files"
}
}Example - Bulk approve high-confidence:
{
"action": "bulk_approve",
"confidenceThreshold": 0.95,
"dryRun": true
}12 ultra-focused tools designed for minimal token usage. Each tool does exactly one thing.
Get function signature without reading entire files.
{
"symbol": "handleLogin",
"file": "src/auth/login.ts",
"includeDocs": true
}Returns:
{
"summary": "Found function 'handleLogin' in src/auth/login.ts:45",
"data": {
"found": true,
"signatures": [{
"file": "src/auth/login.ts",
"line": 45,
"kind": "function",
"signature": "export async function handleLogin(email: string, password: string): Promise<User>",
"parameters": [
{ "name": "email", "type": "string", "required": true },
{ "name": "password", "type": "string", "required": true }
],
"returnType": "Promise<User>",
"exported": true
}]
}
}Lightweight "who calls this function" lookup.
{
"function": "validateToken",
"transitive": true,
"maxDepth": 2
}Returns:
{
"summary": "'validateToken' has 5 direct callers (public API)",
"data": {
"target": { "function": "validateToken", "file": "src/auth/token.ts", "line": 23 },
"directCallers": [
{ "function": "requireAuth", "file": "src/middleware/auth.ts", "line": 12, "callSite": 34 }
],
"transitiveCallers": [
{ "function": "handleRequest", "file": "src/api/handler.ts", "depth": 2, "path": ["validateToken", "requireAuth"] }
],
"stats": {
"directCount": 5,
"transitiveCount": 12,
"isPublicApi": true,
"isWidelyUsed": true
}
}
}Resolve correct import statements.
{
"symbols": ["User", "createUser"],
"targetFile": "src/api/users.ts"
}Quick validation before making changes.
{
"code": "export async function createUser(data: UserInput): Promise<User> { ... }",
"targetFile": "src/api/users.ts",
"kind": "function"
}Find semantically similar code.
{
"intent": "api_endpoint",
"description": "user preferences CRUD",
"scope": "src/api",
"limit": 3
}Expand type definitions.
{
"type": "User",
"depth": 2,
"file": "src/types/user.ts"
}Show recent changes in an area.
{
"area": "src/api/",
"days": 7,
"type": "feat"
}Generate test scaffolding.
{
"targetFile": "src/auth/login.ts",
"function": "handleLogin",
"type": "unit"
}Package dependencies lookup (multi-language).
{
"search": "react",
"type": "prod",
"category": "framework",
"language": "javascript"
}Middleware pattern lookup.
{
"type": "auth",
"framework": "express",
"limit": 20
}React/Vue hooks lookup.
{
"component": "UserProfile",
"file": "src/components/UserProfile.tsx"
}Error types and handling gaps.
{
"function": "handlePayment",
"file": "src/payments/handler.ts"
}Paginated listing tools for browsing and filtering.
List patterns with summaries.
{
"categories": ["api", "auth"],
"status": "approved",
"minConfidence": 0.8,
"search": "controller",
"limit": 20,
"cursor": "next_page_token"
}Security posture overview.
{
"focus": "critical",
"limit": 10
}Focus options: all, critical, data-access, auth
API contracts between frontend and backend.
{
"status": "mismatch",
"limit": 20
}Status options: all, verified, mismatch, discovered
Pattern trend analysis over time.
{
"period": "30d",
"category": "security",
"severity": "critical"
}Environment variable analysis.
{
"action": "list",
"category": "secrets"
}Deep dives into specific patterns, files, and analysis.
Complete details for a specific pattern.
{
"id": "api-rest-controller-pattern",
"includeLocations": true,
"includeOutliers": true,
"maxLocations": 20
}Real code examples for patterns.
{
"categories": ["api", "errors"],
"pattern": "error-handling-try-catch",
"maxExamples": 3,
"contextLines": 10
}List files with patterns.
{
"path": "src/api/**/*.ts",
"category": "api",
"limit": 20
}All patterns in a specific file.
{
"file": "src/api/users.controller.ts",
"category": "api"
}Analyze impact of changing a file or function.
{
"target": "src/auth/login.ts",
"maxDepth": 10,
"limit": 10
}Data reachability analysis.
{
"direction": "forward",
"location": "src/api/users.ts:42",
"maxDepth": 10,
"sensitiveOnly": true
}Or inverse:
{
"direction": "inverse",
"target": "users.password_hash",
"maxDepth": 10
}Styling DNA profile for frontend consistency.
{
"gene": "variant-handling"
}Gene options: variant-handling, responsive-approach, state-styling, theming, spacing-philosophy, animation-approach
Framework wrapper detection.
{
"category": "data-fetching",
"minConfidence": 0.5,
"minClusterSize": 2
}Complex analysis tools. Some require pre-built data.
Note: Run build commands first:
drift test-topology builddrift coupling builddrift error-handling build
Test-to-code mapping analysis.
{
"action": "affected",
"files": ["src/auth/login.ts", "src/auth/logout.ts"]
}Actions: status, coverage, uncovered, mocks, affected, quality
Module dependency analysis.
{
"action": "cycles",
"minSeverity": "warning"
}Actions: status, cycles, hotspots, analyze, refactor-impact, unused-exports
Error handling pattern analysis.
{
"action": "gaps",
"minSeverity": "medium"
}Actions: status, gaps, boundaries, unhandled, analyze
Analyze constants, enums, and exported values.
{
"action": "secrets",
"severity": "high"
}Actions: status, list, get, usages, magic, dead, secrets, inconsistent
Run quality gates on code changes.
{
"files": ["src/routes/users.ts"],
"policy": "strict",
"gates": "pattern-compliance,security-boundary",
"format": "github"
}Policies: default, strict, relaxed, ci-fast
Gates: pattern-compliance, constraint-verification, regression-detection, impact-simulation, security-boundary, custom-rules
Architectural decision records.
{
"action": "list",
"status": "active"
}Architectural constraints.
{
"action": "list"
}Simulate changes before making them.
{
"file": "src/api/users.ts",
"change": "add new endpoint"
}AI-assisted code generation and validation.
AI-guided fix suggestions.
{
"target": "src/api/users.ts",
"issue": "outlier",
"patternId": "api-rest-controller",
"maxSuggestions": 3
}Issue types: outlier, security, coupling, error-handling, test-coverage, pattern-violation
Validate proposed changes against patterns.
{
"file": "src/api/users.ts",
"content": "// new code here",
"strictMode": false
}Or with diff:
{
"file": "src/api/users.ts",
"diff": "--- a/file\n+++ b/file\n...",
"strictMode": true
}Comprehensive code explanation.
{
"target": "src/auth/middleware.ts",
"depth": "comprehensive",
"focus": "security"
}Depth options: summary, detailed, comprehensive
Focus options: security, performance, architecture, testing
All 9 languages have dedicated MCP tools for language-specific analysis.
TypeScript/JavaScript-specific analysis.
{
"action": "status",
"path": "src/",
"framework": "express",
"limit": 50
}Actions:
-
statusβ Project overview (files, frameworks, stats) -
routesβ HTTP routes (Express, NestJS, Next.js, Fastify) -
componentsβ React components (functional, class) -
hooksβ React hooks usage (builtin, custom) -
errorsβ Error handling patterns (try-catch, boundaries) -
data-accessβ Database patterns (Prisma, TypeORM, Drizzle, Sequelize, Mongoose) -
decoratorsβ Decorator usage (NestJS, TypeORM)
Python-specific analysis.
{
"action": "routes",
"framework": "fastapi"
}Actions:
-
statusβ Project overview -
routesβ HTTP routes (Flask, FastAPI, Django, Starlette) -
errorsβ Error handling patterns (try-except, custom exceptions) -
data-accessβ Database patterns (Django ORM, SQLAlchemy, Tortoise, Peewee) -
decoratorsβ Decorator usage -
asyncβ Async patterns (async/await, asyncio)
Java-specific analysis.
{
"action": "annotations",
"framework": "spring"
}Actions:
-
statusβ Project overview -
routesβ HTTP routes (Spring MVC, JAX-RS, Micronaut, Quarkus) -
errorsβ Error handling patterns (try-catch, exception handlers) -
data-accessβ Database patterns (Spring Data JPA, Hibernate, JDBC, MyBatis) -
annotationsβ Annotation usage (@RestController, @Service, etc.)
PHP-specific analysis.
{
"action": "traits",
"framework": "laravel"
}Actions:
-
statusβ Project overview -
routesβ HTTP routes (Laravel, Symfony, Slim, Lumen) -
errorsβ Error handling patterns (try-catch, custom exceptions) -
data-accessβ Database patterns (Eloquent, Doctrine, PDO) -
traitsβ Trait definitions and usage
Go-specific analysis.
{
"action": "goroutines"
}Actions:
-
statusβ Project overview -
routesβ HTTP routes (Gin, Echo, Chi, Fiber, net/http) -
errorsβ Error handling patterns -
interfacesβ Interface implementations -
data-accessβ Database patterns (GORM, sqlx, database/sql) -
goroutinesβ Concurrency patterns
Rust-specific analysis.
{
"action": "async"
}Actions:
-
statusβ Project overview -
routesβ HTTP routes (Actix, Axum, Rocket, Warp) -
errorsβ Error handling (Result, thiserror, anyhow) -
traitsβ Trait implementations -
data-accessβ Database patterns (SQLx, Diesel, SeaORM) -
asyncβ Async patterns and runtime usage
C++-specific analysis.
{
"action": "memory"
}Actions:
-
statusβ Project overview -
classesβ Class/struct analysis with inheritance -
memoryβ Memory management (smart pointers, RAII) -
templatesβ Template classes and functions -
virtualβ Virtual functions and polymorphism
WPF (C#) specific analysis.
{
"action": "bindings"
}Actions:
-
statusβ Project overview -
bindingsβ XAML data bindings -
mvvmβ MVVM compliance check -
datacontextβ DataContext resolution -
commandsβ ICommand implementations
Available categories for filtering:
| Category | Description |
|---|---|
api |
REST endpoints, GraphQL resolvers |
auth |
Authentication, authorization |
security |
Security patterns, validation |
errors |
Error handling patterns |
logging |
Logging, observability |
data-access |
Database queries, ORM usage |
config |
Configuration patterns |
testing |
Test patterns, mocks |
performance |
Caching, optimization |
components |
UI components |
styling |
CSS, styling patterns |
structural |
Code organization |
types |
Type definitions |
accessibility |
A11y patterns |
documentation |
Doc patterns |
Cortex V2 introduces intelligent memory tools for learning, retrieval, and causal understanding.
Get causal narrative explaining WHY something exists.
{
"intent": "understand_code",
"focus": "authentication",
"maxDepth": 3
}Returns: Human-readable narrative tracing causal chains.
Health overview with recommendations.
{}Returns:
{
"summary": "Memory system healthy. 47 memories, 0.78 avg confidence",
"data": {
"totalMemories": 47,
"byType": { "tribal_knowledge": 20, "pattern_rationale": 15, ... },
"averageConfidence": 0.78,
"validationBacklog": 5,
"healthScore": 85
},
"recommendations": [
"5 memories need validation",
"Consider consolidating similar memories"
]
}Get memories for current context with token efficiency.
{
"intent": "add_feature",
"focus": "authentication",
"maxTokens": 2000,
"compressionLevel": 2,
"sessionId": "session_abc123"
}Compression levels: 0 (IDs only), 1 (one-liners), 2 (with examples), 3 (full detail)
Search with session deduplication.
{
"query": "password hashing",
"types": ["tribal_knowledge", "pattern_rationale"],
"minConfidence": 0.5,
"sessionId": "session_abc123",
"limit": 10
}Add memory with automatic causal inference.
{
"type": "tribal_knowledge",
"content": "Always use bcrypt for password hashing",
"source": "security_audit",
"context": {
"file": "src/auth/password.ts",
"relatedMemories": ["mem_security_audit"]
}
}Learn from corrections (full learning pipeline).
{
"original": "Use MD5 for hashing",
"correction": "MD5 is insecure. Use bcrypt.",
"correctCode": "const hash = await bcrypt.hash(password, 10);",
"context": {
"file": "src/auth.ts",
"intent": "fix_bug"
}
}Returns: Created memories, extracted principles, updated confidence.
Confirm, reject, or modify memories.
{
"memoryId": "mem_abc123",
"action": "confirmed"
}Actions: confirmed, rejected, modified
For modifications:
{
"memoryId": "mem_abc123",
"action": "modified",
"newContent": "Updated guidance..."
}Comprehensive health report.
{
"includeRecommendations": true,
"includeMetrics": true
}Returns: Detailed health metrics, validation backlog, consolidation opportunities.
Get causal explanation for a memory.
{
"memoryId": "mem_abc123",
"includeNarrative": true,
"maxDepth": 3
}Returns: Causal chain and human-readable narrative.
Get predicted memories for current context.
{
"activeFile": "src/auth/login.ts",
"recentFiles": ["src/auth/logout.ts"],
"intent": "add_feature",
"limit": 10
}Returns: Ranked predictions with confidence scores and reasons.
Detect conflicting memories.
{
"memoryId": "mem_abc123"
}Or scan all:
{
"scanAll": true,
"minSeverity": "medium"
}Visualize memory relationships.
{
"memoryId": "mem_abc123",
"direction": "both",
"maxDepth": 3,
"format": "mermaid"
}Formats: json, mermaid, dot
Validate memories and get healing suggestions.
{
"limit": 5,
"includePrompts": true
}Returns: Memories needing validation with suggested prompts.
Get memory with optional causal chain.
{
"memoryId": "mem_abc123",
"includeCausalChain": true,
"chainDepth": 3
}Rich graph queries using MGQL (Memory Graph Query Language).
{
"query": "MATCH (m:tribal) WHERE m.topic = 'security' RETURN m",
"limit": 20
}Detect and resolve contradictions between memories.
{
"action": "detect",
"memoryId": "mem_abc123"
}Actions: detect, resolve, list
These tools manage the 10 universal memory types introduced in Cortex V2.
Create and invoke reusable agent configurations.
{
"action": "list"
}Actions:
-
listβ List all agent spawns -
getβ Get agent spawn details -
createβ Create new agent spawn -
invokeβ Invoke an agent spawn -
deleteβ Delete an agent spawn
Create example:
{
"action": "create",
"name": "Code Reviewer",
"slug": "code-reviewer",
"description": "Reviews code for quality",
"systemPrompt": "You are a thorough code reviewer...",
"tools": ["readFile", "grepSearch", "getDiagnostics"],
"triggerPatterns": ["review this", "code review"]
}Store and execute step-by-step processes.
{
"action": "list"
}Actions:
-
listβ List all workflows -
getβ Get workflow details -
createβ Create new workflow -
executeβ Execute a workflow -
deleteβ Delete a workflow
Create example:
{
"action": "create",
"name": "Deploy to Production",
"slug": "deploy-production",
"description": "Steps to deploy code to production",
"steps": [
{ "order": 1, "name": "Run tests", "description": "npm test" },
{ "order": 2, "name": "Build", "description": "npm run build" },
{ "order": 3, "name": "Deploy", "description": "npm run deploy" }
],
"triggerPhrases": ["deploy", "push to prod"]
}Track projects, teams, services, and systems.
{
"action": "list",
"entityType": "service"
}Actions:
-
listβ List all entities -
getβ Get entity details -
createβ Create new entity -
updateβ Update entity -
deleteβ Delete entity
Create example:
{
"action": "create",
"entityType": "service",
"name": "Auth Service",
"keyFacts": ["Handles authentication", "Uses JWT", "Redis for sessions"],
"status": "active"
}Track objectives with progress.
{
"action": "list",
"status": "active"
}Actions:
-
listβ List all goals -
getβ Get goal details -
createβ Create new goal -
updateβ Update goal progress -
completeβ Mark goal as complete -
deleteβ Delete goal
Record postmortems and lessons learned.
{
"action": "list",
"severity": "critical"
}Actions:
-
listβ List all incidents -
getβ Get incident details -
createβ Create new incident -
resolveβ Mark incident as resolved -
deleteβ Delete incident
Create example:
{
"action": "create",
"title": "Database outage 2024-01-15",
"severity": "critical",
"rootCause": "Connection pool exhaustion",
"lessonsLearned": ["Always set connection limits", "Monitor pool usage"],
"preventionMeasures": ["Add connection pool alerts"]
}Track knowledge domains and proficiency.
{
"action": "list",
"domain": "frontend"
}Actions:
-
listβ List all skills -
getβ Get skill details -
createβ Create new skill -
updateβ Update proficiency -
deleteβ Delete skill
Proficiency levels: learning, beginner, competent, proficient, expert
Store environment configurations.
{
"action": "list"
}Actions:
-
listβ List all environments -
getβ Get environment details -
createβ Create new environment -
updateβ Update environment -
deleteβ Delete environment
Create example:
{
"action": "create",
"name": "Production",
"environmentType": "production",
"warnings": ["β οΈ This is PRODUCTION - be careful!"],
"endpoints": { "api": "https://api.example.com" }
}Record meeting notes and action items.
{
"action": "list"
}Actions:
-
listβ List all meetings -
getβ Get meeting details -
createβ Create meeting notes -
deleteβ Delete meeting
Store conversation summaries.
{
"action": "list"
}Actions:
-
listβ List all conversations -
getβ Get conversation details -
createβ Create conversation summary -
deleteβ Delete conversation
For any code generation task, start here:
{
"intent": "add_feature",
"focus": "the area you're working on"
}When you need exactly one thing:
// Need a signature?
{ "tool": "drift_signature", "symbol": "functionName" }
// Need callers?
{ "tool": "drift_callers", "function": "functionName" }
// Need imports?
{ "tool": "drift_imports", "symbol": "TypeName" }Always validate generated code:
{
"tool": "drift_validate_change",
"file": "path/to/file.ts",
"content": "// generated code"
}When results are paginated:
// First call
{ "limit": 20 }
// Next page
{ "limit": 20, "cursor": "returned_cursor" }Every response includes hints:
{
"hints": {
"nextActions": ["What to do next"],
"relatedTools": ["Other useful tools"],
"warnings": ["Important warnings"]
}
}Responses are cached for repeated queries. Cache is invalidated when:
- Files change
- Patterns are approved/ignored
- Call graph is rebuilt
Prevents runaway tool calls. Default: 60 requests/minute.
Usage metrics are collected for:
- Tool call frequency
- Response times
- Cache hit rates
- Error rates
On startup, Drift warms up stores for instant responses:
- Pattern store loaded
- Call graph indexed
- Boundary data cached
- Cortex V2 Overview
- Memory Setup Wizard
- Memory CLI
- Universal Memory Types
- Learning System
- Token Efficiency
- Causal Graphs
- Code Generation
- Predictive Retrieval
- Architecture
- Call Graph Analysis
- Impact Analysis
- Security Analysis
- Data Boundaries
- Test Topology
- Coupling Analysis
- Error Handling Analysis
- Wrappers Detection
- Environment Variables
- Constants Analysis
- Styling DNA
- Constraints
- Contracts
- Decision Mining
- Speculative Execution
- Watch Mode
- Trends Analysis
- Projects Management
- Package Context
- Monorepo Support
- Reports & Export
- Dashboard
- 10 Languages
- 21 Frameworks
- 16 ORMs
- 400+ Detectors
- 50+ MCP Tools
- 60+ CLI Commands
- 23 Memory Types