leolech14/PROJECT_sniper-mcp-server
If you are the rightful owner of PROJECT_sniper-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Multi-Indexer Sniper Tagger Query Gun is a powerful tool designed to transform large monolithic codebases into semantically-navigable and surgically-editable structures.
šÆ Multi-Indexer Sniper Tagger Query Gun - MCP Server
Transform 10,465-line monoliths into semantically-navigable, surgically-editable organisms
š Cloud Hosting Options (24/7 FREE)
1. Google Cloud App Engine ā RECOMMENDED
- Free Tier: F1 instance (28 hours/month free)
- Uptime: 99.95% with automatic scaling
- Deploy:
./deploy.sh
(auto-detects GCP) - URL:
https://your-project.appspot.com
2. Railway š
- Free Tier: $5/month credit (enough for 24/7)
- Deploy:
railway up
afternpm install -g @railway/cli
- Features: Automatic GitHub deployment
3. Render š
- Free Tier: 750 hours/month (enough for 24/7)
- Deploy: Connect GitHub repo to render.com
- Features: Zero-config deployment
4. Vercel ā”
- Free Tier: Serverless functions
- Deploy:
vercel --prod
- Best for: Serverless MCP functions
š§ MCP Tools Available
š scan_components
Auto-scan and index all HTML components in Python scripts
{
"tool": "scan_components",
"arguments": {
"script_path": "mr-fix-my-project-please.py",
"target_dir": "."
}
}
šÆ query_components
Query components using semantic tags
{
"tool": "query_components",
"arguments": {
"query": "@html:form AND @component:modal OR @layer:overlay"
}
}
ā” sniper_edit
Apply surgical edits to specific line ranges
{
"tool": "sniper_edit",
"arguments": {
"target_file": "script.py",
"line_ranges": [[100, 150], [200, 250]],
"edit_operation": "replace",
"new_content": "new HTML code here"
}
}
š impact_analysis
Analyze impact before applying changes
{
"tool": "impact_analysis",
"arguments": {
"target_file": "script.py",
"proposed_edits": [
{"type": "method_removal", "target": "_generate_form_html"}
]
}
}
š¦ extract_component
Extract component to separate file
{
"tool": "extract_component",
"arguments": {
"component_id": "form_component_1",
"target_file": "script.py",
"new_file_path": "components/form.py"
}
}
š get_registry
Get complete task registry
{
"tool": "get_registry",
"arguments": {
"include_completed": false
}
}
š ļø Quick Start
1. Install Dependencies
npm install
2. Build Server
npm run build
3. Deploy to Cloud (Free 24/7)
./deploy.sh
4. Test Local Development
npm run dev
šÆ Usage Example
import { SniperGunMCPServer } from './dist/index.js';
// Server provides 6 MCP tools via stdio transport
// Connect from any MCP client (Claude Code, etc.)
// Example workflow:
// 1. Scan components in large Python file
// 2. Query specific HTML patterns (@html:form, @component:modal)
// 3. Analyze impact of proposed changes
// 4. Apply surgical edits to precise line ranges
// 5. Extract components to separate files
š Architecture
šÆ Sniper Gun MCP Server
āāā š HTML Component Scanner (Python)
āāā š·ļø Semantic Tagger (Python)
āāā šÆ Query Engine (TypeScript)
āāā ā” Surgical Editor (TypeScript)
āāā š Impact Analyzer (TypeScript)
āāā š¦ Component Extractor (TypeScript)
š Semantic Query Language
@html:form
- Find HTML form components@component:modal
- Find modal components@layer:overlay
- Find overlay layers@method:_generate_*
- Find generator methods@editable:true
- Find editable components@complexity:high
- Find complex components
Combine with operators:
AND
- IntersectionOR
- UnionNOT
- Exclusion
Example: @html:form AND @component:modal NOT @deprecated:true
š” Use Cases
- Legacy Code Refactoring: Navigate 10,465-line monoliths with semantic precision
- Component Extraction: surgically extract reusable components
- Impact Analysis: Understand changes before breaking anything
- Query-Driven Development: Find and edit components by semantic meaning
- Automated Refactoring: Batch operations on similar components
š Performance
- Scan Speed: 10,465 lines in ~2 seconds
- Query Response: <100ms for most queries
- Memory Usage: <50MB for large codebases
- Accuracy: 95%+ component identification
š Security
- No hardcoded API keys (uses Doppler)
- Read-only file operations by default
- Impact analysis before destructive changes
- Audit trail for all operations
šÆ Transform monolithic pain into surgical precision with the Multi-Indexer Sniper Tagger Query Gun!