# Logcomex AI > Trade intelligence, shipment tracking, and workspace tools. To create an account and connect MCP, start the client’s OAuth connection to https://platform.logcomex.ai/mcp and choose “Create account and connect” on the authorization sign-in page. This signup flow does not require a password. Standalone signup is a separate, account-only fallback. ## Account creation by an agent Before creating an account or adding another connector, inspect the AI client's existing connectors for the exact server URL `https://platform.logcomex.ai/mcp`. If `logcomex_connection_status` is available on that connector, call it with `next.verifyConnection.arguments` when a handoff is available; without an expected identity, use `{}`. Compare `mcpServer`, `userId`, and `tenantId` with `next.verifyConnection.expected` when present; otherwise confirm the returned account and workspace with the person. A match means reuse the connection and resume the original request without signup or another OAuth authorization. A display name or a missing tool does not prove that a connector is wrong. Inspect its configuration or ask the person to check the URL. If the existing v2 connector needs authorization or uses the wrong account/workspace, reauthorize that same connector. On the OAuth page, the person reviews the email address and workspace and can choose “Sign in with another account” or “Create a new account and connect”. Add a new connector only after confirming that none matches v2. Never replace an existing account based on the connector's name. For a new account that should connect to MCP, start the client’s OAuth connection before signup. Use the same v2 connector’s connect or reconnect control. Choose “Create account and connect” on the sign-in page, or “Create a new account and connect” if another account is already signed in. Complete the email code and profile in that authorization page, preserving `returnTo`; the page returns to the original client after signup and consent. Let the client generate its own callback, state, and PKCE request. Do not call the standalone signup API from the agent’s separate HTTP session or open a fresh `/signup/agent` for this flow. If the client cannot add or authorize servers, provide the exact MCP URL and manual Streamable HTTP/OAuth instructions, then wait for the person to start authorization. If the person only wants an account, or connection cannot start yet, passwordless signup is available at https://platform.logcomex.ai/signup/agent or through the public API. Only when signup is needed, ask for their real email address and start the email-code flow. Do not ask for a password. Manual signup with a password remains available at https://platform.logcomex.ai/signup. For browser signup, use the agent signup link on the authentication page to preserve any OAuth continuation. It requests email first, then the real code, name, company, and WhatsApp number. For direct API integration, use a tool capable of HTTPS POST with JSON. Reading documentation does not enable tools; follow the client's permissions. The agent's HTTP session is separate from the person's browser session. Signup started outside the client's OAuth request may still require another browser sign-in. Do not promise automatic session transfer or copy cookies or callback codes between clients. An additional sign-in does not mean account creation failed. After starting OAuth from the MCP client, use combined signup and authorization only if an account is needed. Send `POST /api/auth/signup/oauth-context` with the client's genuine relative `/oauth/authorize?...` `authorizationUrl`, the person's `email`, and optional `locale`. The HTTP 200 preview returns `contextToken`, `expiresAt`, `clientName`, nullable `clientUri`, HTTPS `redirectUri`, `mcpServer`, and `scopes` with `id`/`label`; it grants no access and sets a nonce cookie with HttpOnly, Secure, and SameSite=Lax. The context lasts ten minutes and is bound to that email and cookie. Keep it in the same browser/HTTP client as verification; do not invent callback/state/PKCE parameters or use `source=agent` to waive consent. Show the application, destination, scopes, and intended workspace to the person before they confirm “Create/confirm account and connect”. Only then include `oauthContext` and `authorizeClient: true` together in `signup/verify` or the `create_workspace` decision. An eligible new workspace matching the effective session can return `oauth: {status: "authorized", redirectUrl: "…"}` alongside AuthUser, its web cookie, and `next`. Follow the validated callback exactly, without logging or saving its code/state/iss in storage. The original MCP client completes the PKCE exchange. Do not start a second authorization after receiving this callback, and do not call the MCP connection complete until the identity check below succeeds. The signup response never includes a Bearer token. Native clients, missing/incompatible context, existing accounts, a different effective workspace, pending approval, MFA, or OAuth completion failure use normal OAuth consent. Missing `oauth` does not undo an account already created or its web session: continue authorization without repeating signup. A context error is rejected before consuming the OTP; if the preview expires, obtain a new preview and explicit confirmation. Carry a still-valid context through a workspace choice only within that transaction; do not reuse it for another signup or after completion. Separate signup API fallback: use these steps only for an account-only request or when the person chooses to create the account without connecting yet. The normal MCP onboarding path uses the client authorization page above: 1. `POST /api/auth/signup/start` with `email`. No prior login, API key, MCP connection, or password is required. HTTP 202 means the request was accepted; it does not guarantee email delivery or account creation. 2. Ask the person for the six-digit code received by email and any missing name, company, and WhatsApp details. Email-code verification is required. Do not invent the code or use example contact details. 3. `POST /api/auth/signup/verify` with `email`, `code`, `displayName`, `tenantName`, and a valid `whatsapp` number. `activationCode` is optional. Read the actual response before reporting success: it can grant workspace access, require a workspace choice, or indicate pending approval. MFA must still be completed through the normal login when required. 4. For `domain_choice_required`, ask the person to choose and call `POST /api/auth/signup/workspace` with the returned `decisionToken` and the fields documented for that choice. Joining an existing workspace requires administrator approval. 5. If `oauth.status` is `authorized`, follow `oauth.redirectUrl` to let the original client finish. Otherwise, when workspace access is granted, follow `next.action: connect_mcp`: first verify an existing connection with `logcomex_connection_status`; a matching identity needs no new authorization. Reauthorize the same v2 connector if needed, and add one only if none matches the exact server URL `https://platform.logcomex.ai/mcp`, Streamable HTTP transport, and OAuth authentication. Identify an existing connector by its server URL, not just a name such as “Logcomex”. `https://mcp.logcomex.ai` is a different, legacy integration. 6. If OAuth consent is still needed, let the MCP client start it using resource discovery and PKCE. The person checks the email address and workspace, signs in with the intended account or chooses “Sign in with another account”, and authorizes access. After initialization, call `logcomex_connection_status` with `next.verifyConnection.arguments`, whose `expected` repeats `next.verifyConnection.expected`. Confirm connection and resume the original request only when `verificationStatus` is `matched`. The signup responses include a `next` object with the current action, the canonical `mcpServer`, OAuth resource metadata, and `connectionStatus: not_verified`. Follow pending approval, workspace choice, and MFA instructions before attempting to connect. Creating an account or receiving a web session cookie does not prove an MCP connection. If the account was already created, do not repeat signup or resend `signup/verify` with the old OTP. Sign in with the same account and continue connecting to the exact v2 endpoint. If `next.verifyConnection.expected` is unavailable, confirm the account and workspace reported by `logcomex_connection_status` with the person. Never use example identifiers or assume a connector with the same display name is the correct one. If the client cannot add or authorize a server automatically, give the person the exact MCP URL above and instructions to add a Streamable HTTP server with OAuth in the client's connector/MCP settings. Keep the state as “account created; connection pending” until the verification tool confirms it. Opening `/mcp` in the browser does not install a connector or start OAuth by itself. Do not request an API key or use the signup cookie as an MCP bearer token. Send `Content-Type: application/json`. The reference below describes request bodies, responses, rate limits, and retries. Email codes and workspace decision tokens expire and are single-use. ## Signup API reference - [OpenAPI](https://platform.logcomex.ai/developers/mcp/openapi.json): The four public signup and optional OAuth-context operations with their actual input schemas. - [English guide](https://platform.logcomex.ai/developers/mcp.en.md): Complete signup, OAuth, MCP, tracking, and auto-pilot documentation. - [Guia em português](https://platform.logcomex.ai/developers/mcp.md): Cadastro assistido por agente, sem senha, com confirmação por código de e-mail. - [Guía en español](https://platform.logcomex.ai/developers/mcp.es.md): Registro asistido por agente, sin contraseña, con confirmación mediante código por correo electrónico. - [Browser documentation](https://platform.logcomex.ai/developers/mcp.html): HTML guide with a language selector. ## MCP connection and verification The MCP server is https://platform.logcomex.ai/mcp and requires delegated OAuth authorization from the person. Signup does not issue an MCP bearer token. The current MCP tool catalog does not include account creation. To create an account and connect, use signup inside the client's OAuth authorization page as described above. Use the standalone signup API only as an account-only fallback; it does not connect the MCP client by itself. Connection verification returns the actual bearer identity and `connectionStatus: connected`, plus `verificationStatus: not_requested|matched|mismatch` and `nextAction: none|reauthorize|connect_correct_server`. A connected bearer is not proof that it matches the signup account. On `mismatch`, stop the original task: use the AI client's account-switch or reauthorization control on the same correct connector for `reauthorize`, or select the exact server URL for `connect_correct_server`, then verify again with the handoff arguments. Creating or switching accounts in the browser does not replace an existing MCP bearer. This read-only tool never switches accounts, disconnects, or revokes credentials. Without expected values, `{}` reports `not_requested`; confirm the account and workspace with the person. - [OAuth metadata](https://platform.logcomex.ai/.well-known/oauth-authorization-server): Authorization endpoints and supported scopes. - [MCP resource metadata](https://platform.logcomex.ai/.well-known/oauth-protected-resource/mcp): Protected resource and authorization server. - [Sign in](https://platform.logcomex.ai/auth): Human login and authorization. - [Agent signup in the browser](https://platform.logcomex.ai/signup/agent): Standalone, account-only signup fallback. For MCP onboarding, use “Create account and connect” within the client’s authorization page instead. - [Manual signup](https://platform.logcomex.ai/signup): The existing website signup with a password.