From Monosign v2026.11, the Monosign API serves Monosign's own management tools to AI assistants such as Claude or Cursor over the Model Context Protocol (MCP), at <API address>/mcp. An assistant connects as an AI agent, with the agent's key or by signing in, and can do only what that agent is permitted to do. The MCP server is off by default; an administrator turns it on with one setting.
What it does
Answers MCP over Streamable HTTP on the API's own address:
POST <API address>/mcp, one JSON answer per request. Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05 are accepted. It also publishes OAuth protected resource metadata at<API address>/.well-known/oauth-protected-resource/mcp, so assistants can find where to sign in.Serves 20 tools for users, groups, applications, AI agents and audit records (table below).
Every tool call is a call to the same API's REST endpoints with the caller's credentials. The API's own rules apply unchanged: the agent's
System.API.*permissions, its state and the kill switch, on-behalf-of rules, budgets, and the audit records the endpoint writes.Asks for confirmation before
suspend_agent,kill_agent, andset_user_statewhen it switches a user off. Withoutconfirm: truenothing is called.
It does not offer a stdio transport, server-sent streams, resources or prompts, and does not hold a call for a second person's approval. It is not the MCP Gateway, which governs other MCP servers; you can register this server in the MCP Gateway as an upstream to add the gateway's tool policy and logging.
Tool | What it does | Permission the agent needs |
|---|---|---|
| Lists users ( |
|
| Reads one user. |
|
| Lists the groups of a user. |
|
| Creates a user. |
|
| Changes a user or its group membership. |
|
| Activates or switches off a user. Asks for confirmation when it deactivates, disables, suspends or removes. |
|
| Lists groups, or the users of a group. |
|
| Reads one group. |
|
| Lists applications. |
|
| Reads one application. |
|
| Lists AI agents ( |
|
| Reads an agent, its audit records, or searches agent audit records ( |
|
| Suspends an agent. Always asks for confirmation. |
|
| Uses an agent's kill switch. Always asks for confirmation. |
|
| Reads one audit record. |
|
Before you start
Requirement | Details |
|---|---|
Version | Monosign v2026.11 or later on the API, and the v2026.11 seed has run. The seed adds the setting |
An AI agent | An Active agent under Management > AI Security > Agents, with the |
Who can turn it on | An administrator with |
Who can prepare the agent |
|
Network | The assistant reaches the Monosign API address over HTTPS. Assistants that sign in also reach the account application. |
License | The MCP server makes no license check of its own: each tool call is allowed or refused by the REST API, exactly as a direct call would be. |
Every caller sees all 20 tools. What a caller may do is decided only by the agent's System.API.* permissions, and through an assistant those permissions include creating users and the kill switch if you grant them. Give the agent the permissions of the tools it should use and no more.
Set it up
Open Management > AI Security > Agents and create an agent for the assistant, or open an existing one. Its Acting Mode decides how it may connect: Autonomous or Both to connect with its key alone; On Behalf of User needs a signed-in person (see the next section). Assign a governance owner and activate it.
On the agent's Permissions tab, click Assign Permission and add the
System.API.*permissions from the table above for the tools the assistant should use.On the agent's Credentials tab, click Create Credential. Copy the Key and the Secret from Credential Created: the secret is shown only once.
Open Management > System > Configurations, open the MCP tab, switch on Monosign MCP server and click Save. It takes effect on the next call; no restart is needed.
In the assistant, add an MCP server of type Streamable HTTP with the URL
https://<API address>/mcpand either the two headersMonoSign-AppId: <key>andMonoSign-AppKey: <secret>, or the single headerAuthorization: Bearer <key>:<secret>.
A call from the command line, to check the setup:
curl -s https://api.example.com/mcp \
-H 'Content-Type: application/json' \
-H 'MonoSign-AppId: <agent key>' -H 'MonoSign-AppKey: <agent secret>' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Let assistants sign in instead of using a key
An assistant that supports MCP sign-in (OAuth) can sign the person in through Monosign instead of holding an agent key.
Open Management > System > Configurations > MCP and add the API address followed by
/mcpto MCP resource servers, exactly as assistants reach it (for examplehttps://api.example.com/mcp), one per line or separated by commas.On the same tab, switch on Let AI clients register themselves (off by default), so an assistant can register itself the first time somebody connects it. Registering only creates a client: it can do nothing until a person signs in through it and allows it. Allowed https redirect hosts (empty means any) and Allowed private redirect schemes (
cursor,vscode,vscode-insidersby default) limit where the sign-in answer may go. Click Save.In the assistant, add the MCP server with the URL only. On the first connection the assistant finds the sign-in address, registers itself and asks the person to sign in to Monosign and allow it.
The assistant then appears under Management > AI Security > Agents as an agent named after the assistant, with an MCP client panel, acting On Behalf of User and owned by the first person who allowed it. Assign it the
System.API.*permissions of the tools it should use. The agent must keep at least one enabled credential.
When a person stands behind the call, a tool can do only what both the agent and that person are permitted to do.
Check that it works
Before turning it on,
POST <API address>/mcpanswers HTTP 404 with The Monosign MCP server is turned off. An administrator can turn it on in Management under System, Configurations, MCP.After turning it on, the
tools/listcall above with the agent's key answers with 20 tools.In the assistant, ask for a list of users. With
System.API.Users.Liston the agent the users are listed; without it the tool answers the API's Permission Denied message, naming the missing permission.
Turn it off
Switch off Monosign MCP server and click Save. From the next call, POST /mcp and the metadata address answer 404. Nothing is stored that needs cleaning up. To stop one assistant only, suspend its agent or revoke its credential.
Good to know
confirmis set by the calling assistant. It is a prompt to ask the person, not an approval by a second person.The assistant's calls reach the REST endpoints with the user agent
Monosign-MCP-Server, so they can be told apart from direct calls in request logs.A suspended or killed agent is refused on its next call. A sign-in token revoked at the account application can still be accepted for up to 30 seconds on an API instance that has just checked it.
The address in the metadata, and the one tokens are checked against, is built from the scheme and host of the request. Behind a reverse proxy that changes either, the metadata may name another address than the one assistants use: compare
resourcein the metadata answer with the URL you give the assistant.GETandDELETE /mcpalways answer 405 This MCP server answers POST only., whether the server is on or off.
Troubleshooting
Symptom or message | Cause | What to do |
|---|---|---|
HTTP 404 The Monosign MCP server is turned off. An administrator can turn it on in Management under System, Configurations, MCP. | Monosign MCP server is off (the default), or the seed has not run so the setting is missing. | Run the v2026.11 seed and turn the setting on. |
HTTP 401 Missing credentials: send a Bearer token or an agent key. | No credential was sent. Assistants that sign in start their sign-in from this answer. | Add the key headers, or let the assistant sign in. |
HTTP 401 Invalid or disabled agent credential. | The key is unknown, disabled, expired or not an agent's key. | Create a new credential on the agent. |
HTTP 401 Invalid or inactive bearer token. | The account application refused the token or could not be reached, or the token belongs to another agent than the key sent with it. | Sign in again in the assistant. |
HTTP 401 The token was issued for another resource. | The token was requested for another address than this | Compare |
The assistant's sign-in fails with The resource '{url}' is not registered with this authorization server. | The | Add it exactly as the assistant reaches it. |
The assistant cannot register: Dynamic client registration for MCP clients is disabled for this tenant. | Let AI clients register themselves is off (the default). | Switch it on under System > Configurations > MCP, or connect the assistant with an agent key. |
HTTP 403 Agent not found. / Agent is not active (state: {State}). | The agent was removed, or is suspended, killed or retired. | Use an active agent. |
HTTP 403 Agent acts only on behalf of a user; an on-behalf-of (OBO) bearer token is required. / Agent is autonomous and may not act on behalf of a user. | The agent's Acting Mode does not match how the assistant connects. | Use a key with an Autonomous agent, sign in with an On Behalf of User agent, or set the mode to Both. |
HTTP 403 An agent in the delegation chain is not active. | An agent behind the caller is not active. | Activate it, or connect without it. |
HTTP 403 The agent has no enabled credential. Create one for it in Management, then try again. | An assistant that signed in acts through an agent that has no enabled, unexpired credential. | Create a credential on the agent. |
The tool answers Permission Denied: Permission denied for this API endpoint. You need to have one of the following permission(s): {permission}. | The agent, or the signed-in person, lacks the permission named in the message. | Assign the permission to the agent. |
This action needs confirmation. Ask the person, then call again with confirm set to true to {action}. |
| Expected. The assistant asks the person and calls again. |
The Monosign API could not be reached. / The Monosign API does not know its own address. | The API could not call its own REST endpoints on its local listening address. The API log says The MCP server could not reach the REST API on {Url}. | Check the API's listening address and that it can reach itself. |
{name} is required. / {name} must be an id (GUID). / {name} must be between {min} and {max}. / Give groupName or groupDefId. / Give isActive or state. | A tool argument is missing or wrong. Nothing was called. | The assistant corrects the argument. |
HTTP 405 This MCP server answers POST only. | The client sent | Use a client that sends |
The request body is not valid JSON, or it is too large. / Not a JSON-RPC 2.0 request. / Method not found: {method} / Unknown tool: {name} | The request is not a valid MCP message (at most 1 MB), or names a method or tool the server does not have. | Check the client. |