Skip to main content
Glama

CompText MCP

Pip-installable MCP bridge for OpenCode, Rust workspaces, CompText CLI, replay digests, and deterministic context packs.

This package does not run a local LLM and does not download models. It exposes safe tools that call the existing Rust CLI (ctxt) and Rust/Cargo commands.

Install

Windows:

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\pip.exe install .

Linux/macOS:

python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install .

Related MCP server: rust-faf-mcp RMCP

Requirements

You need ctxt available either in PATH or through CTXT_BIN.

Windows:

$env:CTXT_BIN="C:\path\to\ctxt.exe"
$env:CTXT_WORKDIR="C:\path\to\rust-project"
$env:CTXT_MCP_READ_ONLY="1"

Linux/macOS:

export CTXT_BIN="/usr/local/bin/ctxt"
export CTXT_WORKDIR="/path/to/rust-project"
export CTXT_MCP_READ_ONLY=1

OpenCode config

Windows example:

{
  "mcpServers": {
    "comptext": {
      "type": "stdio",
      "command": "C:/path/to/comptext-mcp/.venv/Scripts/comptext-mcp.exe",
      "env": {
        "CTXT_WORKDIR": "C:/path/to/rust-project",
        "CTXT_BIN": "C:/path/to/ctxt.exe",
        "CTXT_MCP_READ_ONLY": "1",
        "CTXT_TIMEOUT_SECS": "30"
      }
    }
  }
}

Tools

  • comptext_status

  • comptext_pack_context

  • comptext_rust_audit

  • comptext_replay_digest

  • comptext_contract_check

  • comptext_github_pack

  • comptext_hf_export_pack

Safety defaults

  • read-only by default

  • no shell=True

  • no cargo run

  • no cargo install

  • no cargo publish

  • cargo test is only allowed with --no-run

  • excludes .env, keys, certs, .git, target, node_modules, dist, build

Build wheel

python -m pip install --upgrade build
python -m build

Result:

dist/comptext_mcp-0.1.0-py3-none-any.whl
Install Server
A
license - permissive license
B
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

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/ProfRandom92/comptext-mcp'

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