{"service":"Mainview MCP","description":"Model Context Protocol server for the Mainview real-estate API.","serverInfo":{"name":"mainview-mcp","title":"Mainview","version":"0.4.0","description":"Manage your Mainview real estate account: contacts, listings, sites, and marketing.","websiteUrl":"https://www.mainview.com","icons":[{"src":"https://www.mainview.com/apple-touch-icon.png","mimeType":"image/png","sizes":["512x512"]}]},"protocolVersions":["2025-11-25","2025-06-18","2025-03-26"],"transport":{"type":"streamable-http","endpoint":"https://mcp.mainview.com/mcp","method":"POST","contentType":"application/json","notes":"One JSON-RPC 2.0 envelope per request, answered with plain JSON. Notifications get HTTP 202. No SSE stream."},"auth":{"oauth":{"whoUsesIt":"Apps like ChatGPT and Claude connect through OAuth. The user signs in on the identity host and taps Approve, and the app never sees a password or a PAT.","flow":"Authorization code with PKCE S256, discovered from the resource server's /.well-known/oauth-protected-resource. Client ids are client ID metadata document URLs from chatgpt.com, openai.com, or claude.ai.","authorizationServer":"https://accounts.mainview.com","protectedResourceMetadata":"https://mcp.mainview.com/.well-known/oauth-protected-resource","accountBinding":"Each approval binds one tenant account, chosen on the consent page, so every call acts on that account. To act on another account, connect again and pick it.","neverAskForAPat":"An agent connected through OAuth already holds its credential, so never ask the user to paste a PAT or a password into chat."},"pat":{"forScriptsTheUserSetUp":true,"header":"X-API-Key: mvx_<rest-of-key>","alsoAccepted":"Authorization: Bearer mvx_<rest-of-key>","howToGetPat":"PATs are issued by an account owner at Settings > API Tokens (`/settings/api-tokens`). Long-lived, scope-gated, tied to one user and one account membership.","issuedFrom":"https://api.mainview.com"},"jwt":"First-party browser sessions only. An agent connects through OAuth or uses a PAT."},"methods":["initialize","notifications/initialized","ping","tools/list","tools/call"],"instructions":"initialize returns instructions: ground rules, API conventions, and who you are working for. Follow them.","toolResults":{"notes":"tools/call returns result.content[0].text, a JSON string, and sets result.isError when the call failed.","success":"A success is { ok: true, data, meta? }. On list tools meta carries totalCount (with includeTotal:true), fetchedCount, limit, offset, and hint messages. Page with limit and offset.","failure":"A failure is { ok: false, error, errorCode, hint? }."},"discovery":{"protectedResource":"https://mcp.mainview.com/.well-known/oauth-protected-resource","authorizationServer":"https://accounts.mainview.com/.well-known/oauth-authorization-server"},"documentation":"https://mcp.mainview.com/docs","health":"https://mcp.mainview.com/health"}