MCP Servers
Updated
RightNow Agent, the terminal coding agent, is paused. Its guides stay online as reference.
MCP (Model Context Protocol) servers add external tools to RightNow Agent. Define them under [mcp_servers.NAME] in config.toml.
Transports
| Transport | Keys | Connection |
|---|---|---|
| stdio | command, args, env | Spawns a local process and talks over stdin and stdout. |
| streamable HTTP | url, headers | Connects to a remote endpoint. |
The CLI accepts http and sse; both connect through the streamable HTTP client.
Template: replace the package, path, server URL, and environment-variable name before saving this in config.toml.
startup_timeout_sec defaults to 30 seconds, tool_timeout_sec defaults to 6,000 seconds, and tool_timeouts sets per-tool overrides. On Windows, a bare npx resolves through PATHEXT, so no cmd /c wrapper is needed.
Limits and environment expansion
MCP_TIMEOUTis milliseconds, whileRIGHTNOW_is seconds. A server'sMCP_ STARTUP_ TIMEOUT_ SECS startup_timeout_sectakes precedence over both.- Large results are truncated at 20,000 bytes by default, with the full payload stored under the session's
mcp/directory.RIGHTNOW_MAX_MCP_OUTPUT_BYTEStakes precedence overMAX_MCP_OUTPUT_BYTES;[mcp] max_output_bytessets it inconfig.toml. - String values in
url,command,args,env, andheadersexpand${VAR}and${VAR:-default}when configuration loads.
User and project scope
| File | Scope |
|---|---|
| ~/.rightnow/ | User, all projects. Lowest of the config.toml files; servers from other tools rank below it. |
| <repo>/ | Repository. |
| <cwd>/ | Current directory. Highest priority. |
Every directory from the repository root down to the current one is read. A project server replaces a same-named user server; fields do not merge.
Servers run with your privileges and their own network and credential access. RightNow Agent 1.0.5 starts project servers from .rightnow/config.toml, .mcp.json, and .cursor/mcp.json without a folder-trust prompt; review a repository's files before running RightNow in it.
Command-line management
The read-only list marks project-scoped and disabled entries.
Uppercase words are placeholders. The transport defaults to stdio. Add writes user scope unless --scope project is supplied.
| Action | Syntax |
|---|---|
| JSON list | rightnow mcp list --json |
| Add stdio | rightnow mcp add NAME -e KEY=value -- COMMAND ARG |
| Add remote | rightnow mcp add --transport http NAME URL -H "NAME: VALUE" |
| Enable or disable | rightnow mcp enable NAME / rightnow mcp disable NAME |
| Diagnose | rightnow mcp doctor [NAME] [--json] |
| Remove | rightnow mcp remove NAME [--scope user|project] |
- Both
-eand-Hare repeatable. Environment and header values are stored verbatim, so reference secrets as${VAR}in project configuration. - Names given to
addmay contain only letters, digits, hyphens, and underscores.disablewrites the userconfig.toml;enabledoes too, and clearsenabled = falsein the nearest project file that defines the server.removeneeds--scopewhen both scopes define the name.
Authentication
bearer_token_env_varnames an environment variable whose value becomes the Bearer token.- OAuth configuration can provide a client ID, a client-secret environment-variable name, and requested scopes. Use
oauth_client_id,oauth_client_secret_env_var, andoauth_scopes. - Authenticate a supported OAuth server from
/mcps. Browser OAuth tokens are stored inmcp_credentials.jsonunder the effective product home; on Unix the file uses owner-only permissions.
Runtime controls and discovery
/mcpsopens the MCP Servers tab:Spacetoggles,Enterlists tools,rreloads,iauthenticates,aadds, andxremoves a local server.- Tool names use
server__tool, such asgithub__create_issue. search_toolfinds tools across enabled servers;use_toolcalls one by its full name.
Servers from other tools
Also read in place, below config.toml:
| File | Turn off with |
|---|---|
| ~/.claude.json | [compat.claude] mcps = false |
| ~/.cursor/ | [compat.cursor] mcps = false |
| .mcp.json | No switch; /import-claude (import or dismiss) stops it. Read from the current directory up to the repository root. |
- On a name conflict,
config.tomlwins, then Claude Code, Cursor, and.mcp.json.rightnow inspectshows each server's origin. /import-claudecopies Claude Code servers intoconfig.toml; afterwards~/.claude.jsonand.mcp.jsonare no longer read.- Codex servers are not read in place. The Windows helper, run from the agent repository root, imports Claude Code or Codex definitions with
-WithMcp; see the migration guide.
Organization policy for MCP servers is covered in the plugins guide. If a server will not connect, run rightnow mcp doctor; a stdio server's stderr is saved to logs/mcp/NAME.stderr.log under the product home. Then continue with troubleshooting.