Model Context Protocol endpoint.
- mcp_delete - Delete MCP session
- mcp_get - Open MCP SSE stream
- mcp_post - Send MCP JSON-RPC message
Close an existing MCP session for the provided session id
require 'stackone_client'
Models = ::StackOne::Models
s = ::StackOne::StackOne.new
res = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new(
api_key: '<YOUR_API_KEY_HERE>'
), mcp_session_id: '<id>', x_account_id: '<id>')
if res.status_code == 200
# handle response
end| Parameter | Type | Required | Description |
|---|---|---|---|
security |
Models::Operations::StackoneMcpDeleteSecurity | ✔️ | The security requirements to use for the request. |
mcp_session_id |
::String | ✔️ | Session id |
x_account_id |
T.nilable(::String) | ➖ | Account secure id for the target provider account (optional if x-account-id query parameter is provided) |
x_account_id_query_parameter |
T.nilable(::Object) | ➖ | Account secure id (alternative to x-account-id header) |
T.nilable(Models::Operations::StackoneMcpDeleteResponse)
| Error Type | Status Code | Content Type |
|---|---|---|
| Models::Errors::BadRequestResponse | 400 | application/json |
| Models::Errors::UnauthorizedResponse | 401 | application/json |
| Models::Errors::ForbiddenResponse | 403 | application/json |
| Models::Errors::NotFoundResponse | 404 | application/json |
| Models::Errors::RequestTimedOutResponse | 408 | application/json |
| Models::Errors::ConflictResponse | 409 | application/json |
| Models::Errors::UnprocessableEntityResponse | 422 | application/json |
| Models::Errors::TooManyRequestsResponse | 429 | application/json |
| Models::Errors::InternalServerErrorResponse | 500 | application/json |
| Models::Errors::NotImplementedResponse | 501 | application/json |
| Models::Errors::BadGatewayResponse | 502 | application/json |
| Errors::APIError | 4XX, 5XX | */* |
Open a dedicated Server-Sent Events stream for MCP notifications
require 'stackone_client'
Models = ::StackOne::Models
s = ::StackOne::StackOne.new
res = s.mcp.mcp_get(security: Models::Operations::StackoneMcpGetSecurity.new(
api_key: '<YOUR_API_KEY_HERE>'
), mcp_session_id: '<id>', x_account_id: '<id>')
if res.status_code == 200
# handle response
end| Parameter | Type | Required | Description |
|---|---|---|---|
security |
Models::Operations::StackoneMcpGetSecurity | ✔️ | The security requirements to use for the request. |
mcp_session_id |
::String | ✔️ | Session id |
x_account_id |
T.nilable(::String) | ➖ | Account secure id for the target provider account (optional if x-account-id query parameter is provided) |
x_account_id_query_parameter |
T.nilable(::Object) | ➖ | Account secure id (alternative to x-account-id header) |
T.nilable(Models::Operations::StackoneMcpGetResponse)
| Error Type | Status Code | Content Type |
|---|---|---|
| Models::Errors::BadRequestResponse | 400 | application/json |
| Models::Errors::UnauthorizedResponse | 401 | application/json |
| Models::Errors::ForbiddenResponse | 403 | application/json |
| Models::Errors::NotFoundResponse | 404 | application/json |
| Models::Errors::RequestTimedOutResponse | 408 | application/json |
| Models::Errors::ConflictResponse | 409 | application/json |
| Models::Errors::UnprocessableEntityResponse | 422 | application/json |
| Models::Errors::TooManyRequestsResponse | 429 | application/json |
| Models::Errors::InternalServerErrorResponse | 500 | application/json |
| Models::Errors::NotImplementedResponse | 501 | application/json |
| Models::Errors::BadGatewayResponse | 502 | application/json |
| Errors::APIError | 4XX, 5XX | */* |
Send JSON-RPC request to the MCP server over HTTP streaming transport
require 'stackone_client'
Models = ::StackOne::Models
s = ::StackOne::StackOne.new
res = s.mcp.mcp_post(security: Models::Operations::StackoneMcpPostSecurity.new(
api_key: '<YOUR_API_KEY_HERE>'
), json_rpc_message_dto: Models::Shared::JsonRpcMessageDto.new(
id: Models::Shared::Id.new,
jsonrpc: '2.0',
method: 'initialize',
params: Models::Shared::Params.new
), x_account_id: '<id>')
if res.status_code == 200
# handle response
endrequire 'stackone_client'
Models = ::StackOne::Models
s = ::StackOne::StackOne.new
res = s.mcp.mcp_post(security: Models::Operations::StackoneMcpPostSecurity.new(
api_key: '<YOUR_API_KEY_HERE>'
), json_rpc_message_dto: Models::Shared::JsonRpcMessageDto.new(
id: Models::Shared::Id.new,
jsonrpc: '2.0',
method: 'tools/call',
params: Models::Shared::Params.new
), x_account_id: '<id>')
if res.status_code == 200
# handle response
endrequire 'stackone_client'
Models = ::StackOne::Models
s = ::StackOne::StackOne.new
res = s.mcp.mcp_post(security: Models::Operations::StackoneMcpPostSecurity.new(
api_key: '<YOUR_API_KEY_HERE>'
), json_rpc_message_dto: Models::Shared::JsonRpcMessageDto.new(
id: Models::Shared::Id.new,
jsonrpc: '2.0',
method: 'tools/list',
params: Models::Shared::Params.new
), x_account_id: '<id>')
if res.status_code == 200
# handle response
end| Parameter | Type | Required | Description |
|---|---|---|---|
security |
Models::Operations::StackoneMcpPostSecurity | ✔️ | The security requirements to use for the request. |
json_rpc_message_dto |
Models::Shared::JsonRpcMessageDto | ✔️ | JSON-RPC 2.0 message |
mcp_session_id |
T.nilable(::String) | ➖ | Session id; omit for initialize, include for subsequent calls |
x_account_id |
T.nilable(::String) | ➖ | Account secure id for the target provider account (optional if x-account-id query parameter is provided) |
x_account_id_query_parameter |
T.nilable(::Object) | ➖ | Account secure id (alternative to x-account-id header) |
T.nilable(Models::Operations::StackoneMcpPostResponse)
| Error Type | Status Code | Content Type |
|---|---|---|
| Models::Errors::BadRequestResponse | 400 | application/json |
| Models::Errors::UnauthorizedResponse | 401 | application/json |
| Models::Errors::ForbiddenResponse | 403 | application/json |
| Models::Errors::NotFoundResponse | 404 | application/json |
| Models::Errors::RequestTimedOutResponse | 408 | application/json |
| Models::Errors::ConflictResponse | 409 | application/json |
| Models::Errors::UnprocessableEntityResponse | 422 | application/json |
| Models::Errors::TooManyRequestsResponse | 429 | application/json |
| Models::Errors::InternalServerErrorResponse | 500 | application/json |
| Models::Errors::NotImplementedResponse | 501 | application/json |
| Models::Errors::BadGatewayResponse | 502 | application/json |
| Errors::APIError | 4XX, 5XX | */* |