From e3991e89a1aa6ac4868d2dbc5478d29314550c63 Mon Sep 17 00:00:00 2001 From: Chiran Fernando Date: Thu, 27 Nov 2025 13:58:07 +0530 Subject: [PATCH 1/4] Add component.yaml for MCP Weather Service --- .../mcp-weather-server/.choreo/component.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 examples/servers/mcp-weather-server/.choreo/component.yaml diff --git a/examples/servers/mcp-weather-server/.choreo/component.yaml b/examples/servers/mcp-weather-server/.choreo/component.yaml new file mode 100644 index 0000000..9d07389 --- /dev/null +++ b/examples/servers/mcp-weather-server/.choreo/component.yaml @@ -0,0 +1,40 @@ +# Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com/) All Rights Reserved. +# +# WSO2 LLC. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# +required The configuration file schema version +schemaVersion: 1.1 + +# +optional Incoming connection details for the component +endpoints: + # +required Unique name for the endpoint. + # This name will be used when generating the managed API + - name: mcp_weather_service + # +optional Display name for the endpoint. + displayName: MCP Weather Service + # +required Service section has the user service endpoint details + service: + # +optional Base path of the API that gets exposed via the endpoint. + # This is mandatory if the endpoint type is set to REST or GraphQL. + basePath: / + # +required Numeric port value that gets exposed via the endpoint + port: 9090 + # +required Type of traffic that the endpoint is accepting. + # Allowed values: REST, GraphQL, GRPC, TCP, UDP. + type: REST + # +optional Network level visibilities of the endpoint. + # Accepted values: Project|Organization|Public(Default). + networkVisibilities: + - Public From 711b060af93edb138c06810484f9a45aa1e571ba Mon Sep 17 00:00:00 2001 From: Chiran Fernando Date: Thu, 27 Nov 2025 14:12:53 +0530 Subject: [PATCH 2/4] Add component.yaml for MCP Shopping Server --- .../.choreo/component.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 examples/servers/mcp-shopping-server/.choreo/component.yaml diff --git a/examples/servers/mcp-shopping-server/.choreo/component.yaml b/examples/servers/mcp-shopping-server/.choreo/component.yaml new file mode 100644 index 0000000..fc292c8 --- /dev/null +++ b/examples/servers/mcp-shopping-server/.choreo/component.yaml @@ -0,0 +1,40 @@ +# Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com/) All Rights Reserved. +# +# WSO2 LLC. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# +required The configuration file schema version +schemaVersion: 1.1 + +# +optional Incoming connection details for the component +endpoints: + # +required Unique name for the endpoint. + # This name will be used when generating the managed API + - name: mcp_shopping_service + # +optional Display name for the endpoint. + displayName: MCP Shopping Service + # +required Service section has the user service endpoint details + service: + # +optional Base path of the API that gets exposed via the endpoint. + # This is mandatory if the endpoint type is set to REST or GraphQL. + basePath: / + # +required Numeric port value that gets exposed via the endpoint + port: 9090 + # +required Type of traffic that the endpoint is accepting. + # Allowed values: REST, GraphQL, GRPC, TCP, UDP. + type: REST + # +optional Network level visibilities of the endpoint. + # Accepted values: Project|Organization|Public(Default). + networkVisibilities: + - Public From 29d9182c78eee28d42b31e4d516616f757522ca1 Mon Sep 17 00:00:00 2001 From: Chiran Fernando Date: Thu, 27 Nov 2025 14:14:02 +0530 Subject: [PATCH 3/4] Add component.yaml for MCP Crypto Service configuration --- .../mcp-crypto-server/.choreo/component.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 examples/servers/mcp-crypto-server/.choreo/component.yaml diff --git a/examples/servers/mcp-crypto-server/.choreo/component.yaml b/examples/servers/mcp-crypto-server/.choreo/component.yaml new file mode 100644 index 0000000..f87236c --- /dev/null +++ b/examples/servers/mcp-crypto-server/.choreo/component.yaml @@ -0,0 +1,40 @@ +# Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com/) All Rights Reserved. +# +# WSO2 LLC. licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file except +# in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# +required The configuration file schema version +schemaVersion: 1.1 + +# +optional Incoming connection details for the component +endpoints: + # +required Unique name for the endpoint. + # This name will be used when generating the managed API + - name: mcp_crypto_service + # +optional Display name for the endpoint. + displayName: MCP Crypto Service + # +required Service section has the user service endpoint details + service: + # +optional Base path of the API that gets exposed via the endpoint. + # This is mandatory if the endpoint type is set to REST or GraphQL. + basePath: / + # +required Numeric port value that gets exposed via the endpoint + port: 9091 + # +required Type of traffic that the endpoint is accepting. + # Allowed values: REST, GraphQL, GRPC, TCP, UDP. + type: REST + # +optional Network level visibilities of the endpoint. + # Accepted values: Project|Organization|Public(Default). + networkVisibilities: + - Public From eb1a8f2116c691bb4f2aaac50749868ab7ec00af Mon Sep 17 00:00:00 2001 From: Chiran Fernando Date: Thu, 27 Nov 2025 14:14:34 +0530 Subject: [PATCH 4/4] Change API port from 9090 to 9092 --- examples/servers/mcp-shopping-server/.choreo/component.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/servers/mcp-shopping-server/.choreo/component.yaml b/examples/servers/mcp-shopping-server/.choreo/component.yaml index fc292c8..99b02ac 100644 --- a/examples/servers/mcp-shopping-server/.choreo/component.yaml +++ b/examples/servers/mcp-shopping-server/.choreo/component.yaml @@ -30,7 +30,7 @@ endpoints: # This is mandatory if the endpoint type is set to REST or GraphQL. basePath: / # +required Numeric port value that gets exposed via the endpoint - port: 9090 + port: 9092 # +required Type of traffic that the endpoint is accepting. # Allowed values: REST, GraphQL, GRPC, TCP, UDP. type: REST