MCP setup
Gloss serves MCP over streamable HTTP at /mcp on the same port as the web UI
(default http://localhost:4747/mcp). The server must be running (gloss .)
for the AI to reach it. There is no stdio mode.
Claude Code
Either use the CLI:
claude mcp add --transport http gloss http://localhost:4747/mcp
or commit a .mcp.json at your project root:
{
"mcpServers": {
"gloss": {
"type": "http",
"url": "http://localhost:4747/mcp"
}
}
}
If you start Gloss with -port, change the URL to match.
Other clients
Any client that supports streamable HTTP can connect to the same URL. There is no authentication, so the server only listens locally. Don't expose the port.
Attribution
Every write made over MCP is recorded as author_type=ai. The author_agent
defaults to the client name sent in the MCP initialize handshake, and any write tool accepts an
explicit author_agent to override it.
Tools
| Group | Tool | Purpose |
|---|---|---|
| Sessions | create_session | Start a review session |
list_sessions | List sessions, optionally by status | |
get_session | One session with stats | |
| Threads | create_thread | Start a thread on a file, anchored to a line range or CSV cell |
get_thread | A thread with its full comment chain | |
list_threads | Filter by file, directory, type, anchor status or author | |
resolve_thread | Mark resolved | |
reopen_thread | Reopen a resolved or orphaned thread | |
| Comments | add_comment | Reply in a thread |
edit_comment | Edit a comment | |
delete_comment | Soft-delete a comment | |
| Repos | list_repos | The repository Gloss was started against |
get_repo | Repository details and session count |
Full parameter shapes are in the MCP API reference.