Skip to content

Commit 519cb95

Browse files
committed
metamcp: remove endpoint transport entirely (schema, provisioner, examples, docs); bump to 0.2.0
1 parent e9dbadd commit 519cb95

File tree

9 files changed

+6
-24
lines changed

9 files changed

+6
-24
lines changed

charts/metamcp/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Declare everything under `provision.*`:
4242
- deploy: provide one of `node`/`python`/`image` and optionally `port` (defaults to `3001`);
4343
the chart creates a Deployment/Service and auto‑derives the URL for registration.
4444
- Namespaces: group servers by name.
45-
- Endpoints: expose a namespace via `transport: SSE | STREAMABLE_HTTP`. Note: `STDIO` is a server run mode, not an endpoint transport.
45+
- Endpoints: expose a namespace. MetaMCP serves both SSE and Streamable HTTP for each endpoint; no transport field is required.
4646

4747
Example
4848

@@ -91,7 +91,6 @@ provision:
9191
- name: lab
9292
namespace: lab
9393
description: "Public lab endpoint"
94-
transport: SSE
9594
# Optional auth controls (match UI):
9695
enableApiKeyAuth: true
9796
useQueryParamAuth: false

charts/metamcp/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Declare everything under `provision.*`:
4242
- deploy: provide one of `node`/`python`/`image` and optionally `port` (defaults to `3001`);
4343
the chart creates a Deployment/Service and auto‑derives the URL for registration.
4444
- Namespaces: group servers by name.
45-
- Endpoints: expose a namespace via `transport: SSE | STREAMABLE_HTTP`. Note: `STDIO` is a server run mode, not an endpoint transport.
45+
- Endpoints: expose a namespace. MetaMCP serves both SSE and Streamable HTTP for each endpoint; no transport field is required.
4646

4747
Example
4848

charts/metamcp/examples/e2e.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ provision:
3535
endpoints:
3636
- name: lab
3737
namespace: lab
38-
transport: SSE
3938
enableApiKeyAuth: false

charts/metamcp/examples/provision-advanced.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,3 @@ provision:
117117
endpoints:
118118
- name: lab
119119
namespace: lab
120-
transport: SSE

charts/metamcp/examples/provision-pvc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,3 @@ provision:
4545
endpoints:
4646
- name: lab
4747
namespace: lab
48-
transport: SSE
49-

charts/metamcp/examples/provision.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ provision:
4141
endpoints:
4242
- name: lab
4343
namespace: lab
44-
transport: SSE

charts/metamcp/scripts/provision.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -364,22 +364,14 @@ def ensure_namespace(name, description=None):
364364
except Exception:
365365
pass
366366

367-
def create_endpoint(name, nsref, transport=None, extra=None, description=None, update_existing=True):
367+
def create_endpoint(name, nsref, extra=None, description=None, update_existing=True):
368368
lr = trpc_get('/trpc/frontend/frontend.namespaces.list?input=%7B%7D')
369369
nid = None
370370
if lr.ok:
371371
for ns in lr.json().get('result',{}).get('data',{}).get('data',[]):
372372
if ns.get('uuid') == nsref or ns.get('name') == nsref:
373373
nid = ns.get('uuid'); break
374374
if not nid: return
375-
# normalize transport if provided (MetaMCP serves both; transport optional)
376-
tr = None
377-
if transport:
378-
t = (transport or '').upper()
379-
if t in ('SSE','STREAMABLE'):
380-
tr = 'SSE' if t=='SSE' else 'STREAMABLE_HTTP'
381-
elif t in ('STREAMABLE_HTTP',):
382-
tr = t
383375
# find existing endpoint by name
384376
el = trpc_get('/trpc/frontend/frontend.endpoints.list?input=%7B%7D')
385377
e_uuid = None
@@ -408,17 +400,15 @@ def create_endpoint(name, nsref, transport=None, extra=None, description=None, u
408400
else:
409401
# create new endpoint
410402
body = {'name': name,'namespaceUuid': nid}
411-
if tr:
412-
body['transport'] = tr
413403
body.update(flags)
414404
r = trpc_post('/trpc/frontend/frontend.endpoints.create', body)
415-
if r.ok: log(f"endpoint created: {name} ({tr})")
405+
if r.ok: log(f"endpoint created: {name}")
416406

417407
for ep in endpoints:
418408
name = ep.get('name'); nsref = ep.get('namespace') or ep.get('namespaceUuid')
419409
if not (name and nsref): continue
420410
extra = {k: ep[k] for k in ('enableApiKeyAuth','enableOauth','useQueryParamAuth') if k in ep}
421-
create_endpoint(name, nsref, ep.get('transport'), extra, ep.get('description'), UPDATE_EXISTING)
411+
create_endpoint(name, nsref, extra, ep.get('description'), UPDATE_EXISTING)
422412

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

charts/metamcp/values.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@
204204
"name": { "type": "string" },
205205
"namespace": { "type": "string" },
206206
"description": { "type": "string" },
207-
"transport": { "type": "string", "enum": ["SSE", "STREAMABLE_HTTP"] },
208207
"enableApiKeyAuth": { "type": "boolean" },
209208
"enableOauth": { "type": "boolean" },
210209
"useQueryParamAuth": { "type": "boolean" }

charts/metamcp/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,10 @@ provision:
144144
# - name: lab
145145
# servers: ["stdio-everything","http-everything"]
146146

147-
# endpoints: list of { name, namespace, transport, enableApiKeyAuth, enableOauth, useQueryParamAuth }
147+
# endpoints: list of { name, namespace, enableApiKeyAuth, enableOauth, useQueryParamAuth }
148148
endpoints: []
149149
# - name: lab
150150
# namespace: lab
151-
# transport: SSE # or STREAMABLE_HTTP
152151
# enableApiKeyAuth: true
153152
# enableOauth: false
154153
# useQueryParamAuth: false

0 commit comments

Comments
 (0)