Skip to main content
Glama
README.md
<!-- SPDX-FileCopyrightText: 2026 Sebastien Rousseau -->
<!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->

<h1 align="center">agtmls-mcp</h1>

<p align="center">
  Model Context Protocol server for the AgtMLS skill registry — search, read,
  audit and verify skills over JSON-RPC.
</p>

<p align="center">
  <a href="https://github.com/sebastienrousseau/agtmls-mcp/actions"><img src="https://img.shields.io/github/actions/workflow/status/sebastienrousseau/agtmls-mcp/ci.yml?style=for-the-badge&logo=github" alt="Build" height="28" /></a>
  <a href="https://github.com/sebastienrousseau/agtmls-mcp/releases"><img src="https://img.shields.io/github/v/release/sebastienrousseau/agtmls-mcp?style=for-the-badge&color=fc8d62&logo=github&label=Release" alt="Release" height="28" /></a>
  <a href="https://github.com/sebastienrousseau/agtmls-mcp#readme"><img src="https://img.shields.io/badge/docs-reference-blue.svg?style=for-the-badge&labelColor=555555&logo=markdown" alt="Docs" height="28" /></a>
  <a href="https://scorecard.dev/viewer/?uri=github.com/sebastienrousseau/agtmls-mcp"><img src="https://img.shields.io/ossf-scorecard/github.com/sebastienrousseau/agtmls-mcp?style=for-the-badge&label=OpenSSF%20Scorecard&logo=openssf" alt="OpenSSF Scorecard" height="28" /></a>
  <a href="LICENSE-APACHE"><img src="https://img.shields.io/badge/license-Apache--2.0%20OR%20MIT-blue.svg?style=for-the-badge" alt="License: Apache-2.0 OR MIT" height="28" /></a>
  <a href="https://github.com/sebastienrousseau/agtmls-mcp/blob/main/Cargo.toml"><img src="https://img.shields.io/badge/rust-1.89.0%2B-93450a.svg?style=for-the-badge&logo=rust" alt="Rust 1.89.0+" height="28" /></a>
  <a href="https://glama.ai/mcp/servers/sebastienrousseau/agtmls-mcp"><img src="https://glama.ai/mcp/servers/sebastienrousseau/agtmls-mcp/badges/score.svg" alt="Glama MCP server score" height="28" /></a>
</p>

<p align="center">
  <img src=".github/demo.gif" alt="agtmls-mcp Demo" width="100%" />
</p>

---

## Why

By 2027, "an agent discovers a capability" will mean "an agent queried an MCP
server", not "a shell script made some symlinks". A registry that can only copy
files into a directory is cornered: it cannot answer *which* skill, it cannot
say whether the copy is still what was published, and it cannot be asked
anything at all.

## Install

```bash
cargo install agtmls-mcp
claude mcp add agtmls -- agtmls-mcp --registry ~/dev/agtmls
```

```jsonc
// or, for any MCP client that takes a config file
{
  "mcpServers": {
    "agtmls": {
      "command": "agtmls-mcp",
      "env": {
        "AGTMLS_HOME": "/path/to/agtmls",
        "AGTMLS_SPEC": "/path/to/agtmls-spec"
      }
    }
  }
}
```

`AGTMLS_SPEC` is required by `agtmls_audit`. Without a rule set an audit would
report clean because it has *no rules*, which is indistinguishable from a clean
skill — so the tool refuses rather than answering.

## Tools

| Tool | Answers |
| :--- | :--- |
| `agtmls_search` | Which skill? A ranked shortlist, each with its content digest and declared risk |
| `agtmls_show` | The full record for one skill |
| `agtmls_audit` | Is this content safe? Findings with stable rule ids, for a skill or for text you already have |
| `agtmls_digest` | What is this skill's content address, and does it still match the index? |
| `agtmls_verify` | Is this installed tree still what was published? |

## Resources

| URI | Content |
| :--- | :--- |
| `agtmls://index` | The registry index |
| `agtmls://skill/{name}` | That skill's `SKILL.md` |
| `agtmls://skill/{name}/{file}` | Another file belonging to the skill |

Resource URIs arrive from the client, so they are untrusted input. Paths
containing `..`, absolute paths and symlinks are refused rather than resolved —
cheaper to reason about than canonicalising, and not defeatable by a symlink
planted inside a skill.

## What it will not do

- **It never writes to the registry.** A server that can modify the registry it
  vouches for is not a useful thing to trust.
- **It makes no network calls and collects nothing.** A local-first tool that
  phones home has traded its only durable asset.

Both are properties of the code, not promises: there is no HTTP client in the
dependency tree.

## Architecture

Newline-delimited JSON-RPC 2.0 over stdio. All dispatch lives in the library
crate so `cargo test` exercises it directly; the binary is a transport shim —
read a line, hand it to `handle_message`, write the reply if there is one.

A tool failure is returned as content with `isError: true`, never as a JSON-RPC
error. The model is meant to read the failure and decide what to do next; a
protocol error takes that choice away from it.

## Relationship to the rest

```
agtmls-spec     rules + conformance corpus, the normative source
   ├── agtmls        the registry and its Python CLI
   └── agtmls-core   the Rust engine
          ├── agtmls-mcp    this server
          └── agtmls-wasm   @agtmls/wasm
```

`agtmls-core` is pinned to the exact crates.io release (`=0.0.35`). Strict
lockstep is deliberate: this server reports findings by rule id, so a core with
a different rule set would make its answers differ from the CLI's for the same
input.

## License

Dual-licensed under either the [Apache License, Version 2.0](LICENSE-APACHE) or the [MIT License](LICENSE-MIT), at your option.