Skip to main content
Glama

Serena MCP Server

by lin2000wl

insert_at_line

Inserts specified content at a specific line in a file, shifting existing content down. Ideal for targeted edits within code or text files without replacing entire sections. Suitable for precise modifications in a codebase.

Instructions

Inserts the given content at the given line in the file, pushing existing content of the line down. In general, symbolic insert operations like insert_after_symbol or insert_before_symbol should be preferred if you know which symbol you are looking for. However, this can also be useful for small targeted edits of the body of a longer symbol (without replacing the entire body).

Input Schema

NameRequiredDescriptionDefault
contentYesThe content to be inserted.
lineYesThe 0-based index of the line to insert content at.
relative_pathYesThe relative path to the file.

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "The content to be inserted.", "title": "Content", "type": "string" }, "line": { "description": "The 0-based index of the line to insert content at.", "title": "Line", "type": "integer" }, "relative_path": { "description": "The relative path to the file.", "title": "Relative Path", "type": "string" } }, "required": [ "relative_path", "line", "content" ], "title": "applyArguments", "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/lin2000wl/Serena-cursor-mcp'

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