AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Codex Lsp

mcp-code-yeongyu-codex-lsp · by code-yeongyu

Codex plugin that exposes Language Server Protocol diagnostics and MCP tools

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add mcp-code-yeongyu-codex-lsp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-code-yeongyu-codex-lsp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Codex Lsp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

codex-lsp

[](https://github.com/code-yeongyu/codex-lsp/actions/workflows/ci.yml) [](LICENSE)

Codex plugin that ports the standalone LSP runtime from pi-lsp-client. It gives Codex post-edit diagnostics plus explicit MCP tools for language-aware code work.

Architecture

The LSP runtime moved to lsp-tools-mcp and is consumed here as a git submodule at packages/lsp-tools-mcp/.

  • codex-lsp keeps Codex-specific integration (hook post-tool-use, plugin metadata, package wiring).
  • lsp-tools-mcp owns MCP runtime, LSP manager, and tool implementations.
  • src/cli.ts routes mcp to upstream runtime and keeps hook post-tool-use local.

Behavior

| Case | Result | |------|--------| | apply_patch succeeds | parses tool_input.command, extracts added/updated/moved files, and checks each with LSP error diagnostics | | write / edit / multiedit succeeds | checks path, filePath, or file_path aliases | | diagnostics contain errors | returns Codex PostToolUse blocking feedback and injects the same diagnostics as additional context so Codex fixes the file | | no diagnostics | emits no hook output | | unsupported extension | emits no hook output | | missing configured language server | surfaces the install/config message through hook or MCP output |

Deletes are ignored because they cannot introduce new diagnostics.

MCP Tools

  • lsp.status
  • lsp.diagnostics
  • lsp.goto_definition
  • lsp.find_references
  • lsp.symbols
  • lsp.prepare_rename
  • lsp.rename

lsp.rename applies the returned workspace edit to files. Use lsp.prepare_rename first when possible.

Configuration

Project config:

.codex/lsp-client.json

User config:

~/.codex/lsp-client.json

Example:

{
	"lsp": {
		"typescript": {
			"command": ["typescript-language-server", "--stdio"],
			"extensions": [".ts", ".tsx", ".js", ".jsx"]
		}
	}
}

Built-in server definitions are used when no custom config overrides them. lsp.status shows which configured servers are installed or missing.

Codex Plugin

The plugin ships:

  • .codex-plugin/plugin.json for Codex plugin discovery.
  • .mcp.json for the lsp MCP server.
  • hooks/hooks.json for the PostToolUse diagnostics hook.
  • skills/lsp/SKILL.md with MCP usage guidance.

The runtime depends on @code-yeongyu/lsp-tools-mcp via file:./packages/lsp-tools-mcp, so marketplace builds must include submodule contents.

The hook command is:

node "${PLUGIN_ROOT}/dist/cli.js" hook post-tool-use

The MCP command is:

node ./packages/lsp-tools-mcp/dist/cli.js mcp

Local Development

git submodule update --init --recursive
npm run bootstrap     # installs + builds the lsp-tools-mcp submodule
npm install
npm test
npm run typecheck
npm run check
npm pack --dry-run

The bootstrap script installs and builds the lsp-tools-mcp git submodule so @code-yeongyu/lsp-tools-mcp/dist/*.js is available for the codex-lsp build.

Smoke-test the hook:

node dist/cli.js hook post-tool-use /codex-lsp/0.2.0` and enables:

```toml
[plugins."codex-lsp@code-yeongyu-codex-plugins"]
enabled = true

Branch Rules and Releases

  • main is protected by .github/branch-ruleset.json.
  • CI runs Node 20 and 22 on Ubuntu, macOS, and Windows.
  • Releases are GitHub Releases tagged as v.
  • Publishing runs from the publish workflow after a GitHub Release is published.

Privacy

This plugin runs locally. It starts configured language-server commands on your machine and does not call a network service by itself.

License

[MIT](LICENSE).

Related

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.