Files
kong-catalog-api/kong/mcp/ai-mcp-proxy.yaml
T
Stéphane Tailland f929a0f7e4 MCP server
2026-08-20 16:26:48 +02:00

90 lines
2.4 KiB
YAML

apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: ${NAME}-catalog-mcp-ai-mcp-proxy
namespace: ${NAMESPACE}
plugin: ai-mcp-proxy
config:
mode: conversion-listener
include_consumer_groups: true
tools:
- name: list-products
description: Retrieves a paginated list of products in the classic-models catalog.
annotations:
title: List all products
read_only_hint: true
idempotent_hint: true
destructive_hint: false
open_world_hint: false
acl:
allow:
- sttlab-user
- sttlab-admin
method: GET
scheme: http
host: ${REST_HOSTNAME}
path: /classic-models/api/v1/products/
- name: get-product
description: Retrieves a single product by its product code.
annotations:
title: Get a product
read_only_hint: true
idempotent_hint: true
destructive_hint: false
open_world_hint: false
acl:
allow:
- sttlab-user
- sttlab-admin
method: GET
scheme: http
host: ${REST_HOSTNAME}
path: /classic-models/api/v1/products/{productcode}/
parameters:
- name: productcode
in: path
required: true
description: The product's unique code.
schema: {}
- name: create-product
description: Creates a new product in the catalog.
annotations:
title: Create a product
read_only_hint: false
idempotent_hint: false
destructive_hint: false
open_world_hint: false
acl:
allow:
- sttlab-admin
method: POST
scheme: http
host: ${REST_HOSTNAME}
path: /classic-models/api/v1/products/
request_body:
required: true
content:
application/json:
schema:
type: object
properties:
productname:
type: string
productline:
type: string
productscale:
type: string
productvendor:
type: string
productdescription:
type: string
quantityinstock:
type: integer
buyprice:
type: string
msrp:
type: string
required:
- productname
- productline