Skip to main content
Glama

TypeScript MCP

by mizchi

move_file

Move a TypeScript/JavaScript file to a new location and automatically update all related import paths to ensure code integrity.

Instructions

Move a TypeScript/JavaScript file to a new location and update all import statements

Input Schema

NameRequiredDescriptionDefault
newPathYesNew file path (relative to root)
oldPathYesCurrent file path (relative to root)
overwriteNoOverwrite the destination file if it exists
rootYesRoot directory for resolving relative paths

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "newPath": { "description": "New file path (relative to root)", "type": "string" }, "oldPath": { "description": "Current file path (relative to root)", "type": "string" }, "overwrite": { "default": false, "description": "Overwrite the destination file if it exists", "type": "boolean" }, "root": { "description": "Root directory for resolving relative paths", "type": "string" } }, "required": [ "root", "oldPath", "newPath" ], "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