Operator Setup
Operator Editor is a document editor with MCP server integration for reading and writing documents.
When to Use
Activate when:
- •User mentions "Operator" for the first time in a session
- •Authentication is needed to access Operator
- •User needs help setting up their
.operatorconfiguration
Configuration File
The .operator file stores credentials in the working directory:
code
OPERATOR_API_KEY=mcp_xxx... OPERATOR_SESSION_ID=abc123...
Authentication Flow
- •
Check for
.operatorfile- •If absent: Offer to create it (see "First-Time Setup" below)
- •
Check for cached session ID
- •If
OPERATOR_SESSION_IDexists, try using it directly - •Sessions are valid for 24 hours
- •If
- •
If session is expired or missing
- •Authenticate using
OPERATOR_API_KEY - •Update
.operatorfile with the newOPERATOR_SESSION_ID - •This avoids creating unnecessary new sessions
- •Authenticate using
First-Time Setup
If no .operator file exists, explain the options:
- •Provide API key directly for this session only (no file created)
- •Create
.operatorfile to persist credentials
If they choose option 2, be explicit: "I'll create a .operator file with your
API key and add it to .gitignore to keep it out of version control." Get
confirmation before creating files.
Session Reuse
Always prefer reusing an existing session:
- •Same project = same session (within 24 hours)
- •Only re-authenticate when the session is expired
- •Update the file with new session ID after re-authentication
After Setup
Once authenticated, use the MCP tools directly - their descriptions provide all operation details.