Skip to main content
Glama

TypeScript MCP

by mizchi

rename_symbol

Rename TypeScript symbols (variables, functions, classes) across the entire codebase by specifying the root directory, file path, line, old name, and new name for consistent refactoring.

Instructions

Rename a TypeScript symbol (variable, function, class, etc.) across the codebase

Input Schema

NameRequiredDescriptionDefault
filePathYesFile path containing the symbol (relative to root)
lineYesLine number (1-based) or string to match in the line
newNameYesNew name for the symbol
oldNameYesCurrent name of the symbol
rootYesRoot directory for resolving relative paths

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filePath": { "description": "File path containing the symbol (relative to root)", "type": "string" }, "line": { "description": "Line number (1-based) or string to match in the line", "type": [ "number", "string" ] }, "newName": { "description": "New name for the symbol", "type": "string" }, "oldName": { "description": "Current name of the symbol", "type": "string" }, "root": { "description": "Root directory for resolving relative paths", "type": "string" } }, "required": [ "root", "filePath", "line", "oldName", "newName" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mizchi/typescript-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server