Periscope logo

Periscope

Bridges MCP clients to a live Neovim configuration for LSP, diagnostics, formatting, linting, DAP, and agent focus coordination.

Install Periscope

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Periscope, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Periscope MCP server brokers MCP requests to a real Neovim instance running the workspace's configuration, exposing its LSP clients, formatter and linter registries, diagnostics, and DAP metadata. It runs as a Rust binary over stdio and communicates with Neovim through msgpack-RPC, either by managing a headless editor or attaching to one already listening. Use it to inspect the same editor configuration used for development, run formatting and linting without writing files, or coordinate multiple agents through the in-process attention board. LSP requests wait for server progress, making results useful for projects where language servers need time to initialize.

Use cases

  • Inspect the LSP servers attached to an open buffer
  • Query definitions, references, hover text, and diagnostics through the editor configuration
  • Run configured formatters and return changed text without writing files
  • Run filetype-specific linters and collect source-labeled diagnostics
  • Coordinate multiple agents around shared file or code targets

Key features

  • Managed or attached Neovim operation
  • LSP navigation, hover, symbols, and diagnostics
  • Formatter and linter registry inspection and execution
  • DAP module, adapter, and configuration discovery
  • In-process multi-agent attention coordination
  • Bounded polling, result sizes, and editor waits

Tools16

What Periscope lets your agent do. Expand a tool for its parameters.

Self-reported~504 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 41d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3d agoMost recent push to the default branch.
Tools exposed16Callable tools this server registers over MCP.

How Periscope works

What Periscope does

Periscope connects an MCP client to a real Neovim process and exposes information from the configuration loaded by that editor. The broker can report Neovim state, configured and attached language servers, formatter and linter modules, DAP modules, diagnostics, symbols, hover text, definitions, and references.

Its execution capabilities are deliberately limited to the editor's existing pipelines. run_format invokes the configuration's formatter pipeline and returns the formatting result as text. run_lint invokes the configured linter runner and returns per-linter status, exit codes, and diagnostics. Formatting changes the brokered buffer but does not write the file to disk.

Four attention tools provide a separate coordination board for agents. Agents can publish an ordered focus, inspect another agent's focus, compare focus documents from the same saliency snapshot, and request a parallel, serialize, or reject decision.

How it works

Periscope is a single Rust executable. MCP traffic uses stdio with NDJSON JSON-RPC, while communication with Neovim uses msgpack-RPC. In managed mode, the default, it starts nvim --headless with a temporary listening socket and the selected workspace as its working directory. The configuration loads in that process, with project-local config execution disabled through noexrc.

Attach mode uses --attach <socket> to connect to an existing Neovim process started with --listen. Periscope does not signal or close an editor it did not start. Its tools execute small Lua programs inside Neovim through nvim_exec_lua and use native APIs such as vim.lsp and vim.diagnostic.

LSP calls poll while servers report progress. Positions use zero-based lines and UTF-16 character offsets, following LSP conventions. Attention state remains in the server process and is discarded when that process exits.

Setup and configuration

Run the binary with the following options:

  • --workspace <dir> selects the directory where managed Neovim starts; it defaults to the current directory.
  • --attach <socket> connects to an already running listening Neovim instance instead of starting one.
  • --nvim-bin <path> selects the Neovim executable.

Register Periscope as a stdio MCP server in the client that manages MCP connections. A configuration can provide the executable path and arguments, including a workspace or attach socket. The example integration uses a declared_servers entry in lua/ai/mcp/declared_servers.lua; its cmd, arguments, and timeout should be adapted to the local installation.

Tools and capabilities

Read-oriented tools include broker_status, get_diagnostics, get_definition, get_document_symbols, get_hover, get_references, list_dap, list_formatters, list_linters, and list_servers. Diagnostics identify their producing source, while symbol results include containers and server listings combine configured servers with those attached to open buffers.

run_format accepts optional formatter names and an LSP mode of fallback, never, or only. run_lint can use named linters or the filetype's configured set. The attention tools enforce client identity and advancing sequence numbers when agents publish focus documents, which contain an agent ID, snapshot hash, sequence, and up to eight targets.

Limitations and notes

The transport is stdio-only; Periscope does not listen on a network port. Managed Neovim uses a private temporary socket that is removed during shutdown, and the broker reaps the child it created. No tool writes files, renames symbols, starts a debug session, or persists attention state.

Calls have bounded waits and result sizes: editor attachment is limited to 20 seconds, LSP request processing to 30 seconds, diagnostic settling to 5 seconds, connection setup to 10 seconds, and editor readiness to 20 seconds. Results are capped at 500 diagnostics locations, 1,000 document symbols with depth six, and 500 definition or reference locations. MCP input lines are capped at 4 MiB, and forwarded editor errors at 512 characters. Tool failures are returned as in-band MCP isError results.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Periscope

Periscope is an MCP server that connects agents to a live Neovim instance and its existing configuration. Its main tools expose LSP definitions, references, hover, symbols, diagnostics, configured servers, formatters, linters, and DAP data, while also running the configured formatting and linting pipelines without writing files.

Register the Periscope executable as a stdio MCP server and adapt its command path and arguments for your environment. Use `--workspace <dir>` to choose the managed Neovim workspace, or use `--attach <socket>` to connect to an existing Neovim process started with `--listen`.

Yes. `run_format` applies the configured formatter pipeline to the brokered Neovim buffer and returns the formatted text, but it never writes the file to disk. The tool can use selected formatter names and supports `fallback`, `never`, and `only` LSP modes.

Yes. Its attention tools provide an in-process coordination board where agents publish and inspect ordered focus documents. Agents can compare focus within the same saliency snapshot or receive a parallel, serialize, or reject coordination decision.

No. Periscope can list DAP modules, adapters, and configurations registered in the Neovim session, but its tools do not start a debug session.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPeriscope AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/periscope-2?style=directory)](https://allmcps.com/mcp/periscope-2)
HTML Embed
<a href="https://allmcps.com/mcp/periscope-2"><img src="https://allmcps.com/api/badge/periscope-2?style=directory" alt="Periscope on AllMCPs" /></a>