Addition of MCP server
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-customers-mcp-ai-mcp-proxy
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: ai-mcp-proxy
|
||||
config:
|
||||
mode: conversion-listener
|
||||
include_consumer_groups: true
|
||||
tools:
|
||||
- name: list-customers
|
||||
description: Retrieves a paginated list of customers in the classic-models CRM.
|
||||
annotations:
|
||||
title: List all customers
|
||||
read_only_hint: true
|
||||
idempotent_hint: true
|
||||
destructive_hint: false
|
||||
open_world_hint: false
|
||||
acl:
|
||||
allow:
|
||||
- admin
|
||||
- read_only
|
||||
- product_manager
|
||||
- customer
|
||||
- support
|
||||
method: GET
|
||||
scheme: http
|
||||
host: ${REST_HOSTNAME}
|
||||
path: /customers/v1/customers/
|
||||
- name: get-customer
|
||||
description: Retrieves a single customer by customer number.
|
||||
annotations:
|
||||
title: Get a customer
|
||||
read_only_hint: true
|
||||
idempotent_hint: true
|
||||
destructive_hint: false
|
||||
open_world_hint: false
|
||||
acl:
|
||||
allow:
|
||||
- admin
|
||||
- read_only
|
||||
- product_manager
|
||||
- customer
|
||||
- support
|
||||
method: GET
|
||||
scheme: http
|
||||
host: ${REST_HOSTNAME}
|
||||
path: /customers/v1/customers/{customernumber}/
|
||||
parameters:
|
||||
- name: customernumber
|
||||
in: path
|
||||
required: true
|
||||
description: The customer's unique number.
|
||||
schema: {}
|
||||
- name: create-customer
|
||||
description: Creates a new customer in the CRM.
|
||||
annotations:
|
||||
title: Create a customer
|
||||
read_only_hint: false
|
||||
idempotent_hint: false
|
||||
destructive_hint: false
|
||||
open_world_hint: false
|
||||
acl:
|
||||
allow:
|
||||
- admin
|
||||
method: POST
|
||||
scheme: http
|
||||
host: ${REST_HOSTNAME}
|
||||
path: /customers/v1/customers/
|
||||
request_body:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
customername:
|
||||
type: string
|
||||
contactlastname:
|
||||
type: string
|
||||
contactfirstname:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
addressline1:
|
||||
type: string
|
||||
city:
|
||||
type: string
|
||||
country:
|
||||
type: string
|
||||
salesrepemployeenumber:
|
||||
type: integer
|
||||
creditlimit:
|
||||
type: string
|
||||
required:
|
||||
- customername
|
||||
- contactlastname
|
||||
- contactfirstname
|
||||
- phone
|
||||
- addressline1
|
||||
- city
|
||||
- country
|
||||
Reference in New Issue
Block a user