mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

get_file

Retrieve specific content from a file within a codebase by specifying project name, file path, and optional line range using the MCP server for precise code analysis.

Instructions

Get content of a file.

Args: project: Project name path: File path relative to project root max_lines: Maximum number of lines to return start_line: First line to include (0-based) Returns: File content

Input Schema

NameRequiredDescriptionDefault
max_linesNo
pathYes
projectYes
start_lineNo

Input Schema (JSON Schema)

{ "properties": { "max_lines": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Max Lines" }, "path": { "title": "Path", "type": "string" }, "project": { "title": "Project", "type": "string" }, "start_line": { "default": 0, "title": "Start Line", "type": "integer" } }, "required": [ "project", "path" ], "title": "get_fileArguments", "type": "object" }
ID: k35mqkr8j9