Skip to main content
Glama
Project Scope MCP Server

Project Scope MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_repo_structureA

Map the complete file structure of a repository. Automatically respects .gitignore rules. Use 'tree' format for visual hierarchy, 'simple' for flat file lists, or 'json' for programmatic access. Best practice: Run this first when encountering a new codebase.

analyze_impactA

Predict the blast radius of renaming a symbol. Uses AST analysis (not text search) to find all legitimate references across the codebase. Use before refactoring to understand dependencies and prevent breaking changes.

git_branch_statusB

Display all Git branches with their tracking status and current HEAD. Useful for understanding repository state before making commits or merges.

git_commit_historyA

View commit history with powerful filtering (by file, author, or date range). Returns structured data including commit hashes, timestamps, and messages. Use to understand code evolution or trace when bugs were introduced.

git_show_changesB

Show current working directory changes including staged, unstaged, and untracked files. Optionally show detailed diff.

git_compare_branchesA

Compare two Git branches showing unique commits in each branch, common ancestor, and files that differ. Optionally show full diff.

git_initB

Initialize a new Git repository. Creates a .git directory and sets up the repository structure.

git_statusB

Get a quick overview of the repository status including current branch, staged/unstaged/untracked file counts, and remote tracking info.

refactor_renameB

Rename a symbol (variable, function, class) across the entire codebase. Returns preview of changes, optionally applies them.

refactor_extract_functionC

Extract a block of code into a new function. Detects parameters and generates function call.

refactor_move_to_fileA

Move a function or class to a different file. Updates imports automatically.

refactor_inline_variableB

Inline a variable by replacing all usages with its value and removing the declaration.

find_dead_codeB

Identify dead code (unused exports and functions). Helps reduce bundle size and improve maintainability. Run periodically to clean up legacy code.

validate_shell_inputA

Prevent command injection (RCE). Validates shell input for dangerous metacharacters (&, |, ;, $(), backticks), environment variable tricks, and encoding bypasses. Run this before executing any shell command generated by an LLM or received from user input.

validate_sql_queryB

Prevent SQL injection. Detects UNION attacks, stacked queries (DROP TABLE), comment injection (--), boolean/time-based blind SQLi, and encoding tricks. Validate all dynamically constructed SQL before execution.

validate_file_pathA

Prevent path traversal (LFI). Detects ../ sequences, URL/double encoding, null bytes, and ensures paths stay within projectRoot. Use when processing user-provided file paths to prevent unauthorized file access.

detect_template_injectionA

Prevent Server-Side Template Injection (SSTI). Identifies dangerous template syntax from Jinja2, Handlebars, ERB, and others. Flags RCE payloads like {{config.class}}. Scan user-provided templates or dynamic content before rendering.

detect_prompt_injectionA

Defend against AI jailbreaks and prompt injection. Detects role-switching ('You are now DAN'), instruction override ('Ignore previous'), tool manipulation, and hidden payloads. Hybrid detection: Fast regex + optional Llama Prompt Guard 2 (LLM). Use when reading untrusted content (files, web pages, user input).

scan_file_for_threatsA

Deep-scan a single file for all 5 threat types (shell, SQL, path, template, prompt injection). Returns exact line numbers and risk levels. Use when generating new code or processing uploaded files to ensure safety before execution.

scan_repo_for_threatsA

Audit an entire repository for security risks. Multi-threaded regex scanning (no API costs). Automatically skips node_modules, .git, and binary files. Can scan 10k+ files in seconds. Run this before making changes to untrusted repositories.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 20 tools

Disambiguation3/5

Several clusters overlap: git_status vs git_branch_status vs git_show_changes all report repository state, and scan_file_for_threats duplicates the combined behavior of the five individual validate_*/detect_* tools, leaving an agent unsure which entry point to pick. analyze_impact and refactor_rename also both promise to predict rename breakage. Descriptions do help disambiguate most cases, but the boundaries are not crisp.

Naming Consistency4/5

All names are snake_case and largely follow a verb_noun or domain-prefix pattern (git_*, refactor_*, validate_*, detect_*, scan_*). A few outliers (find_dead_code, get_repo_structure, analyze_impact) use different verbs and no domain prefix, but overall the naming is readable and predictable.

Tool Count3/5

20 tools sits in the heavy band and the server spans four loosely related domains (codebase analysis, git, refactoring, security validation), which makes it feel like several servers bundled together. Each tool is individually justified, but the surface is larger than a single 'Project Scope' purpose implies.

Completeness4/5

Refactoring and security validation have solid coverage, and codebase analysis covers structure, dead code, and impact. The main gap is Git write operations: git_init exists but there is no add/commit/checkout/merge, so an agent can initialize a repo but cannot complete the basic workflow. A file read/search primitive is also absent, though agents can work around both gaps.

Maintenance

ActivityInactive
ResponsivenessLimited data