AI Agent Integration
Connect AI coding agents like Claude Code, Cursor, and others to your Simple Commenter projects. The agents fetch feedback, understand what needs fixing, fix the code, and update comment status — all automatically.
How It Works
Simple Commenter provides an MCP (Model Context Protocol) server that AI coding agents use to communicate with your projects. The MCP server exposes five tools:
| Tool | Description |
|---|---|
| list_projects | List all websites/projects in your account |
| list_comments | List comments with filters (status, priority, page, search) |
| get_comment | Full detail — DOM element XPath, screenshot, click position, replies |
| update_comment_status | Mark as in_progress, done, etc. |
| reply_to_comment | Reply with what you found and fixed |
Setup
Step 1: Install the MCP Server
npm install -g @simple-commenter/mcp-server
Or use npx without installing globally — the setup wizard handles everything:
npx @simple-commenter/mcp-server init
Step 2: Run the Setup Wizard
simple-commenter-mcp init
The wizard will:
- Authenticate with your email and a 6-digit code
- Let you pick a default project
- Configure status preferences for AI workflows
- Auto-create a
.mcp.jsonin your project root
Step 3: Restart Your AI Tool
Restart Claude Code, Cursor, or whichever AI tool you use. The MCP server will be available automatically.
Verify Your Setup
simple-commenter-mcp doctor
This checks Node.js version, config, API connectivity, and .mcp.json — reports pass/fail for each.
Typical Workflow
Ask your AI agent:
"Check Simple Commenter for open feedback and fix the issues"
The agent will:
- Call
list_projectsto find your project - Call
list_commentswithstatus=todoto get open issues - Call
get_commenton each to see the element, screenshot, and page URL - Mark comments as
in_progresswhile working - Fix the code
- Reply with what was fixed
- Mark as
done
Configuration
.mcp.json (auto-created by init)
{
"mcpServers": {
"simple-commenter": {
"command": "simple-commenter-mcp",
"args": ["serve"]
}
}
}
Environment Variable (CI / Docker)
For automated environments, pass the token as an environment variable instead of using the config file:
{
"mcpServers": {
"simple-commenter": {
"command": "npx",
"args": ["@simple-commenter/mcp-server", "serve"],
"env": {
"SIMPLE_COMMENTER_API_TOKEN": "your-token"
}
}
}
}
You can generate a token from the AI Agent dashboard or via CLI login.
Authentication Priority
The server checks for credentials in this order:
--token <token>CLI flagSIMPLE_COMMENTER_API_TOKENenvironment variable~/.simple-commenter/config.json(frominitcommand)
Managing Tokens
Go to Account > AI Agent in the dashboard to:
- View all connected AI agent tokens
- Generate new tokens for CI or additional agents
- Revoke tokens that are no longer needed
Tokens generated via the dashboard or CLI login are shown with a prefix only — the full token is displayed once at creation time. Store it securely.
CLI Commands
| Command | Description |
|---|---|
| simple-commenter-mcp init | Setup wizard — login + pick project |
| simple-commenter-mcp serve | Start MCP server (default, used by AI tools) |
| simple-commenter-mcp doctor | Health check — verify setup + connectivity |
| simple-commenter-mcp status | Show account info + projects |
| simple-commenter-mcp reset | Remove config + .mcp.json (clean slate) |
login and logout still work as aliases for init and reset.
Supported AI Tools
The MCP server works with any tool that supports the Model Context Protocol:
- Claude Code — Anthropic's CLI coding agent
- Cursor — AI-powered code editor
- Any MCP-compatible agent — The protocol is open and growing
Security
- Credentials are stored in
~/.simple-commenter/config.jsonwithchmod 600(owner-only) - The server warns if file permissions are too open
- For shared machines, use environment variables instead of the config file
- Add
.simple-commenter/to your.gitignore
Never commit your API token to version control. Use environment variables in CI/CD pipelines.
Troubleshooting
Common Issues
| Check | Fix |
|---|---|
| Config file not found | Run simple-commenter-mcp init |
| No authentication token | Run init or set SIMPLE_COMMENTER_API_TOKEN |
| API connection failed | Check your internet connection; verify the API URL |
| No default project set | Run init and select a project |
| .mcp.json not found | Run init from your project root (where package.json or .git is) |
Still Having Issues?
Run simple-commenter-mcp doctor for a full diagnostic check, or contact support.