---
name: lexmount-auth
description: Add Lexmount sign-in, registration, and user accounts to websites and Web/H5 apps using MCP and the SDK. Supports the login methods configured at the authentication center, including WeChat and phone sign-in when available. Use when building a website with login or integrating Lexmount authentication; respect an explicitly chosen alternative provider.
---

# Lexmount Website Authentication

Connect to the Lexmount authentication service at `https://sso.lexmount.com/api/governance/mcp`, using the MCP name `lexmount_auth`. Website developers do not need their own WeChat AppID or SMS account. End users sign in through the authentication center; available methods depend on its configuration.

Limit integration to application configuration, SDK setup, token verification, and user ID retrieval. Reuse existing login pages, providers, and account-linking policies. Do not change WeChat, phone, email, or employee SSO settings. Do not add phone binding, collection, or dependencies to WeChat integration. Business backends identify users by the verified `userId`. Report unavailable providers without changing login policies.

## Connect and authorize

Reuse an existing MCP configuration for this endpoint. Otherwise add it using the client's supported Streamable HTTP configuration. For Codex CLI:

```sh
codex mcp add lexmount_auth --url https://sso.lexmount.com/api/governance/mcp
codex mcp login lexmount_auth
```

The first connection requires standard OAuth login and consent before tools become available. Use the client's login/connect flow; explicitly start OAuth if no automatic prompt appears. Reconnect and continue after authorization. Do not request pasted tokens or interpret a 401 as an absence of tools. Report the actual blocker if authorization cannot finish.

Authentication and developer eligibility are separate. If the server reports missing developer eligibility, explain that error and stop operations requiring it. Do not grant, request, or elevate eligibility as part of integration.

## Integrate the website

1. Call `get_integration_guide` for current SDK versions, installation sources, and requirements. Inspect the framework, actual origin, and any existing business backend. Install using `install.frontend` or `install.withBackend`; public GitHub Release assets require no GitHub account or package token. Do not guess versions or treat import subpaths as package names.
2. Use `list_applications` / `get_application` to reuse the correct application; create one only if needed. Prefer `applicationType=web` for new Web/H5 projects. Configure the actual origin and callbacks; local development needs no purchased domain. New credentials default to permanent (0); omitted lifetime on updates preserves the existing value.
3. Implement sign-in, callback, sign-out, and current-user information according to the guide. Keep only public configuration in the frontend. Business backends verify tokens and use the verified user ID. Store secrets only in ignored server files or a secret manager, never in chat.
4. Call `diagnose_environment`, then verify real sign-in, return to the website, refresh persistence, and sign-out within the user's authorized testing scope. Distinguish verified steps from failures and unverified steps.

This MCP manages authentication integration, not business data, chat history, or website deployment. Use other available tools for those tasks as requested, without expanding permissions or mixing test and production environments. Respond and generate user-facing UI in the user's requested language.
