# sofagent MCP server

> An open-source FDE Harness that provides governance, auditing, and workflow constraints for AI coding agents.

- Repository: https://github.com/KongFangXun/sofagent
- Page: https://hostedmcp.org/servers/kongfangxun/sofagent
- Transport: stdio
- Stars: 56
- License: MIT

## Install

### Claude Code

```sh
claude mcp add sofagent -- npx -y @sofagent/audit
```

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

```json
{
  "mcpServers": {
    "sofagent": {
      "command": "npx",
      "args": [
        "-y",
        "@sofagent/audit"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "sofagent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sofagent/audit"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"sofagent","type":"stdio","command":"npx","args":["-y","@sofagent/audit"]}'
```

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

```json
{
  "mcpServers": {
    "sofagent": {
      "command": "npx",
      "args": [
        "-y",
        "@sofagent/audit"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add sofagent -- npx -y @sofagent/audit
```

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

```toml
[mcp_servers.sofagent]
command = "npx"
args = ["-y", "@sofagent/audit"]
```

### Gemini CLI

```sh
gemini mcp add -s user sofagent npx -- -y @sofagent/audit
```

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

```json
{
  "mcpServers": {
    "sofagent": {
      "command": "npx",
      "args": [
        "-y",
        "@sofagent/audit"
      ]
    }
  }
}
```

## FAQ

### Does sofagent replace my existing AI agent?

No, it does not create agents; instead, it provides a governance layer that sits between mature agents and the model layer.
