PT-MCP (Paul Test Man Context Protocol)
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PT-MCP (Paul Test Man Context Protocol) analyze the current project structure and dependencies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PT-MCP (Paul Test Man Context Protocol)
"Where am I now?"
Named after Paul Marcarelli, the Verizon "Test Man" who famously traversed America asking "Can you hear me now?", PT-MCP asks the essential question for AI coding assistants: "Where am I now?" - providing comprehensive context understanding through integrated knowledge graphs and semantic schemas.
The Paul Test Man Story
Just as Paul Test Man mapped Verizon's network coverage across America to ensure clear communication, PT-MCP maps your codebase's semantic landscape to ensure clear understanding. The server doesn't just return code structure - it returns meaning through:
YAGO 4.5 Knowledge Graphs: Base knowledge graph segments relevant to your context
Schema.org Domain Graphs: Domain-specific semantic understanding
Codebase Analysis: Comprehensive structure, patterns, and relationships
Overview
PT-MCP helps AI coding assistants understand your codebase by providing:
Comprehensive codebase analysis - File structure, language distribution, code metrics
Context file generation - Multiple format support (.cursorrules, SPEC.md, etc.)
Incremental updates - Efficient context regeneration based on changes
Pattern extraction - Identify architectural and coding patterns
Dependency analysis - Map internal and external dependencies
API surface extraction - Document public interfaces
Context validation - Ensure accuracy and completeness
Installation
npm install
npm run buildUsage
As an MCP Server
Add to your Claude Code configuration (~/.config/claude/config.json):
{
"mcpServers": {
"context-manager": {
"command": "node",
"args": ["/path/to/context-manager-mcp/dist/index.js"],
"env": {}
}
}
}Available Tools
1. analyze_codebase
Perform comprehensive codebase analysis including structure, dependencies, and metrics.
{
path: string; // Root directory path
languages?: string[]; // Languages to analyze (auto-detect if omitted)
depth?: number; // Analysis depth (1-5, default: 3)
include_patterns?: string[]; // Glob patterns to include
exclude_patterns?: string[]; // Glob patterns to exclude
analysis_type?: 'quick' | 'standard' | 'deep'; // Default: 'standard'
}Example:
{
"path": "/path/to/project",
"analysis_type": "standard",
"exclude_patterns": ["**/node_modules/**", "**/.git/**"]
}Returns:
Total files, lines, and size
Language distribution with percentages
Directory structure and depth
Entry points identification
Package information (if available)
2. generate_context
Generate context files in specified format.
{
path: string;
format: 'cursorrules' | 'cursor_dir' | 'spec_md' | 'agents_md' | 'custom';
output_path?: string;
analysis_result?: any;
options?: Record<string, any>;
}Note: Implementation pending (stub currently returns placeholder)
3. update_context
Incrementally update existing context files based on code changes.
{
path: string;
changed_files: string[];
context_format: string;
force_full_regeneration?: boolean;
}Note: Implementation pending (stub currently returns placeholder)
4. extract_patterns
Identify and extract architectural and coding patterns.
{
path: string;
pattern_types?: string[];
min_occurrences?: number;
}Note: Implementation pending (stub currently returns placeholder)
5. analyze_dependencies
Analyze and map internal and external dependencies.
{
path: string;
include_external?: boolean;
include_internal?: boolean;
max_depth?: number;
}Note: Implementation pending (stub currently returns placeholder)
6. watch_project
Start monitoring project for changes and auto-update context.
{
path: string;
context_formats: string[];
debounce_ms?: number;
watch_patterns?: string[];
}Note: Implementation pending (stub currently returns placeholder)
7. extract_api_surface
Extract and document public API surface.
{
path: string;
include_private?: boolean;
output_format?: 'markdown' | 'json' | 'typescript';
}Note: Implementation pending (stub currently returns placeholder)
8. validate_context
Validate accuracy and completeness of generated context files.
{
path: string;
context_path: string;
checks?: string[];
}Note: Implementation pending (stub currently returns placeholder)
Available Resources
context://project/{path}
Current project context including structure, patterns, and dependencies.
context://patterns/{path}
Architectural and coding patterns detected in the codebase.
context://dependencies/{path}
Internal and external dependency relationships.
Development Status
Phase 1: Foundation (✅ Complete)
MCP server boilerplate with stdio transport
Project structure and dependencies
analyze_codebasetool - fully functionalStub implementations for remaining tools
Phase 2: Core Analysis (🚧 In Progress)
Implement
generate_contexttoolImplement
extract_patternstoolImplement
analyze_dependenciestoolAdd tree-sitter integration for deep code analysis
Phase 3: Advanced Features (📋 Planned)
Implement
update_contexttool with incremental updatesImplement
watch_projecttool with file system monitoringImplement
extract_api_surfacetoolImplement
validate_contexttool
Architecture
context-manager-mcp/
├── src/
│ ├── index.ts # MCP server entry point
│ ├── tools/ # Tool implementations
│ │ ├── index.ts # Tool registration
│ │ ├── analyze-codebase.ts
│ │ ├── generate-context.ts
│ │ ├── update-context.ts
│ │ ├── extract-patterns.ts
│ │ ├── analyze-dependencies.ts
│ │ ├── watch-project.ts
│ │ ├── extract-api-surface.ts
│ │ └── validate-context.ts
│ ├── resources/ # Resource handlers
│ │ └── index.ts
│ ├── analyzers/ # Code analysis engines (future)
│ ├── generators/ # Context generators (future)
│ ├── utils/ # Utility functions (future)
│ └── types/ # TypeScript type definitions (future)
├── dist/ # Compiled JavaScript
├── package.json
├── tsconfig.json
└── README.mdTesting
Test the MCP server locally:
# Build the project
npm run build
# Test analyze_codebase tool
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"analyze_codebase","arguments":{"path":"/path/to/project","analysis_type":"standard"}}}' | node dist/index.jsContributing
This is a work in progress. See the specification document for the full implementation roadmap.
Next Steps
Implement context file generators for different formats
Add tree-sitter integration for deeper code analysis
Implement pattern extraction algorithms
Add file system watching and incremental updates
Create comprehensive test suite
License
MIT
Related Projects
Giga AI - VS Code extension for context management
Kilo Code CLI - CLI wrapper for VS Code extensions
Model Context Protocol - Protocol specification
Available Tools
9 toolsanalyze_codebaseC
Perform comprehensive codebase analysis including structure, dependencies, and metrics
Inputs: path (required), languages, depth, include_patterns, +2 more.
analyze_dependenciesC
Analyze and map internal and external dependencies
Inputs: path (required), include_external, include_internal, max_depth.
enrich_contextC
Enrich codebase context with knowledge graph data from YAGO 4.5 and Schema.org annotations
Inputs: path (required), analysis_result, enrichment_level, include_yago, +2 more.
extract_api_surfaceB
Extract and document public API surface of the codebase
Inputs: path (required), include_private, output_format.
extract_patternsC
Identify and extract architectural and coding patterns from the codebase
Inputs: path (required), pattern_types, min_occurrences.
generate_contextC
Generate context files in specified format for the codebase
Inputs: path (required), format (required), output_path, analysis_result, +1 more.
update_contextC
Incrementally update existing context files based on code changes
Inputs: path (required), changed_files (required), context_format (required), force_full_regeneration.
validate_contextC
Validate accuracy and completeness of generated context files
Inputs: path (required), context_path (required), checks.
watch_projectB
Start monitoring project for changes and auto-update context
Inputs: path (required), context_formats (required), debounce_ms, watch_patterns.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clearly distinct purposes, such as analyze_codebase for overall analysis, enrich_context for adding external knowledge, and watch_project for monitoring changes. However, analyze_codebase and analyze_dependencies could be slightly confusing as dependencies are part of codebase analysis, but their descriptions help clarify the separation.
All tools follow a consistent verb_noun pattern with clear, descriptive names (e.g., analyze_codebase, enrich_context, extract_api_surface). There are no deviations in style or convention, making the set highly predictable and readable.
With 9 tools, the count is well-scoped for the server's purpose of codebase analysis and context management. Each tool appears to serve a specific function in the workflow, from analysis to generation and validation, without feeling excessive or insufficient.
The tool set provides complete coverage for the domain of codebase context management, including analysis (analyze_codebase, analyze_dependencies), enrichment (enrich_context), extraction (extract_api_surface, extract_patterns), generation (generate_context), updating (update_context), validation (validate_context), and monitoring (watch_project). There are no obvious gaps, and the tools support a full lifecycle from initial analysis to ongoing maintenance.
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Codebase intelligence for AI agents — dead code, blast radius, ownership.