call_business_mcp
The MCP of a published business, at `<EMPORIUM_BASE_URL>/n/<slug>/mcp` with the `slug` that `emporium_search_service` gives: JSON-RPC 2.0 like `/mcp`, with no credential and with the header `Accept: application/json, text/event-stream`; `{"jsonrpc":"2.0","id":1,"method":"tools/list"}` lists its three tools, `<slug>_ficha`, `<slug>_catalogo` and `<slug>_pedir_cotizacion` (each `-` of the slug written `_`)
POST https://emporium.ultravioletadao.xyz/n/{slug}/mcp
Where to reach it
| REST API | Live | POST https://emporium.ultravioletadao.xyz/n/{slug}/mcp |
|---|---|---|
| MCP | Coming soon | |
| CLI | Coming soon | |
| Python SDK | Coming soon | |
| TypeScript SDK | Coming soon | |
| Rust SDK | Coming soon |
Live: you can use it today, to read and to write. Read-only: today you can read, not write. Coming soon: not there yet.
Parameters
| Name | In | Required | Schema | What it is |
|---|---|---|---|---|
slug | path | yes | string | |
MCP-Protocol-Version | header | no | string | The MCP protocol version, after initialize |
Request body
Required.
application/json
{
"$ref": "#/components/schemas/PeticionJsonRpc"
}
Responses
200
OK
application/json
{
"$ref": "#/components/schemas/RespuestaJsonRpc"
}
text/event-stream string
202
Accepted, with no body
No body.
Any other status
An error: with JSON, the single envelope, whose error.codigo is one of a closed list
application/json
{
"anyOf": [
{
"$ref": "#/components/schemas/SobreDeError"
},
{
"$ref": "#/components/schemas/RespuestaJsonRpc"
}
]
}
Schemas
The ones this operation names, as they are in the contract's components.schemas.
CodigoDeError
{
"enum": [
"dominio_invalido",
"slug_ocupado",
"tenant_no_encontrado",
"tenant_no_publicado",
"tenant_suspendido",
"clave_invalida",
"estado_no_permite",
"ventana_no_cumplida",
"metodo_invalido",
"manifiesto_invalido",
"categoria_prohibida",
"terminos_no_aceptados",
"canal_no_confirmado",
"version_de_terminos_desconocida",
"pedido_invalido",
"faltan_datos",
"respuesta_invalida",
"firma_invalida",
"enlace_vencido",
"enlace_ya_usado",
"demasiadas_peticiones",
"parametro_invalido",
"metodo_no_permitido",
"firma_no_configurada",
"correo_no_configurado",
"terminos_no_configurados",
"casa_no_configurada",
"almacen_no_disponible",
"error_interno",
"paybox_no_configurado",
"boveda_no_disponible",
"sesion_requerida",
"estado_oauth_invalido",
"consentimiento_rechazado",
"concesion_insegura",
"paybox_no_responde",
"paybox_rechazo",
"sin_vinculo",
"vinculo_revocado",
"vinculo_vencido",
"reconexion_requerida",
"vinculo_ajeno",
"renovacion_en_curso"
],
"type": "string"
}
CuerpoDelError
{
"additionalProperties": false,
"properties": {
"codigo": {
"$ref": "#/components/schemas/CodigoDeError"
},
"detalles": {
"items": {
"$ref": "#/components/schemas/Detalle"
},
"type": "array"
},
"mensaje": {
"type": "string"
},
"peticion_id": {
"type": "string"
}
},
"required": [
"codigo",
"detalles",
"mensaje",
"peticion_id"
],
"type": "object"
}
Detalle
{
"additionalProperties": false,
"properties": {
"campo": {
"type": "string"
},
"problema": {
"type": "string"
}
},
"required": [
"campo",
"problema"
],
"type": "object"
}
ErrorJsonRpc
{
"properties": {
"code": {
"format": "int64",
"type": "integer"
},
"data": true,
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
IdJsonRpc
{
"anyOf": [
{
"format": "int64",
"type": "integer"
},
{
"type": "string"
}
]
}
PeticionJsonRpc
{
"properties": {
"id": {
"anyOf": [
{
"$ref": "#/components/schemas/IdJsonRpc"
},
{
"type": "null"
}
]
},
"jsonrpc": {
"$ref": "#/components/schemas/VersionJsonRpc"
},
"method": {
"type": "string"
},
"params": {
"additionalProperties": true,
"default": null,
"type": [
"object",
"null"
]
}
},
"required": [
"jsonrpc",
"method"
],
"type": "object"
}
RespuestaJsonRpc
{
"properties": {
"error": {
"anyOf": [
{
"$ref": "#/components/schemas/ErrorJsonRpc"
},
{
"type": "null"
}
]
},
"id": {
"anyOf": [
{
"$ref": "#/components/schemas/IdJsonRpc"
},
{
"type": "null"
}
]
},
"jsonrpc": {
"$ref": "#/components/schemas/VersionJsonRpc"
},
"result": {
"additionalProperties": true,
"type": [
"object",
"null"
]
}
},
"required": [
"id",
"jsonrpc"
],
"type": "object"
}
SobreDeError
{
"additionalProperties": false,
"properties": {
"error": {
"$ref": "#/components/schemas/CuerpoDelError"
}
},
"required": [
"error"
],
"type": "object"
}
VersionJsonRpc
{
"enum": [
"2.0"
],
"type": "string"
}