Skip to content
SoulFire LogoSoulFire

Negotiate SDK connection

POST
/v1/sdk:handshake

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Request Body

application/json
  1. body

Information supplied by an SDK while negotiating a connection.

sdkName*string
sdkVersion*string
minimumApiVersion*

A version of SoulFire's stable SDK protocol contract.

maximumApiVersion*

A version of SoulFire's stable SDK protocol contract.

requiredCapabilities?array<string>
requiredPlugins?array<>

Response Body

Server metadata and negotiated features returned before an SDK is ready.

application/json
  1. response

Server metadata and negotiated features returned before an SDK is ready.

serverId*string
soulfireVersion*string
commitHash*string
branchName*string
apiVersion*

A version of SoulFire's stable SDK protocol contract.

nativeMinecraftVersion*string
supportedMinecraftVersions*array<string>
transports*array<>
capabilities*array<>
plugins*array<>
limits*array<>
identity*

The authenticated identity attached to the negotiated connection.

Example Request
curl -X POST 'http://127.0.0.1:38765/v1/sdk:handshake' \
  -H 'Content-Type: application/json' \
  -d '{
  "sdkName": "",
  "sdkVersion": "",
  "requiredCapabilities": [],
  "requiredPlugins": []
}'
Example Response
{
  "serverId": "string",
  "soulfireVersion": "string",
  "commitHash": "string",
  "branchName": "string",
  "apiVersion": {
    "major": 0,
    "minor": 0,
    "patch": 0
  },
  "nativeMinecraftVersion": "string",
  "supportedMinecraftVersions": [
    "string"
  ],
  "transports": [
    "SDK_TRANSPORT_UNSPECIFIED"
  ],
  "capabilities": [
    {
      "id": "string",
      "revision": 0
    }
  ],
  "plugins": [
    {
      "pluginId": "string",
      "pluginVersion": "string",
      "description": "string",
      "author": "string",
      "license": "string",
      "websiteUrl": "http://example.com",
      "requiredSoulfireVersion": "string",
      "apiMajorVersion": 0,
      "descriptorSha256": "string",
      "services": [
        {
          "name": "string",
          "fullName": "string",
          "methods": [
            {
              "name": "string",
              "fullName": "string",
              "inputTypeUrl": "string",
              "outputTypeUrl": "string",
              "clientStreaming": true,
              "serverStreaming": true,
              "permissions": [
                "string"
              ],
              "displayName": "string",
              "description": "string",
              "exposedToMcp": true,
              "mcpRequiresConfirmation": true
            }
          ]
        }
      ],
      "permissions": [
        {
          "id": "string",
          "pluginId": "string",
          "scope": "PLUGIN_PERMISSION_SCOPE_UNSPECIFIED",
          "risk": "PLUGIN_PERMISSION_RISK_UNSPECIFIED",
          "displayName": "string",
          "description": "string",
          "defaultGrant": "PLUGIN_PERMISSION_DEFAULT_UNSPECIFIED"
        }
      ],
      "eventTypeUrls": [
        "string"
      ],
      "taskTypeUrls": [
        "string"
      ],
      "stability": "PLUGIN_API_STABILITY_UNSPECIFIED",
      "sdkPackages": {
        "typescriptPackage": "string",
        "pythonPackage": "string",
        "mavenArtifact": "string"
      },
      "documentationUrl": "string",
      "sourceUrl": "string",
      "eventTypes": [
        {
          "typeUrl": "string",
          "permissions": [
            "string"
          ]
        }
      ],
      "taskTypes": [
        {
          "inputTypeUrl": "string",
          "resultTypeUrl": "string",
          "progressTypeUrl": "string",
          "permissions": [
            "string"
          ]
        }
      ]
    }
  ],
  "limits": [
    {
      "id": "string",
      "value": "string"
    }
  ],
  "identity": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "username": "string",
    "email": "user@example.com",
    "role": "ADMIN",
    "grantedGlobalPermissions": [
      "string"
    ]
  }
}

Was this page helpful?