Для AI-агентов: markdown этой страницы — /docs/mcp-sessions.mdиндекс документации — /llms.txt
MCP: sessions
Обновлено
MCP: sessions
Это определения инструментов из текущего ToolRegistry, включая полные inputSchema/outputSchema, scope, required_scopes (ALL), risk и версию платформы. Наличие определения не означает, что инструмент уже установлен вашим хостом или разрешён вашим credential. Обновляйте tools/list после изменения бизнеса, readiness и прав. Progressive disclosure через load_domain/describe_tool и существующий meta-dispatch описаны в MCP-руководстве. Scopes и права применяются при вызове; risk не заменяет согласие и отдельные требования денежной операции. JSON ниже — схема, а не успешный результат вызова.
create_session
Create a third-party login / link / pay session that the user confirms in-bot.
{
"description": "Create a third-party login / link / pay session that the user confirms in-bot.",
"domain": "sessions",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"bot": {
"description": "Optional slug of the bot you expect to act on (get_active_bot). If the active bot differs, the call is refused with ACTIVE_BOT_CHANGED and nothing runs.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"external_user_id": {
"description": "Value for external user id.",
"maxLength": 255,
"type": "string"
},
"login_session_id": {
"description": "Value for login session id.",
"maxLength": 255,
"type": "string"
},
"metadata": {
"additionalProperties": {},
"description": "Value for metadata.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"product_seq_id": {
"description": "Value for product seq id.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"redirect_url": {
"description": "Value for redirect url.",
"format": "uri",
"maxLength": 2048,
"type": "string"
},
"type": {
"description": "Value for type.",
"enum": [
"LOGIN",
"LINK",
"OPEN_BILLING",
"PAY_PRODUCT",
"OPEN_SUPPORT"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"name": "create_session",
"outputSchema": null,
"platform_version": "1.0.19",
"required_scopes": [
"sessions"
],
"risk": "write",
"scope": "sessions",
"title": "Create Session"
}exchange_session_approval_code
Exchange an approval_code for access + refresh tokens.
{
"description": "Exchange an approval_code for access + refresh tokens.",
"domain": "sessions",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"approval_code": {
"description": "Value for approval code.",
"minLength": 1,
"type": "string"
},
"bot": {
"description": "Optional slug of the bot you expect to act on (get_active_bot). If the active bot differs, the call is refused with ACTIVE_BOT_CHANGED and nothing runs.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"approval_code"
],
"type": "object"
},
"name": "exchange_session_approval_code",
"outputSchema": null,
"platform_version": "1.0.19",
"required_scopes": [
"sessions"
],
"risk": "write",
"scope": "sessions",
"title": "Exchange Session Approval Code"
}get_session_status
Poll session state (pending / approved / denied / expired).
{
"description": "Poll session state (pending / approved / denied / expired).",
"domain": "sessions",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"session_id": {
"description": "Value for session id.",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "get_session_status",
"outputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"approval_code": {
"type": "string"
},
"session_id": {
"type": "string"
},
"state": {
"type": "string"
},
"user": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"seq_id": {
"exclusiveMinimum": 0,
"maximum": 2147483647,
"type": "integer"
}
},
"required": [
"seq_id"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"session_id",
"state",
"user"
],
"type": "object"
},
"platform_version": "1.0.19",
"required_scopes": [
"sessions"
],
"risk": "read",
"scope": "sessions",
"title": "Get Session Status"
}