Skip to main content
Glama

CodeAnalysis MCP Server

by 0xjcf

analyze-cursor

Identifies and analyzes code context around a cursor position to support syntax analysis, dependency checks, and AI-assisted development workflows.

Input Schema

NameRequiredDescriptionDefault
columnYesCursor column position (1-based)
contextYesContext around cursor
fileContentYesContent of the file
filePathYesPath to the file
lineYesCursor line position (1-based)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "column": { "description": "Cursor column position (1-based)", "type": "number" }, "context": { "additionalProperties": false, "description": "Context around cursor", "properties": { "after": { "description": "Lines after cursor", "items": { "type": "string" }, "type": "array" }, "before": { "description": "Lines before cursor", "items": { "type": "string" }, "type": "array" }, "target": { "description": "Line at cursor", "type": "string" } }, "required": [ "before", "target", "after" ], "type": "object" }, "fileContent": { "description": "Content of the file", "type": "string" }, "filePath": { "description": "Path to the file", "type": "string" }, "line": { "description": "Cursor line position (1-based)", "type": "number" } }, "required": [ "filePath", "fileContent", "line", "column", "context" ], "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/0xjcf/MCP_CodeAnalysis'

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