# Pruebas del servidor MCP Business Central
# Usar con extensión REST Client de VS Code
### Configuración
@baseUrl = https://mcp-bc-javi-chb7bue4evbkeyb0.westeurope-01.azurewebsites.net
@mcpEndpoint = {{baseUrl}}/mcp
### Verificar si el servidor está en línea
GET {{baseUrl}}
Accept: text/html
### Listar herramientas disponibles
POST {{mcpEndpoint}}
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": "1",
"method": "listTools",
"params": {}
}
### Obtener 5 clientes
POST {{mcpEndpoint}}
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": "1",
"method": "runTool",
"params": {
"name": "get_customers",
"parameters": {
"limit": 5
}
}
}
### Obtener detalles de un cliente específico (reemplazar CLIENTE01 con un ID real)
POST {{mcpEndpoint}}
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": "1",
"method": "runTool",
"params": {
"name": "get_customer_details",
"parameters": {
"customer_id": "CLIENTE01"
}
}
}
### Obtener 10 artículos
POST {{mcpEndpoint}}
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": "1",
"method": "runTool",
"params": {
"name": "get_items",
"parameters": {
"limit": 10
}
}
}
### Obtener 3 órdenes de venta
POST {{mcpEndpoint}}
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": "1",
"method": "runTool",
"params": {
"name": "get_sales_orders",
"parameters": {
"limit": 3
}
}
}
### Crear un nuevo cliente
POST {{mcpEndpoint}}
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": "1",
"method": "runTool",
"params": {
"name": "create_customer",
"parameters": {
"displayName": "Empresa de Prueba",
"email": "contacto@empresaprueba.com",
"phoneNumber": "912345678",
"addressLine1": "Calle Principal 123",
"city": "Madrid",
"country": "ES",
"taxRegistrationNumber": "B12345678"
}
}
}