Skip to main content
Glama
camilochs

vitela-bridge

by camilochs

vitela-bridge

The agent bridge for Vitela, the editor for ExactTeX.

It is a small program that runs on your machine. Your coding agent talks to it over the Model Context Protocol (MCP); it talks to the Vitela tab open in your browser. Every tool the agent calls runs inside that tab — the project, the compiler and the TeX engine are all there — and the answer comes back. Nothing leaves your machine.

One rule makes it safe to hand an agent the keys: the agent never edits text. A change it proposes lands in your document as an ExactTeX revision, signed agent, that you accept or reject in Vitela's review margin like any other suggestion.

The full guide, with screenshots: https://vitela.artificialfallibility.com/agent.

Install

Node 20 or newer. No install step: npx fetches and runs it.

Claude Code

claude mcp add vitela-bridge -- npx -y github:camilochs/vitela-bridge

Codex

codex mcp add vitela-bridge -- npx -y github:camilochs/vitela-bridge

Cursor, Windsurf, Zed, Claude Desktop and other MCP clients — add to the client's MCP configuration:

{
  "mcpServers": {
    "vitela-bridge": {
      "command": "npx",
      "args": ["-y", "github:camilochs/vitela-bridge"]
    }
  }
}

Related MCP server: cursor_worker

Pair

  1. Start your agent. The bridge starts with it and prints a six-digit code; ask the agent for it (the bridge_status tool returns it).

  2. Open Vitela, press Agent in the header, type the code. The card says Connected.

  3. Work. The agent reads the project, runs the check, compiles, verifies the bibliography, and proposes changes you accept or reject in the margin.

The code changes every time the bridge starts. A reload of the tab keeps the pairing.

Tools

Tool

What it does in the tab

bridge_status

Whether a tab is paired, and the pairing code

projects_list, project_open

The projects in the tab; switch to one

files_list, file_read

The open project's files and assets; read one

check

The ExactTeX check: diagnostics, coverage, bibliography state

compile

Compile to PDF; page count and diagnostics

claims, verify

The document's external claims; verify them against the public registries and write the dated record

report

The submission report's data

revision_propose

Propose an addition, deletion or substitution as a revision the author accepts or rejects. Signed with the client and version (read from the MCP handshake) and the model and provider the agent states — e.g. agent · claude-code 2.1.250 · claude-fable-5-1 (Anthropic) — so every proposal is traceable

revisions_list

Pending revisions and their authors

Configuration

Variable

Default

Meaning

VITELA_BRIDGE_PORT

4329

The local port the tab connects to

VITELA_BRIDGE_HOST

127.0.0.1

Bind address. 0.0.0.0 to reach a tab on another machine of your own network (a dev server over a tailnet, for instance)

VITELA_BRIDGE_CODE

random

Fix the pairing code (tests)

The tab connects to the bridge on the machine that serves the page for a plain-http dev server, and on 127.0.0.1 for localhost and for the published site.

License

MIT.

If the bridge is useful to you, a star on this repository helps others find it — and tells us it is worth the care.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides bounded repository context and edit-grant MCP tools to coding agents such as Codex, indexing local repositories and enabling fingerprint-checked patch application.
    13
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to access live VS Code editor state, symbol navigation, diagnostics, and language-aware editing through MCP, bridging the gap between what the agent can infer from disk and what the editor actually knows.
    MIT

Latest Blog Posts

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/camilochs/vitela-bridge'

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