Skip to main content
Glama

LSP MCP Server

by sminnee

move_function

Relocate a function from one file to another using Language Server Protocol refactoring to organize code structure and improve maintainability.

Instructions

Move a function to a different file using LSP refactoring

Input Schema

NameRequiredDescriptionDefault
characterNoCharacter position where the function starts
functionNameYesName of the function to move
languageNoProgramming languagetypescript
lineYesLine number where the function is located
sourceFileYesSource file containing the function
targetFileYesTarget file to move the function to

Input Schema (JSON Schema)

{ "properties": { "character": { "default": 0, "description": "Character position where the function starts", "type": "number" }, "functionName": { "description": "Name of the function to move", "type": "string" }, "language": { "default": "typescript", "description": "Programming language", "type": "string" }, "line": { "description": "Line number where the function is located", "type": "number" }, "sourceFile": { "description": "Source file containing the function", "type": "string" }, "targetFile": { "description": "Target file to move the function to", "type": "string" } }, "required": [ "sourceFile", "targetFile", "functionName", "line" ], "type": "object" }

Other Tools from LSP MCP Server

Related Tools

    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/sminnee/lsp-mcp'

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