mcp/ast-grep

Verified Publisher

By mcp

Updated 4 months ago

ast-grep is a fast and polyglot tool for code structural search, lint, rewriting at large scale.

Image
Machine learning & AI
2

10K+

mcp/ast-grep repository overview

ast-grep MCP Server

ast-grep is a fast and polyglot tool for code structural search, lint, rewriting at large scale.

What is an MCP Server?

MCP Info

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/dgageot/mcp-ast-grep/blob/c0a1edaf9cd6b168f2b59bc5a0161ad49a793099/Dockerfile
Commitc0a1edaf9cd6b168f2b59bc5a0161ad49a793099
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/ast-grep --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (1)

Tools provided by this ServerShort Description
ast-grepSearch codebases using ast-grep patterns

Tools Details

Tool: ast-grep

Search codebases using ast-grep patterns for straightforward structural matches. (returns json)

ParametersTypeDescription
patternstringThe ast-grep pattern to search for. Note, the pattern must have valid AST structure.
dirstring optionalThe directory to search in. If not specified, will use the current working directory.
langstring optionalThe language of the code. If not specified, will be auto-detected based on file extensions.

This tool is read-only. It does not modify its environment.

This tool may perform destructive updates.

This tool interacts with external entities.


Use this MCP Server

{
  "mcpServers": {
    "ast-grep": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory",
        "mcp/ast-grep"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Install from MCP:Hub

Tag summary

Content type

Image

Digest

sha256:5fc3f2e9d

Size

9.6 MB

Last updated

4 months ago

Requires Docker Desktop 4.37.1 or later.

This week's pulls

Pulls:

1,780

Last week