Project Scope MCP Server

Project Scope MCP Server

project-scope-mcp•byadityasasidhar

A Model Context Protocol server that lets AI agents analyze repositories, scan for security threats, refactor code, and perform Git operations.

License: ISC License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Parses and understands code structure, dependencies, and relationships using Tree-sitter, and predicts the impact of changing a symbol via AST references.
  • •Scans repositories, files, and shell input for threats such as secrets, injection patterns, SQLi, XSS, and RCE using a context-aware engine.
  • •Provides AST-based refactoring tools for renaming symbols and extracting functions, with preview-first capability.
  • •Offers Git version control tools including status, commit history, branch comparison, and repository initialization.

BEST FOR

  • •AI agents that need to understand a codebase's structure and the ripple effects of changes.
  • •Auditing repositories or shell commands for security risks before execution.
  • •Safe code refactoring through previewed symbol renames and function extraction.

ABOUT PROJECT-SCOPE-MCP

Project Scope MCP Server is cataloged as an MCP server attributed to adityasasidhar. A Model Context Protocol server that lets AI agents analyze repositories, scan for security threats, refactor code, and perform Git operations. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: ISC License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Project Scope MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What security modes does the server support?

It supports a strict mode that blocks operations immediately on detecting a potential threat, and an advisory mode that logs warnings but allows operations to proceed.

Can prompt injection protection be enhanced with an LLM?

Yes, LLM Guard can optionally be enabled using Meta Llama Prompt Guard 2, which requires a HuggingFace API token.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f8719bf7dc3c · 采集于 2026-11-13 11:29:23 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Project Scope MCP Server

A robust, production-ready Model Context Protocol (MCP) server empowering AI agents with deep semantic understanding and safe manipulation of software repositories.


Overview

Project Scope moves beyond simple file reading to provide semantic analysis, AST-based refactoring, Git integration, and defense-in-depth security validation. It allows Large Language Models (LLMs) to interact with codebases reliably and safely, bridging the gap between chat interfaces and complex development workflows.

Key Features

  • Semantic Repository Analysis: Parse and understand code structure, dependencies, and relationships using Tree-sitter.
  • Context-Aware Security: Advanced scanner with zero false positives on source code, detecting SQLi, XSS, and RCE attempts in runtime inputs.
  • Safe Refactoring: AST-based renaming and extraction tools with "preview first" capabilities to prevent syntax errors.
  • Git Integration: Comprehensive version control management including history, diffing, and branch operations.
  • Defense-in-Depth: Multi-layered protection including Prompt Injection detection (Regex + LLM Guard), input validation, and file access controls.

Table of Contents


npm version


Quick Start

Run instantly with npx:

npx -y @adityasasidhar/project-scope-mcp

Installation (Source)

To build from source:

# Clone the repository
git clone https://github.com/adityasasidhar/Project-Scope-MCP.git
cd Project-Scope-MCP

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Security is a primary focus of Project Scope. The server is highly customizable to match your risk profile.

Security Modes

  • strict (default): Blocks operations immediately if a potential threat is detected.
  • advisory: Logs and warnings are generated, but operations are allowed to proceed (useful for initial audits).

Sensitivity Levels

  • high: Aggressive detection, useful for untrusted user inputs.
  • medium (default): Balanced profile for standard development.
  • low: Only flags high-confidence known attack signatures.

LLM Guard (Optional)

For state-of-the-art protection against prompt injection attacks, enable Meta Llama Prompt Guard 2:

  • Set useGuardModel: true in your requests.
  • Requires a valid HuggingFace API token.

Security Architecture

The server features a Context-Aware Security Scanner designed to eliminate false positives while maintaining rigorous threat detection.

Intelligent Context Detection

The scanner uses file categorization to determine the appropriate validation strategy:

File TypeExtensionScanning StrategyReason
Source Code.ts, .py, .goSkippedSource code syntax (semi-colons, pipes) mimics attack patterns.
Templates.hbs, .jinja2Syntax-AwareValidates usage but allows standard template tokens.
Config.json, .yamlMinimalAllows standard configuration strings.
Runtime Input(None)StrictFull regex and heuristic scanning for malicious payloads.

Line-Level Filtering

Within analyzed files, the engine intelligently ignores:

  • Comments: //, /*, #
  • Imports: import, require
  • Definitions: interface, type, class

This ensures that documenting a security vulnerability in a comment or test file does not trigger a false alarm, while executing or receiving a malicious payload is caught.


🔌 Connecting Clients

Claude Desktop

  1. Open your configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the server definition:

{
  "mcpServers": {
    "project-scope": {
      "command": "node",
      "args": ["/absolute/path/to/ProjectScopeMCP/dist/index.js"]
    }
  }
}

Claude Code (CLI)

The official Claude Code CLI supports MCP natively.

  1. Add the server: Run the following command in your terminal:

    claude mcp add project-scope -- npx -y @adityasasidhar/project-scope-mcp
    
  2. Verify: Run claude and type /mcp to see the connected servers.

Codex CLI

Codex CLI (if applicable) supports MCP via its TOML configuration.

  1. Edit Configuration: Open ~/.codex/config.toml.

  2. Add Server:

    [mcp.servers.project-scope]
    command = "npx"
    args = ["-y", "@adityasasidhar/project-scope-mcp"]
    

Gemini CLI

Gemini CLI supports MCP via its JSON configuration.

  1. Edit Configuration: Open ~/.gemini/settings.json (create if it doesn't exist).

  2. Add Server:

    {
      "mcpServers": {
        "project-scope": {
          "command": "npx",
          "args": ["-y", "@adityasasidhar/project-scope-mcp"]
        }
      }
    }
    

Generic Clients

For any other client that supports MCP (like Windsurf, Smithery, Goose, or custom implementations), use the standard stdio configuration:

npx -y @adityasasidhar/project-scope-mcp

Cursor

  1. Open Cursor Settings (Cmd/Ctrl + Shift + J).
  2. Navigate to Features > MCP Servers.
  3. Click + Add New MCP Server.
  4. Configure:
    • Name: project-scope
    • Type: command
    • Command: node /absolute/path/to/ProjectScopeMCP/dist/index.js (Or use npm run start if preferred)

GitHub Copilot (VS Code)

  1. Open GitHub Copilot Chat in VS Code.
  2. Click the Attach Context (paperclip) or Tools icons.
  3. Select Connect to MCP Server...
  4. Choose Command (or similar) and enter:
    • Command: npx
    • Args: -y @adityasasidhar/project-scope-mcp

Note: Requires GitHub Copilot Agent Mode enabled in VS Code settings.

Tool Reference

Repository Analysis

get_repo_structure

Generates a hierarchical map of the repository, respecting .gitignore.

  • input: { "path": "/path/to/repo", "format": "tree" }

analyze_impact

Predicts the "blast radius" of changing a symbol (function, variable) by finding all references via AST.

  • input: { "path": "...", "filePath": "src/utils.ts", "symbolName": "processData", "line": 42 }

Security Scanning

scan_repo_for_threats

Audits the entire repository for security risks (secrets, injection patterns). Skips ignored files for performance.

  • input: { "path": "/path/to/repo", "excludePatterns": ["dist"] }

scan_file_for_threats

Deep-scans a single file or string with the context-aware engine.

  • input: { "filePath": "/path/to/file.ts", "mode": "strict" }

validate_shell_input

Validates shell commands for injection risks before execution.

  • input: { "input": "rm -rf /", "mode": "strict" }

Refactoring

refactor_rename

Semantically renames a symbol across the project.

  • input: { "path": "...", "filePath": "...", "oldName": "foo", "newName": "bar", "apply": false }
  • Note: Always use "apply": false first to preview changes.

refactor_extract_function

Extracts selected lines of code into a new function.

  • input: { "path": "...", "filePath": "...", "startLine": 10, "endLine": 20, "functionName": "newFunc" }

Git Operations

Includes standard Git tools for agentic workflows:

  • git_status
  • git_commit_history
  • git_compare_branches
  • git_init

Troubleshooting

"Repo Scan Too Slow"

  • Add large directories (e.g., vendor, node_modules) to excludePatterns.
  • Large files (>1MB) are automatically skipped.

"Refactoring Failed to Parse"

  • Ensure the code is syntactically valid before refactoring. Tree-sitter parsers typically require valid syntax to generate accurate ASTs.

License

This project is licensed under the ISC License.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Project Scope MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/project-scope-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools