Skip to main content
Glama

gz-mcp-lsp

An independent Python counterpart to Isaac Phi’s mcp-language-server, focused on reliable ty-backed semantic navigation for Codex through MCP.

Status: plan approved on 2026-11-01; implementation complete through T11; T12 measured with cognitive qualification unresolved. All nine tools have installed MCP/ty evidence and actual Codex invocation/approval checks; the full milestone remains unaccepted.

The intended path is:

Codex → MCP (stdio) → gz-mcp-lsp → LSP (stdio) → ty server

The proposed scope is one workspace and one Astral ty process. Functional parity includes all six reference tools: definition, references, diagnostics, hover, rename_symbol and edit_file. Exact URI/identifier positions correct ambiguous name-resolution behavior. New tools are limited to document symbols, workspace symbols and implementations; hover carries semantic type information.

Rename/edit use operator-enabled preview/apply with workspace containment, conflict checks and durable recovery; the design does not promise portable atomic multi-file changes. No request-time installation, network service, second language server or general-purpose LSP framework is planned. The complete milestone is accepted parity, semantic corrections/extensions, real Codex interoperability, engineering evidence, then a deliberate stop.

Continue from the project handoff. The current discussion is pre-1.0 release readiness for PyPI, GitHub releases, GitHub Pages and Read the Docs, with a proposed version of at least 0.2.0; package metadata remains 0.1.0. Cognitive qualification stays an open gap and strict G5 is incomplete. T13 is not run. See the releasability assessment and T11 acceptance evidence for verification limits.

Read the revised architectural specification, version-pinned parity assessment, acceptance matrix, and approved implementation plan. Current design-revision evidence is separate from the historical initialization evidence. See the license review for attribution/dependency boundaries.

Development

Use uv >=0.13.6 and managed CPython 3.14.10. CI tests uv 0.13.8. The exact interpreter is in .python-version; dependencies and tools are resolved in uv.lock. This is a standalone src/gz_mcp_lsp package using uv_build. Version 0.1.0 identifies the unreleased development package, independent of starter version 0.9.0.

git clone https://github.com/tvproductions/gz-mcp-lsp.git
cd gz-mcp-lsp
uv sync --locked --all-groups
uv run --locked pre-commit install
uv run --locked pre-commit run --all-files
uv build --no-sources
uv run --locked python tools/verify_distribution.py

Supported local and hosted uv versions need not match CI. Record the actual executable/version and ensure nested hooks resolve it consistently. If uv is below the minimum, use uv tool run --from uv==0.13.6 uv ... or another supported version. See the compatibility policy. The four routine hooks run Ruff check/format, ty and unittest, including actual pinned-ty and outside-checkout installed nine-tool integration tests. Fixture setup uses the exported runtime lock graph before MCP calls. Packaging checks alone are not semantic acceptance. Inherited engineering utility tests run separately, outside the routine gate. Deeper adoption/release analysis remains outside routine hooks and CI; see the evidence record.

Install the development wheel with uv pip install --python /path/to/clean/venv/bin/python dist/gz_mcp_lsp-0.1.0-py3-none-any.whl. The development package declares official mcp==2.3.0 and provides the stdio CLI gz-mcp-lsp --config /absolute/path/to/settings.json. T6 implements definition, references, diagnostics and hover with exact URI/UTF-16 positions, complete authorized declaration source and saved-byte generation checks. See navigation evidence and pull-diagnostic evidence. See the T4 receipt and actual Codex checkpoint. There is no published installation, PyPI release or tag. Local Windows x86_64 and Linux x86_64 gates pass; verify hosted platform results for the exact branch commit through the Actions link in the handoff.

Related MCP server: lsp-mcp-server

Codex registration (development)

The CLI, JSON schema and all nine tools exist in the development package. The T11 acceptance record distinguishes installed/runtime checks, native host approval protocol evidence and platform results. This example requires a separately installed development wheel. Provision the adapter and ty before registration; do not use request-time uvx or another launcher that may fetch dependencies.

[mcp_servers.gz_mcp_lsp]
command = "/absolute/path/to/preinstalled/bin/gz-mcp-lsp"
args = ["--config", "/absolute/path/to/settings.json"]
startup_timeout_sec = 30
tool_timeout_sec = 60

[mcp_servers.gz_mcp_lsp.tools.rename_symbol]
approval_mode = "prompt"

[mcp_servers.gz_mcp_lsp.tools.edit_file]
approval_mode = "prompt"

Example application settings.json:

{
  "schema_version": 1,
  "workspace_root": "/absolute/path/to/workspace",
  "ty_executable": "/absolute/path/to/preinstalled/bin/ty",
  "request_timeout_seconds": 20
}

The settings loader implements this JSON contract without environment-variable overrides; see configuration. The CLI fixes transport to stdio. Codex's native TOML remains its own contract. The host supports stdio launch commands in trusted project .codex/config.toml; see official Codex MCP documentation. Do not add this development entry to the adopted engineering plugin configuration yet. For a supported Linux adapter launched by a Windows host, see the isolated WSL registration example.

Contribution and security

Read CONTRIBUTING.md, SECURITY.md and AGENTS.md. Keep private code, paths, logs and credentials out of public fixtures and issues.

Acknowledgments and license

Isaac Phi's mcp-language-server, reviewed at v0.1.1, informed the idea of exposing language-server navigation through MCP and provides the functional baseline for the revised specification. gz-mcp-lsp is an independent Python implementation; no upstream source has been ported or copied. It is not an official fork or upstream continuation, and is not affiliated with Astral or OpenAI.

This repository was generated directly from tvproductions/gz-skills-first-starter. Its adopted published baseline is v0.9.0 at 3f76acf0038b030bf5abd85ce4a419e890d3e420, recorded in .skills-first/bundle.lock.json. The inherited policy and analysis tools retain their provenance and notices. Historical starter documents describe that project, not delivered adapter behavior; see documentation scope. Superpowers and gz-skills remain independently owned native plugins; Backplane is deferred and disabled. The user selected the lite lane.

The project independently selects Superpowers v7.0.2 and gz-skills v0.10.1 with starter v0.9.0. Backplane v0.2.0 remains disabled. The existing skills-first-starter marketplace identity reads this repository's project-owned catalog on main; every component in that catalog has an immutable full commit pin. See the November 11 maintenance receipt for rollback pins, source reconciliation, verification and remaining acceptance gaps.

Original project work and inherited starter material use the MIT license. Upstream projects and future dependencies retain their own licenses; see NOTICE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    • The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.

      https://mcp.remote-mcp.com
    • The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.

      https://mcp.cortex.io/mcp
    • The context platform for AI agents: code search, team decisions, and grounded project context.

      https://mcp.contextstream.io/mcp
    • Coding agents in multi-service codebases routinely rebuild existing helpers, trust stale type definitions, and modify API contracts without knowing who consumes them. Carrick solves this by indexing your entire TypeScript ecosystem across service and repository boundaries. By integrating deeply with the TypeScript compiler, Carrick traces every route, type, and cross-service call while recording function behaviour so agents search by intent rather than name. Delivered via MCP for AI agents and LSP for IDEs, Carrick ensures models see existing endpoints and utilities before generating new code. The scanner is source-available and runs from your CLI or CI pipeline.

      https://api.carrick.tools/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      Bridges the Model Context Protocol with Language Server Protocol to provide AI agents with persistent access to code intelligence features including navigation, diagnostics, refactoring, and completion across 7+ programming languages.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes type-aware code navigation and fast file search to AI agents via language servers, enabling definitions, references, symbols, and file lookup without reading entire codebases.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to obtain real-time language-server diagnostics, type information, symbol definitions, references, and workspace-wide renames directly from open editor instances, avoiding slow external type and lint checks.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP-compatible AI coding agents to retrieve real-time language-server diagnostics, type and symbol information, definitions, references, workspace-wide renames, and file operations from an open editor. This provides accurate code navigation and editing context without waiting for slow tsc or eslint checks.
      MIT