You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4824fe2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: bin/jss.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -95,10 +95,9 @@ program
95
95
.option('--lws','Enable the W3C Linked Web Storage surface (application/lws+json containers)')
96
96
.option('--lws-type-index','Enable the LWS Type Index/Search services (default on when --lws)')
97
97
.option('--no-lws-type-index','Disable the LWS Type Index/Search services')
98
-
.option('--lws-profile-index <path>','Advertise a ProfileIndexService at this pod path in the storage description (requires --lws)')
99
98
.option('--lws-profile-conneg','Enable content negotiation by profile (default on when --lws)')
100
99
.option('--no-lws-profile-conneg','Disable content negotiation by profile')
101
-
.option('--lws-void <path>','Serve /.well-known/void as a 303 to this pod path and advertise a VoidService in the storage description (requires --lws)')
100
+
.option('--lws-config <path>','Pod resource declaring LWS service endpoints as data ({ profileIndex, void }, requires --lws)')
.option('--mcp','Enable MCP (Model Context Protocol) server at /mcp — pod as a tool surface for agents (#490)')
166
165
.option('--no-mcp','Disable MCP server')
167
166
.option('--mcp-credential-policy <policy>',"Credential tier required on /mcp: 'trusted-local' (default) or 'audience-bound' (refuses the replayable bearer, requires LWS-CID/Solid-OIDC DPoP)")
167
+
.option('--lws-federation-private','Allow the MCP federation arm (read_resource remote reads) to reach loopback/RFC-1918/link-local/cloud-metadata hosts (default: blocked)')
Copy file name to clipboardExpand all lines: docs/mcp.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ Ten tools: eight core + two convenience.
104
104
|`write_acl`| persist a structured ACL to the resource's `.acl`| Control + anti-lockout |
105
105
|`lws_type_search`| CNF `type` (+ `describedby`) query, WAC-filtered, no-oracle | reuses the authorized-resources walk |
106
106
|`subscribe`| SSE stream of `resource_changed` events, WAC-filtered per event | Read per event |
107
-
|`read_resource`| Read any resource by its real `https://` URL — one-Web: this pod's own uri dispatches as a local read (same resolver as `resources/read`), any other origin is a federation-gated remote GET (incl. that pod's storage description). Returns two content blocks: body, then metadata `{ uri, mimeType, links }`. Local `links`: `up` (parent container, omitted for `/.well-known/*` — those have no parent to walk to), `storageDescription`, `describedby` (optional, from `.meta`). Remote `links`: `context`, `alternate`, `linkset` (from Link headers, passed through verbatim). | local: Read; remote: caller needs `acl:Write` on `<pod>/private/federation/`, depth-capped at 3 |
107
+
|`read_resource`| Read any resource by its real `https://` URL — one-Web: this pod's own uri dispatches as a local read (same resolver as `resources/read`), any other origin is a federation-gated remote GET (incl. that pod's storage description). Returns two content blocks: body, then metadata `{ uri, mimeType, links }` (`mimeType` is the resource's real stored content type, e.g. `text/markdown` — independent of the body being fenced as untrusted). Local `links`: `up` (parent container, omitted for `/.well-known/*` — those have no parent to walk to), `storageDescription`, `describedby` (optional, from `.meta`), `canonical`/`alternates` (optional, authz-filtered `altr:` representations declared on `.meta` — an alternate the caller can't Read is simply absent, no-oracle). Remote `links`: `context`, `alternate`, `linkset` (from Link headers, passed through verbatim). | local: Read; remote: caller needs `acl:Write` on `<pod>/private/federation/`, depth-capped at 3 |
108
108
|`list_resources`| The model-callable twin of `resources/list` — this pod's fixed entry resources + the real-URI template. Returns metadata object with `resources` array (fixed entries like `storage-description`, `pod-info`, `skills`) and `templates` array (the real-URI template). | none (fixed, public shape) |
109
109
110
110
Writes (`write_resource`/`create_resource`, and `put_typed_resource` below) route through the shared LWS admission core (SHACL validation → write → type-capture) — the same enforcement path as HTTP PUT/POST. Pass a `types` array (the `Link: rel="type"` equivalent) to declare server-managed types.
@@ -114,7 +114,7 @@ Writes (`write_resource`/`create_resource`, and `put_typed_resource` below) rout
114
114
| Tool | Composes |
115
115
|---|---|
116
116
|`put_typed_resource`| write body + capture `types` + optionally declare a `describedby` shape into the target `.meta`, in one call |
117
-
|`describe_resource`| one read returning body + declared types + linkset together; takes `path` or `uri` — when both are given, `path` wins and `uri` is ignored |
117
+
|`describe_resource`| one read returning body + declared types + linkset together — the linkset's `canonical`/`alternate` members carry the resource's authz-filtered `altr:` representations, and the result carries a `hint` teaching that representations are negotiable via `Accept-Profile` and alternates are listed as `rel=alternate`; takes `path` or `uri` — when both are given, `path` wins and `uri` is ignored |
0 commit comments