Skip to content

App MCP – use the app from Claude

Every app built on Sovyn can offer its own app MCP: an MCP server at the address of the app through which its end users work with it from Claude or another AI agent. “Show me my open tickets” or “Report damage for flat 3” then becomes an entry in the app, exactly as if the person had created it in the frontend.

The address is always the address of the environment followed by /api/mcp:

Environment Address of the app MCP
Production https://<app>.sovyn.site/api/mcp
Development https://<app>--dev.sovyn.site/api/mcp
Custom domain https://<your-domain>/api/mcp

The app MCP is not the Sovyn MCP your team uses to build and run apps. It belongs to the app and is for the people who use it.

  • Never more than the person themselves. Every call runs as the signed-in end user, under the access rules of the app. What someone may not see or change in the app, their agent cannot either.
  • Only what the manifest offers. You name the operations per collection (read, create, update, delete). Collections and operations missing there do not exist for the agent.
  • Only what the person allows. When connecting, they choose Read only or Read and write.

The agent gets these tools: describe (which collections and fields it may use), find, create, update and delete, each only as far as the manifest and the choice made when connecting allow.

An entry an agent creates or changes starts the same automations as one from the frontend, such as an email to the team.

Not available through the app MCP: uploading or reading files, sending arbitrary emails, asking the app’s LLM and calling functions. The app keeps using email and the LLM through its automations.

  1. Add the mcp block to the manifest. In sovyn.build.yaml, at the top level:

    mcp:
    collections:
    tickets: [read, create, update]
    comments: [read, create]

    Each operation at most once. apply rejects a collection that does not exist and an operation the access rules allow to nobody. This needs the CLI from version 0.11.0.

  2. Apply and publish: first npx @sovyn/build apply, then npx @sovyn/build deploy (and promote for production). Without apply, deploy rejects the changed manifest.

  3. Switch it on in the console. Open the app, tab Access, choose the environment at the top and switch on App MCP. Owners and admins can do this, for each environment separately.

    Sovyn console, Access tab: confirmation “Switch on the app MCP for Development?” with the button “Switch on”
  4. Share the address. Below the switch is the address to copy. Your end users enter it in Claude as a connector.

In production, the app MCP comes with the Pro plan and above, like own sign-in. While it is on there, the app cannot move to a smaller plan; switch it off first.

Switching off signs out every connected agent of the environment. When you switch it on again, everyone has to reconnect. If a later deploy removes the mcp block from the manifest, the app MCP is off until it is back.

Every tool call counts as a request to the app’s data, and anyone who signs in through the app MCP counts as an active user.

  1. Open Settings → Customize → Connectors, click Add and choose the custom connector.

  2. Enter a name, for example the name of the app, and the address of the app MCP. Click Continue.

    claude.ai, dialog “Add custom connector”: name “Notizbuch”, address https://notizbuch.sovyn.site/api/mcp and the “Continue” button
  3. Set Authentication to Sign in now and OAuth client to Register automatically. Leave Request headers and Advanced empty.

    claude.ai, dialog “Add custom connector”, second step: Authentication “Sign in now” and OAuth client “Register automatically” selected, both marked “Detected”
  4. Click Connect on the new connector.

    Claude app, Settings → Customize → Connectors: under “Yours” the custom connector “Notizbuch” with the “Connect” button

In a Claude organization (Team, Enterprise), an owner adds the connector once under Admin settings → Connectors. After that, every member clicks Connect themselves and signs in with their own account. That way everyone works as themselves, with their own rights.

Terminal window
claude mcp add --transport http <name> https://<app>.sovyn.site/api/mcp

Then run /mcp in Claude Code, pick the entry and choose Authenticate.

After Connect, the sign-in page of the app opens in your browser, with the same sign-in methods as usual: Sovyn login for your team, link or code from an email, company sign-in, Google, Microsoft or GitHub. If you are already signed in to the app, you go straight to the consent page.

It shows which agent wants to connect, where it returns to and which account you are signed in with. Choose Read only or Read and write and click Allow.

Consent page of the app notizbuch: “Connect Claude to notizbuch?”, signed in as anna@example.com, choice between “Read only” and “Read and write”, buttons “Allow” and “Deny”

After that, ask Claude about your data, for example “Show me my notes”. It only sees what you may see in the app.

claude.ai chat: question “Zeige mir meine Notizen”, Claude used the tools describe and find of the connector Notizbuch and lists three notes

Use a different account signs you out of the app so you can choose again. With the Sovyn login, sign out of the Sovyn console first as well; otherwise it signs you straight back in with the same account.

As an end user, remove or disconnect the connector in Claude. That deletes the sign-in there; the agent loses access within an hour at the latest.

It takes effect immediately in the console, tab Access:

  • For each end user, Connected agents lists their agents with name and right (read only, read and write). Revoke locks the agent out on its next request. Owners and admins can do this.
  • Agents of your team members are listed under App roles. Owners and admins revoke any of them, developers their own. Members with the role User ask an admin.
  • If you disable an end user, each of their agents loses access at once as well.
Sovyn console, Access tab: confirmation “Revoke access of Claude · claude.ai?” with the button “Revoke”

To use the agent again afterwards, reconnect it.

Message Meaning
This app offers no MCP server here. The app MCP is off in this environment, or the manifest has no mcp block. Check the switch in the Access tab.
The access token is missing, invalid or no longer valid for this app. The sign-in expired, was revoked or belongs to another app or environment. Reconnect the connector.
The agent does not see a collection It is missing from the mcp block, or the access rules do not let the person read it.
The agent sees only its own entries although the person is an admin The read rule does not name the role, for example only { owner: … }. Add role:admin to the rule, see App roles.
The agent cannot create anything Read only was chosen when connecting, or create is missing from the mcp block. Reconnect to get write access.