Choose an authentication method
Both methods use the same product gateway:
Before you connect
- Create or sign in to an ApexGenius account.
- Connect the supported apps you want the agent to use. Check the account and any selected resources for each connection.
- Add any reusable skills you want to make available to the agent.
- For Salesforce work, create the intended project and authorize the correct production org or sandbox.
- Confirm your AI client supports your chosen authentication method and that your workspace permits the connection.
- Check your ApexGenius account access in Settings → Billing.
Connect with OAuth
Start with the guide for your client. For Codex, open Plugins in the ChatGPT desktop app; manual MCP settings are an alternative in its guide.Claude
Add a custom connector and approve ApexGenius.
ChatGPT
Create a custom MCP app where your plan and workspace allow it.
Codex
Start in Plugins in the ChatGPT desktop app. Desktop settings and optional CLI setup are also covered.
Cursor
Add a remote server in Cursor MCP settings.
VS Code
Add an HTTP server in
mcp.json.1
Add ApexGenius in your AI client
Use its supported app, plugin, connector, or remote MCP setup. If it asks for a server URL, enter
https://server.autom8.pro/mcp.2
Sign in and review access
Follow the browser authorization opened by the client. Sign in to the ApexGenius account that holds your apps and skills, then review the requested access before approving.
3
Return to your agent
Enable ApexGenius in the conversation or task, if your client requires it. The client handles the OAuth token exchange and supported token refresh.
4
Check the saved access
Open Connected AI in ApexGenius and review the agent’s selected connections and scope before its first task.
OAuth details for connector developers
OAuth details for connector developers
ApexGenius supports the OAuth authorization-code flow with PKCE S256 and the
refresh_token grant. Public clients use token_endpoint_auth_method: none; the PKCE verifier protects the authorization-code exchange.Discover the current metadata before configuring a custom client. Register the client’s redirect URI, generate a verifier and S256 challenge, and request an authorization code for the advertised
mcp scope and https://server.autom8.pro/mcp resource. The authorization request must include the S256 challenge; the token exchange must include its matching verifier and the registered redirect URI.Keep the resource consistent through authorization, token exchange, and refresh. Store tokens securely and replace them with the values returned by a successful refresh. Send the access token as Authorization: Bearer YOUR_ACCESS_TOKEN. A user’s existing Google or Salesforce token is not an ApexGenius gateway credential.Connect with an API key
Use a dedicated key for each agent or custom connector so its access can be managed separately.1
Add an agent in ApexGenius
Open Connected AI, choose Add an agent, then select Another AI agent. This opens the manual API-key path.
2
Choose connections and tools
Keep only the app connections this agent needs. Choose Read only for lookups, Custom for specific read and write tools, or Full access for every enabled tool on the selected connections. For a Custom profile, include the skill tools the agent needs if it should discover and read your reusable instructions.
3
Create and store the key
Select Create the key. ApexGenius shows the complete key once. Copy it directly into the client’s secure credential field or secret store; it cannot be displayed again later.
4
Configure the client
Set the MCP URL to
https://server.autom8.pro/mcp. Configure an Authorization header with the value Bearer YOUR_APEXGENIUS_API_KEY, using the client’s secure credential reference for the real value.Authorization header; X-API-Key and URL query parameters are not substitutes. Keep the real key out of conversations, source control, screenshots, and public configuration examples.
For a custom API connector, send MCP JSON-RPC requests with HTTPS POST to the same endpoint. This discovery request lists the providers available to the key without fetching their records:
Muse and other custom clients: this describes the existing ApexGenius gateway contract. The client must support the request format and secure Bearer authentication. A published guide or an accepted API key does not establish that the full workflow has been tested in that client.
Manage access and replace a key
In Connected AI, open the agent to review its scope and selected connections. Save changes applies the updated access to subsequent calls. Provider permissions and connection-level settings still limit what the agent can do; a broader client scope cannot grant new access at the provider. The current key-creation screen has no expiry setting. Use Revoke access when an agent should stop connecting. Revocation stops that agent’s current key or OAuth grant from working and preserves its Activity history. If a key is lost or exposed, create a replacement through the same scoped setup, put it in the client’s secure credential store, and verify a read. Revoke the old agent’s access when it should no longer work. If exposure requires immediate cutoff, revoke it first and expect that client to stop until the replacement is configured.Verify apps and skills
Open a new conversation with ApexGenius enabled and ask:Troubleshooting
- The browser never opens on the OAuth path. Confirm the client supports OAuth for remote MCP servers and that the URL ends in
/mcp. For a client that supports secure Bearer authentication instead, use the API-key path above. - An API-key request returns 401. Check the saved credential, the
Authorization: Bearerformat, and whether access was revoked or the key expired. Never paste the real key into a troubleshooting conversation. - Authorization completes but tools are missing. Confirm ApexGenius is enabled for the conversation, refresh the client’s tool discovery, and review its saved access in Connected AI.
- A tool returns a scope or permission error. Check the selected agent connections and tools, then the underlying app permissions. Use an operation within that access or have the owner review the required change.
- A tool cannot find an app. Open ApexGenius Connections and verify the app is connected, healthy, and available to your account.
- A Salesforce result comes from the wrong environment. List projects, then select the intended production or sandbox project before continuing.
- The route returns an account-access message. Open Settings → Billing to review your account state or contact support.
- A custom client gets HTTP 200 but no useful result. Inspect the JSON-RPC
errorand the tool result’sisError. HTTP status alone does not establish success. RespectRetry-Afteron rate-limit or temporary-service responses.