adsum API, MCP package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

The operations of the MCP package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own. The MCP endpoint itself (/api/mcp) speaks the Model Context Protocol and is not part of this contract.

Assistants

Whether and how the company's people may use AI assistants.

Get whether the company's people may use AI assistants

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "mode": "off"
}

Set whether the company's people may use AI assistants

off answers 403 at the MCP endpoint for the company's people; readOnly offers the reading tools only; readWrite also the writing tools, to a token that may write.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
mode
required
string
Enum: "off" "readOnly" "readWrite"

off: assistants cannot connect. readOnly: reading tools only. readWrite: writing tools too, for a token that may write.

Responses

Request samples

Content type
application/json
{
  • "mode": "off"
}

Response samples

Content type
application/json
{
  • "mode": "off"
}