Web access: the organization's streamlines in a browser

Web access: the reach test, turning the web app on and off (admin.mjs web)

Raw Markdown the file as the skill ships it All pages ↓

Members can use an organization's streamlines in a browser at the organization's own address, **https://<account-id>.streamliner.work** (for example https://meridian.streamliner.work), as they do in the app: the same streamlines, chats, confirmations and sign-ins to the company's systems. Web access is off until an owner turns it on. One address is one organization: its name, logo and colors from the first screen, and its own icon when someone installs it. An account ID of 3 characters or fewer, or one of Streamliner's own names (www, app, api, mail, forms, tollfree, toll-free, help, docs, status, admin, support, discover, site, static, cdn, assets, auth, login, oauth, billing), is refused when an account is made. People who don't know the address find it at https://app.streamliner.work (Find Your Organization: the account ID or name, one exact match, never a list). Web access is a setting the organization keeps on the server, not a file in the config folder: there is nothing to add to tenant.json or any agent file, nothing to sign and nothing to publish.

Managing the organization stays in the app. On the web, owners and admins see what members see (and Staging, when it's on); members never see this setting.

The reach test comes first

In the browser, the person's own browser calls the company's MCP servers and sealed endpoints directly, with the person's own sign-in. No server of ours carries their token. That works only for servers that answer a web page's origin (CORS). The reach test asks each one, from the Worker, what a browser at the organization's own address https://<account-id>.streamliner.work would be told:

  • every MCP server in the organization's Live streamlines: the preflight for a call with Authorization, the sign-in discovery documents, client registration and the token endpoint (for servers that sign in with OAuth), and whether the optional Mcp-Method and Mcp-Name headers are allowed (the browser sends them only where they are);
  • every sealed endpoint the organization's forms post to, as the sealed-forms origin https://forms.streamliner.work.

It sends no token and signs nobody in. A relative URL (a server on Streamliner's own host, like the demo's /mock/meridian/mcp) passes without a request. Each row says the server, the streamlines that use it, each step, and why it fails when it does.

A password sign-in that sends its session as a cookie can't work in a browser (a page may not set the Cookie header), so that server always shows In the app on the web. It works when the system takes the session in Authorization or an X- header, named in the connection's session.send.header (private/connections/<id>.json; access-and-networks.md).

What a server must allow is in docs/mcp-authors.md §12 Browsers: allow Streamliner's web app: the two origins, the preflight before any auth check, the allowed and exposed headers, and https://<account-id>.streamliner.work/oauth/callback as a redirect for dynamic registration. Each organization is its own origin: a server used by two organizations allows both addresses.

Turning it on and off

  • On needs a reach test from the last 7 days (otherwise the Worker answers 409 reach_needed). It may be turned on with failures: servers that fail stay In the app for members on the web, and everything else works. Fix the server, run the test again, and the row passes.
  • Off stops every open web page at its next call (403 web_off: "Your organization hasn't turned on the web app. Use the Streamliner app, or ask your admin."), and the browser removes that organization's data. The app is not affected.
  • Owners turn it on and off. Admins see it and run the reach test. A server key with scope config does both (it stands for the owner who made it); config:check reads it and runs the test.
  • The reach test runs at most 6 times an hour per organization. Every change and every test is in the activity log.

From the terminal

node scripts/admin.mjs <account> https://streamliner.work web status     # on or off, who set it, the last test's rows
node scripts/admin.mjs <account> https://streamliner.work web reach      # run the reach test now
node scripts/admin.mjs <account> https://streamliner.work web on         # dry run: the Worker checks it, nothing changes
node scripts/admin.mjs <account> https://streamliner.work web on --yes   # turn it on
node scripts/admin.mjs <account> https://streamliner.work web off --yes  # turn it off

The key file is the organization's server key (--key <file>), or an owner's session in SL_ADMIN_BEARER (write-api.md).

The routes

RouteWhoWhat
GET /v1/admin/<a>/webowner or admin session; key config or config:checkon or off, who set it and when, the last reach test (its rows, whether it is fresh)
PUT /v1/admin/<a>/webowner session; key configbody { "access": true } or { "access": false }; ?dryRun=1 checks without changing anything. The answer names the servers that stay in the app
POST /v1/admin/<a>/web/reachowner or admin session; key config or config:checkruns the reach test and answers its rows

A demo sign-in can't change web access or run the test. When you help someone set up an organization, run the reach test, read the failing rows with them, point each server's owner at the CORS section, and let the owner decide when to turn it on: it is their call, never one to make for them.