# contextweaver MCP server

> Creates deterministic snapshots of agent capabilities from OpenAPI, MCP, or native catalogs to detect semantic drift and breaking changes.

- Repository: https://github.com/dgenio/contextweaver
- Page: https://hostedmcp.org/servers/dgenio/contextweaver
- Transport: stdio
- Stars: 9
- License: Apache-2.0
- Latest version: 0.18.2

## Install

### Claude Code

```sh
claude mcp add contextweaver -- uvx contextweaver
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "contextweaver": {
      "command": "uvx",
      "args": [
        "contextweaver"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "contextweaver": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "contextweaver"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"contextweaver","type":"stdio","command":"uvx","args":["contextweaver"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "contextweaver": {
      "command": "uvx",
      "args": [
        "contextweaver"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add contextweaver -- uvx contextweaver
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.contextweaver]
command = "uvx"
args = ["contextweaver"]
```

### Gemini CLI

```sh
gemini mcp add -s user contextweaver uvx -- contextweaver
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "contextweaver": {
      "command": "uvx",
      "args": [
        "contextweaver"
      ]
    }
  }
}
```

## FAQ

### What does the verify command do?

It checks the D1 snapshot contract, including structure, deterministic ordering, logical-ID uniqueness, and the canonical capability digest.

### Is ContextWeaver a complete JSON-Schema compatibility checker?

No, it flags changes to fields like required, type, or enum as potentially breaking, but it does not claim to be a complete checker.
