Sponsored by Deepsite.site

Project Scope

Created By
adityasasidhara month ago
A production-ready MCP server that gives AI agents deep codebase understanding. Features AST-based semantic analysis, context-aware security scanning (zero false positives on source code), safe refactoring tools with previews, and comprehensive Git operations.
Content

Project Scope MCP

Semantic code intelligence and safe repository control for AI agents.

Project Scope is a production-grade MCP server that gives AI agents deep, structural understanding of codebases and the ability to modify them safely. It goes beyond file reading by combining AST analysis, context-aware security scanning, safe refactoring, and Git operations.

Built for real-world agentic development workflows.


What it does

Project Scope enables AI agents to:

  • Understand code semantically, not textually
  • Analyze dependency graphs and change impact
  • Perform safe, preview-first refactors
  • Scan repositories for real security risks without false positives
  • Interact with Git repositories programmatically
  • Operate under strict security controls

Core features

Semantic repository analysis Uses Tree-sitter to parse source code into ASTs and build symbol graphs, dependency maps, and reference trees.

Context-aware security scanning Security engine understands where code lives and how it is used.

  • Skips source code syntax that resembles attacks
  • Strictly validates runtime inputs
  • Zero false positives on legitimate code

Safe refactoring tools

  • Symbol rename across project via AST
  • Function extraction with syntax guarantees
  • Mandatory preview before apply

Git-native operations

  • Repository status and history
  • Branch comparison
  • Initialization and inspection
  • Designed for agent-driven workflows

Defense-in-depth security

  • Prompt injection detection
  • Regex + heuristic guards
  • Optional LLM Guard integration
  • File access and execution boundaries

Why Project Scope

  • Eliminates naive regex-based security scanners
  • Prevents agents from breaking builds during refactors
  • Makes large codebases understandable to LLMs
  • Designed for autonomous and semi-autonomous agents
  • MCP-native and language-agnostic at the protocol level

Available tools

Repository analysis get_repo_structure, analyze_impact

Security scan_repo_for_threats, scan_file_for_threats, validate_shell_input

Refactoring refactor_rename, refactor_extract_function

Git git_status, git_commit_history, git_compare_branches, git_init


Security model

Project Scope uses context-sensitive scanning instead of blanket rules.

  • Source code is parsed, not pattern-matched
  • Comments, imports, and definitions are ignored safely
  • Runtime inputs are strictly validated
  • Configurable strict and advisory modes

Optional integration with Meta Llama Prompt Guard 2 for advanced prompt injection detection.


Use cases

  • Large codebase understanding
  • Safe autonomous refactoring
  • Secure agent-driven code changes
  • Repository audits
  • Change impact analysis
  • AI-assisted code reviews

Tech stack

  • TypeScript
  • Node.js
  • Tree-sitter
  • FastMCP
  • Fully local execution

Status

Stable. Security-focused. ISC licensed.


Server Config

{
  "mcpServers": {
    "project-scope": {
      "command": "npx",
      "args": [
        "-y",
        "@adityasasidhar/project-scope-mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code