Confirm account access
Ask whether the user can already sign in to app.cfo.ai. If they cannot, direct them to create or access their account and complete any required setup in the browser. Wait for the user to finish browser-only steps. Never ask for their password, verification code, payment details, or authorization token.Register the MCP server
The production server URL is:https://api.cfo.ai/mcp as a remote HTTP MCP server named cfoai.
If you cannot execute a setup command, give the matching command to the user and wait for them to complete it.
Complete browser authentication
The user approves the connection in a browser while signed in to cfo.ai.- In Claude Code, restart the session if needed, open
/mcp, selectcfoai, and choose Authenticate. - In Codex, run
codex mcp login cfoaiand approve the connection in the browser. - In another client, follow its normal OAuth or remote-MCP authorization flow.
Verify the connection and workspace
Confirm that the client listscfoai and exposes its tools. A user with one workspace can usually use that workspace automatically. If the user has access to more than one workspace, call list_orgs and pass the intended workspace’s ID or slug as org_id on subsequent calls.
Use a read-only inspection call to verify access before reporting success. If the client does not see the newly registered server, restart the session and check its MCP server list again.
Understand the Model before changing it
The MCP connection provides cfo.ai’s modeling instructions during initialization. When the connected client exposesinspect_reference, use it to read the relevant product guidance. Use the available inspect_variables, inspect_dimensions, and inspect_table_blocks tools to understand the existing workspace before creating or changing content.
The important mental model is:
- A workspace contains a financial Model, Pages, Scenarios, Variables, Dimensions, and connected data.
- Main is the primary working Scenario. Use a different Scenario when the user wants a saved alternative.
inspect_variables,inspect_dimensions, andinspect_table_blocksread the existing Model.edit_table_blockschanges visible saved tables and their formulas.edit_variableschanges Variable definitions or genuinely table-independent formulas.- Write operations apply to the user’s live Model and must match the user’s request and workspace access.
Troubleshoot access
- If
cfoaiis missing, restart the client and check whether the server registration succeeded. - If browser authentication fails, confirm that the user is signed in to the intended cfo.ai account and has access to the intended workspace.
- If tools report authorization errors after a previous success, repeat the client’s authentication flow.
- If a workspace is ambiguous, call
list_orgsand pass the intended workspace asorg_id.