Help

Administration Guide

Monosign MCP Server

Updated 25 Nov 2026 10 min read

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, and set_user_state when it switches a user off. Without confirm: true nothing 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

list_users

Lists users (page, pageSize 1 to 250, default 20).

System.API.Users.List

get_user

Reads one user.

System.API.Users.View

get_user_groups

Lists the groups of a user.

System.API.Users.Groups.List

create_user

Creates a user.

System.API.Users.Create

update_user, add_user_to_group, remove_user_from_group

Changes a user or its group membership.

System.API.Users.Edit; also System.API.Groups.View when the group is given by id

set_user_state

Activates or switches off a user. Asks for confirmation when it deactivates, disables, suspends or removes.

System.API.Users.Update

list_groups, list_group_members

Lists groups, or the users of a group.

System.API.Groups.List

get_group

Reads one group.

System.API.Groups.View

list_applications

Lists applications.

System.API.Applications.List

get_application

Reads one application.

System.API.Applications.View

list_agents

Lists AI agents (currentPage, itemPerPage 5 to 250, default 20).

System.API.AIAgents.List

get_agent, get_agent_audit, query_audit

Reads an agent, its audit records, or searches agent audit records (take 1 to 500, default 50).

System.API.AIAgents.View

suspend_agent

Suspends an agent. Always asks for confirmation.

System.API.AIAgents.Edit

kill_agent

Uses an agent's kill switch. Always asks for confirmation.

System.API.AIAgents.KillSwitch

get_audit_record

Reads one audit record.

System.API.Audits.View

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 Mcp.ApiServer.Enabled with the value false. No migration.

An AI agent

An Active agent under Management > AI Security > Agents, with the System.API.* permissions of the tools it should use and at least one enabled credential. An agent needs a governance owner before it can be activated.

Who can turn it on

An administrator with System.Management.Configuration.Edit.

Who can prepare the agent

System.Management.Agent.Edit to assign permissions, System.Management.AgentCredential.Create to create a credential.

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

  1. 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.

  2. 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.

  3. On the agent's Credentials tab, click Create Credential. Copy the Key and the Secret from Credential Created: the secret is shown only once.

  4. 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.

  5. In the assistant, add an MCP server of type Streamable HTTP with the URL https://<API address>/mcp and either the two headers MonoSign-AppId: <key> and MonoSign-AppKey: <secret>, or the single header Authorization: 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.

  1. Open Management > System > Configurations > MCP and add the API address followed by /mcp to MCP resource servers, exactly as assistants reach it (for example https://api.example.com/mcp), one per line or separated by commas.

  2. 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-insiders by default) limit where the sign-in answer may go. Click Save.

  3. 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.

  4. 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

  1. Before turning it on, POST <API address>/mcp answers HTTP 404 with The Monosign MCP server is turned off. An administrator can turn it on in Management under System, Configurations, MCP.

  2. After turning it on, the tools/list call above with the agent's key answers with 20 tools.

  3. In the assistant, ask for a list of users. With System.API.Users.List on 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

  • confirm is 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 resource in the metadata answer with the URL you give the assistant.

  • GET and DELETE /mcp always 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 /mcp.

Compare resource in the metadata address with the URL the assistant uses, and reconnect it to that exact URL.

The assistant's sign-in fails with The resource '{url}' is not registered with this authorization server.

The /mcp address is not in MCP resource servers, or is written differently.

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}.

suspend_agent, kill_agent or a switching-off set_user_state was called without confirm: true. Nothing was done.

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 GET or DELETE, for example to open a server-sent stream.

Use a client that sends POST (Streamable HTTP).

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.

Related pages

Permanent link