curl --request POST \
--url https://{command_center_host}/api/v1/plugins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "",
"connection": {
"url": "<string>",
"authentication": {
"method": "anonymous"
}
},
"enabled": true,
"org_id": "<string>",
"trusted_issuer": "<string>"
}
'import requests
url = "https://{command_center_host}/api/v1/plugins"
payload = {
"name": "<string>",
"description": "",
"connection": {
"url": "<string>",
"authentication": { "method": "anonymous" }
},
"enabled": True,
"org_id": "<string>",
"trusted_issuer": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '',
connection: {url: '<string>', authentication: {method: 'anonymous'}},
enabled: true,
org_id: '<string>',
trusted_issuer: '<string>'
})
};
fetch('https://{command_center_host}/api/v1/plugins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{command_center_host}/api/v1/plugins",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '',
'connection' => [
'url' => '<string>',
'authentication' => [
'method' => 'anonymous'
]
],
'enabled' => true,
'org_id' => '<string>',
'trusted_issuer' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{command_center_host}/api/v1/plugins"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"\",\n \"connection\": {\n \"url\": \"<string>\",\n \"authentication\": {\n \"method\": \"anonymous\"\n }\n },\n \"enabled\": true,\n \"org_id\": \"<string>\",\n \"trusted_issuer\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{command_center_host}/api/v1/plugins")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"\",\n \"connection\": {\n \"url\": \"<string>\",\n \"authentication\": {\n \"method\": \"anonymous\"\n }\n },\n \"enabled\": true,\n \"org_id\": \"<string>\",\n \"trusted_issuer\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/plugins")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"\",\n \"connection\": {\n \"url\": \"<string>\",\n \"authentication\": {\n \"method\": \"anonymous\"\n }\n },\n \"enabled\": true,\n \"org_id\": \"<string>\",\n \"trusted_issuer\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"connection": {
"transport": "streamable-http",
"url": "<string>",
"authentication": {
"method": "anonymous"
}
},
"hosted_server": true,
"id": "<string>",
"name": "<string>",
"enabled": true,
"tenant_id": "<string>",
"org_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}Create a plugin
Omitting org_id creates a tenant-wide plugin and requires tenant-level access. A connection allows a custom name. A plugin of an organization cannot share its name with another plugin of that organization or with a tenant-wide plugin, and a tenant-wide plugin cannot share it with any plugin of the tenant, ignoring case (409 otherwise). Every new plugin, a legacy one included, starts enabled unless enabled is false. A bearer or API key connection sends one Secret or Vault path credential of the plugin organization or tenant-wide, named in authentication.credential_id; without one the plugin is saved only with enabled false, and 400 otherwise. For a token per agent, use an anonymous plugin and the accessible credentials of the agent; for two authentication methods, create two plugins. Legacy creation keeps its supported names. A hosted MCP server (transport stdio) is a container image the engine starts, with its arguments and environment variables, each a plain value or a Secret or Vault path credential; adding one takes a tenant-level administrator (403 otherwise).
curl --request POST \
--url https://{command_center_host}/api/v1/plugins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "",
"connection": {
"url": "<string>",
"authentication": {
"method": "anonymous"
}
},
"enabled": true,
"org_id": "<string>",
"trusted_issuer": "<string>"
}
'import requests
url = "https://{command_center_host}/api/v1/plugins"
payload = {
"name": "<string>",
"description": "",
"connection": {
"url": "<string>",
"authentication": { "method": "anonymous" }
},
"enabled": True,
"org_id": "<string>",
"trusted_issuer": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '',
connection: {url: '<string>', authentication: {method: 'anonymous'}},
enabled: true,
org_id: '<string>',
trusted_issuer: '<string>'
})
};
fetch('https://{command_center_host}/api/v1/plugins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{command_center_host}/api/v1/plugins",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '',
'connection' => [
'url' => '<string>',
'authentication' => [
'method' => 'anonymous'
]
],
'enabled' => true,
'org_id' => '<string>',
'trusted_issuer' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{command_center_host}/api/v1/plugins"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"\",\n \"connection\": {\n \"url\": \"<string>\",\n \"authentication\": {\n \"method\": \"anonymous\"\n }\n },\n \"enabled\": true,\n \"org_id\": \"<string>\",\n \"trusted_issuer\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{command_center_host}/api/v1/plugins")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"\",\n \"connection\": {\n \"url\": \"<string>\",\n \"authentication\": {\n \"method\": \"anonymous\"\n }\n },\n \"enabled\": true,\n \"org_id\": \"<string>\",\n \"trusted_issuer\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/plugins")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"\",\n \"connection\": {\n \"url\": \"<string>\",\n \"authentication\": {\n \"method\": \"anonymous\"\n }\n },\n \"enabled\": true,\n \"org_id\": \"<string>\",\n \"trusted_issuer\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"connection": {
"transport": "streamable-http",
"url": "<string>",
"authentication": {
"method": "anonymous"
}
},
"hosted_server": true,
"id": "<string>",
"name": "<string>",
"enabled": true,
"tenant_id": "<string>",
"org_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}Authorizations
An API key minted in Command Center (Settings -> API Keys), sent as Authorization: Bearer 2501_ak_.... A Command Center session cookie is also accepted.
Body
1 - 2552000- Option 1
- Option 2
Show child attributes
Show child attributes
OAuth only: the authorization server the MCP server names, trusted from this save on. Ignored when the plugin already trusts one.
2048Response
The created plugin
- Option 1
- Option 2
Show child attributes
Show child attributes
Whether the plugin runs a hosted MCP server, also when its stored connection is unreadable and sent as null.

