Skip to main content

Transports

A FINOS Workspace deployment is several processes, and they talk to each other over a small number of channels. This page lists each channel once. It says what carries the messages, how a message is framed, what authenticates the caller and where the format of the messages is described. It is meant for the person who has to open ports, place a proxy or write a network policy, and for the person who wants to know which page to read for a given connection.

Channels that the browser uses​

ChannelCarried byAuthenticationMessages
Static files and config.jsHTTP from the web container.None.Web app configuration
Application requestsHTTPS from the browser to the FINOS Workspace API. The bodies are JSON, and the file routes use multipart forms.The session cookie __Host-ws_session, the header X-Workspace-Client: web and an allowed Origin.FINOS Workspace API
Questions to the built-in agentHTTPS POST from the browser to the agent. The request body is JSON, and the response is a stream of server-sent events. The browser makes a further request for each tool call.The agent token in the Authorization header.Agent query protocol
Questions to an agent that a user addedHTTPS POST from the browser to the route /app/custom-copilot/{copilot_uuid}/relay of the API, which sends the request to the agent and streams the answer back.The session cookie. The API adds the credentials that are stored for the agent, and the browser holds none of them.Agent query protocol
Helper callsHTTPS from the browser to the built-in agent, with JSON or multipart bodies.The agent token.Agent HTTP API
Tools of connected MCP serversHTTPS POST /app/mcp-proxy from the browser to the API. The body names the server and holds the MCP request, and the API streams the server's answer back.The session cookie.Tool results
Tools of the FINOS WorkspaceThe browser asks the API to prepare a command with POST /app/workspace-tools/prepare and runs the command in the tab.The session cookie.FINOS Workspace bridge
Data of a widgetHTTPS from the browser to the API, which calls the backend at the endpoint that widgets.json names.The session cookie. The API adds the connection's credentials and the identity headers, and the browser holds none of them.widgets.json
Live data of a plugin widgetA WebSocket from the browser to /app/data-connectors/api-source/{id}/stream of the API, which opens the widget's data.streamEndpoint on the backend and passes the messages on.The session cookie and an allowed Origin. The API adds the credentials of the connection and the identity headers, and the browser holds none of them.widgets.json
Pages inside iframe widgetswindow.postMessage between the page and FINOS Workspace.The origin and the window of the sender.Iframe widget protocol
Plugin widgetspostMessage for the handshake, then a MessageChannel between the sandboxed frame and FINOS Workspace.The channel's port. FINOS Workspace ignores messages that reach it through postMessage after the handshake.Plugin frame protocol

Channels between the services​

ChannelCarried byAuthenticationMessages
The agent to the FINOS Workspace APIHTTP with JSON bodies, to /app/user, /app/copilot/authorize and /app/usage.The agent token, the metering token in X-Metering-Authorization and the agent's Origin.Agent authentication
Outside AI hosts to the FINOS Workspace MCP serverMCP over streamable HTTP, stateless, at /mcp on the API.A personal access token.FINOS Workspace MCP server
The FINOS Workspace MCP server to a browser tabA WebSocket at /app/workspace-mcp/bridge/ws, with a JSON message in each frame. When the tab's socket is on another API process, the call is forwarded through Valkey.The session cookie and an allowed origin.FINOS Workspace bridge
The API to a connected MCP serverMCP over streamable HTTP. The API refuses a server on a private address unless the user is a superuser, the API runs with MODE=local, the host is in ALLOWED_MCP_HOSTNAMES or the server is a default server from DEFAULT_MCP_SERVERS.The headers or the OAuth token that are stored for the server. The browser never holds them.Agent MCP server
The API to a plugin backendHTTP to the internal address that WIDGET_PLUGIN_BACKENDS lists.The call token in X-Workspace-Call and one header for each secret.Plugin backends
The API to an external service for a plugin proxyHTTPS to the address in the proxy's template.The headers that the template builds from the plugin's secrets.Plugin proxies and secrets
The API and the worker to the databaseThe engine that DATABASE_TYPE selects: MySQL, PostgreSQL or SQLite.The database credentials for reads and for writes.Database tables
The API, the worker and the agent to ValkeyThe Redis protocol.The Valkey credentials.See below.
The agent to model providersHTTPS through the provider's SDK, or HTTP for Ollama. Dictation with an NVIDIA model uses gRPC over TLS.The provider's key.Agent and MCP server
The agent MCP server to the webHTTPS to DuckDuckGo and to the pages that a user's conversation names, and to the embedding provider.The provider's key, for embeddings.Agent MCP server

What Valkey carries​

The API uses Valkey for background jobs and for short-lived state. Background jobs travel through an RQ queue that the worker service reads, in database 0 of the instance, under the queue name payments_queue. The short-lived state lives in database 1, and it includes the agent tokens, the password reset links and the forwarding of bridge commands between API processes. REDIS_CLUSTER_MODE switches both to a Redis cluster, and the REDIS_SSL_* settings turn on TLS, which moves the connection from the port 6379 to the port 6380 by default.

The agent keeps its shared state in the instance that REDIS_URL names: who is signed in, how much of a user's share is left, which turn is under way and a chat's rows. Without it the agent keeps that state in its own process, so it can run only one replica. The agent MCP server uses the same setting for the documents of a chat.

Telemetry​

ChannelCarried byDetails
Agent metricsA Prometheus scrape of /metrics on port 9464, or AGENT_METRICS_PORT.Agent HTTP API
Agent MCP server metricsA scrape of /metrics on port 9465, or MCP_METRICS_PORT.Agent HTTP API
API metricsWhen the PROMETHEUS setting is on, a scrape of /metrics on the API's own port, which refuses a request without an allowed origin, and a second listener on port 6970 that the web server's main process runs and that checks no origin. Both show all the workers together.FINOS Workspace API
Agent tracesOTLP over HTTP to OTEL_EXPORTER_OTLP_ENDPOINT.Agent and MCP server

Default ports​

ProcessPort
Web container8080
FINOS Workspace API8000, or PORT
The agent7777, or PORT
Agent MCP server8787, or MCP_PORT
Agent metrics, MCP server metrics9464 and 9465
API Prometheus listener6970
Valkey6379, or 6380 with TLS