Skip to content

Commit 257f0dd

Browse files
committed
feat(metamcp): support namespace and endpoint descriptions; provision attaches servers via mcpServerUuids; docs updated; bump 0.1.10
1 parent 69f025d commit 257f0dd

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

charts/metamcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: metamcp
33
description: MetaMCP aggregator Helm chart for Kubernetes
44
type: application
5-
version: 0.1.9
5+
version: 0.1.10
66
appVersion: "latest"
77
icon: https://icoretech.github.io/helm/charts/metamcp/logo.png
88
keywords:

charts/metamcp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ provision:
9090
endpoints:
9191
- name: lab
9292
namespace: lab
93+
description: "Public lab endpoint"
9394
transport: SSE
9495
```
9596

charts/metamcp/README.md.gotmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ provision:
9090
endpoints:
9191
- name: lab
9292
namespace: lab
93+
description: "Public lab endpoint"
9394
transport: SSE
9495
```
9596

charts/metamcp/scripts/provision.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def ensure_namespace(name, description=None):
218218
except Exception:
219219
pass
220220

221-
def create_endpoint(name, nsref, transport='SSE', extra=None):
221+
def create_endpoint(name, nsref, transport='SSE', extra=None, description=None):
222222
lr = trpc_get('/trpc/frontend/frontend.namespaces.list?input=%7B%7D')
223223
nid = None
224224
if lr.ok:
@@ -246,6 +246,8 @@ def create_endpoint(name, nsref, transport='SSE', extra=None):
246246
for k in ('enableApiKeyAuth','enableOauth','useQueryParamAuth'):
247247
if k in extra:
248248
flags[k] = extra[k]
249+
if description:
250+
flags['description'] = description
249251
if e_uuid:
250252
# update existing endpoint
251253
up = {'uuid': e_uuid, 'name': name, 'namespaceUuid': nid}
@@ -264,7 +266,7 @@ def create_endpoint(name, nsref, transport='SSE', extra=None):
264266
name = ep.get('name'); nsref = ep.get('namespace') or ep.get('namespaceUuid')
265267
if not (name and nsref): continue
266268
extra = {k: ep[k] for k in ('enableApiKeyAuth','enableOauth','useQueryParamAuth') if k in ep}
267-
create_endpoint(name, nsref, ep.get('transport'), extra)
269+
create_endpoint(name, nsref, ep.get('transport'), extra, ep.get('description'))
268270

269271
# Post-fix auto-generated endpoint servers URLs when APP_URL pointed to 12008 at creation time.
270272
# Newer MetaMCP creates a server named '<namespace>-endpoint' per endpoint and derives its URL from APP_URL.

charts/metamcp/values.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
"properties": {
182182
"name": { "type": "string" },
183183
"namespace": { "type": "string" },
184+
"description": { "type": "string" },
184185
"transport": { "type": "string", "enum": ["SSE", "STREAMABLE_HTTP"] },
185186
"enableApiKeyAuth": { "type": "boolean" },
186187
"enableOauth": { "type": "boolean" },

0 commit comments

Comments
 (0)