Connect a compatible client
The steps to connect a client that supports remote MCP servers, what you see in EcoMark, and what the client does underneath.
On this page
Before you start#
- You can sign in to EcoMark, in a workspace that is active: see What you need.
- Your agency allows assistants for your role.
- The server's address:
https://www.ecomarkai.com/api/mcp.
The steps#
Add EcoMark in the client
Look for the place where the client adds a remote or custom MCP server, and enter the server's address. Leave any field for a client id or secret empty: EcoMark does not issue them.
Start the connection
The client discovers the sign-in by itself and opens EcoMark in your browser. If you are not signed in, you sign in first and come back to the same request.
Read the consent page
It shows the name the client gives itself, the address its answers go to, your agency and the account you are signed in with. The name is the client's own word; the address is the part it cannot make up.
Choose the permissions
Everything the client asked for and your agency allows is ticked. Untick what you do not want. What your agency does not allow is greyed out and cannot be ticked. At least one permission has to stay ticked.
Allow
Press Allow. EcoMark sends your browser back to the client's registered address, and the client finishes by itself. Deny tells the client you declined.
Check it in EcoMark
Under Apps → External assistants the connection shows Pending until the client makes its first request, and Connected after that. Copying the address or opening the instructions never changes that state: only a real request does.
https://www.ecomarkai.com/api/mcpA consent request does not wait for ever
A pending consent page can be answered once, within the time shown under Lifetimes in Errors and limits. After that it reads This request is no longer valid: start again from the client.
Specific assistants#
Connect from any assistant that supports remote MCP servers over Streamable HTTP with OAuth. Each one adds a server in its own settings, and the names of its menus change, so follow its current guide.
| Client | Where EcoMark is added |
|---|---|
| Claude | As a custom connector with a remote MCP server address, from its Connectors section; on team and enterprise plans an owner adds it first. Its guide |
| ChatGPT | As a custom MCP server, by its address; where that is offered depends on the account and the workspace, and its help pages name the screens differently. Its guide |
| Other MCP clients | Wherever the client adds a remote MCP server over Streamable HTTP with OAuth, with the same address. |
What the client does underneath#
For people building or debugging a client. Every address is on EcoMark's own origin.
1. Discovery#
The 401 from the MCP endpoint points at the protected-resource metadata, which names the authorization server. Its metadata lists the endpoints.
{
"resource": "https://www.ecomarkai.com/api/mcp",
"authorization_servers": ["https://www.ecomarkai.com"],
"scopes_supported": [
"properties:read",
"leads:read",
"leads:write",
"calendar:read",
"calendar:write",
"messages:draft",
"links:draft",
"metrics:read"
],
"resource_name": "EcoMark"
}{
"issuer": "https://www.ecomarkai.com",
"authorization_endpoint": "https://www.ecomarkai.com/api/oauth/authorize",
"token_endpoint": "https://www.ecomarkai.com/api/oauth/token",
"registration_endpoint": "https://www.ecomarkai.com/api/oauth/register",
"revocation_endpoint": "https://www.ecomarkai.com/api/oauth/revoke",
"response_types_supported": ["code"],
"response_modes_supported": ["query"],
"grant_types_supported": ["authorization_code", "refresh_token"],
"code_challenge_methods_supported": ["S256"],
"token_endpoint_auth_methods_supported": ["none"],
"revocation_endpoint_auth_methods_supported": ["none"],
"scopes_supported": [
"properties:read",
"leads:read",
"leads:write",
"calendar:read",
"calendar:write",
"messages:draft",
"links:draft",
"metrics:read",
"offline_access"
],
"client_id_metadata_document_supported": true,
"authorization_response_iss_parameter_supported": true
}2. Who the client is#
A client whose client_id is an HTTPS address is read from the document at that address: nothing is registered. A client without one registers itself. Either way it is a public client, and registering gives access to nothing: a person still has to sign in and consent.
{
"redirect_uris": ["https://client.example/callback"],
"client_name": "Example client"
}{
"client_id": "mcpc_3df3ff942806472cb2fd7a82",
"client_id_issued_at": 1791423531,
"client_name": "Example client",
"redirect_uris": ["https://client.example/callback"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "none"
}3. The authorization request#
The client sends your browser to the authorization endpoint. What can be checked without you is checked there; then EcoMark shows the consent page.
response_type=code
client_id=mcpc_3df3ff942806472cb2fd7a82
redirect_uri=https://client.example/callback
code_challenge=<PKCE challenge>
code_challenge_method=S256
state=<the client's own value>
scope=leads:read calendar:read calendar:write links:draft
resource=https://www.ecomarkai.com/api/mcphttps://client.example/callback?code=<single-use code>&state=<the client's own value>&iss=https%3A%2F%2Fwww.ecomarkai.comA request that names no scope is treated as asking for everything the server offers. Unknown scope names are dropped; a request whose scopes all do not exist is refused with invalid_scope.
4. Tokens#
The client redeems the code at the token endpoint with its PKCE verifier. The body is a form, not JSON.
POST /api/oauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=<single-use code>&redirect_uri=https%3A%2F%2Fclient.example%2Fcallback&client_id=mcpc_3df3ff942806472cb2fd7a82&code_verifier=<PKCE verifier>&resource=https%3A%2F%2Fwww.ecomarkai.com%2Fapi%2Fmcp{
"access_token": "ecm_at_…",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "ecm_rt_…",
"scope": "leads:read calendar:read calendar:write links:draft"
}The refresh token is replaced on every use. Presenting one that was already exchanged ends the whole connection, because a copy of it is somewhere it should not be.
5. The first MCP request#
The server answers two generations of the protocol at the same address. A client that opens with initialize is served the revision it asks for; a client that sends the newest revision needs no handshake. Both are listed in the reference above under Protocol revisions.
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": {
"name": "example",
"version": "1.0.0"
}
}
}HTTP/1.1 200 OK
Content-Type: text/event-stream
Cache-Control: no-cache, no-transform
event: message
data: {"result":{"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":true}},"serverInfo":{"name":"ecomark","title":"EcoMark","version":"1.0.0"},"instructions":"EcoMark is the operating system of a real-estate agency. […]"},"jsonrpc":"2.0","id":1}Two ways of answering
A request made after an initialize handshake is answered as a stream that carries a single message event, so the client has to accept both application/json and text/event-stream; one that accepts only JSON is answered 406. A request of the newest revision is answered with one JSON body. See Errors and limits.
If the connection does not complete#
| What you see | Why | What to do |
|---|---|---|
| This request is no longer valid | The consent request ran out or was already answered. | Start again from the client. |
| Switched off by your agency | Your agency does not allow external assistants for agents. | Ask an admin. See What you need. |
| This workspace is not ready | Setup is not finished, or the subscription is not active. | Finish setting up or reactivate the workspace first. |
| Allow cannot be pressed | Every permission is unticked. | Leave at least one permission ticked, or press Deny. |
| EcoMark does not recognise the application that sent you here. | The client's client_id is unknown, or its metadata document is not valid. | Nothing was sent anywhere. Remove the server in the client and add it again. |
| The application asked EcoMark to send the answer to an address it has not registered. | The redirect address does not match exactly. | Nothing was sent. This is the client's to fix. |
| This EcoMark is not accepting connections from external assistants right now. | The server is switched off for this EcoMark. | Nothing can be authorised until it is switched on. |