FINOS Workspace bridge protocol
The bridge is the connection between the FINOS Workspace MCP server and a signed-in FINOS Workspace tab. This page specifies how a tab opens a session, the messages on the WebSocket, the commands that the tab runs and the limits of the bridge. MCP Companion explains how the bridge works.
| Side | Code |
|---|---|
| API | backend-api/backend/routers/app/workspace_mcp/ and backend-api/backend/workspace_mcp/models.py |
| Web app | frontend/src/components/AI/WorkspaceBridgeConnectionManager.tsx and workspaceBridgeProtocol.ts |
Opening a session
A tab opens a bridge session in two steps. Before the steps, the user must sign in, and the MCP Companion must be on in the tab.
- The tab sends
POST /app/workspace-mcp/bridge/session/startwith itsclient_name. It can also send thecurrent_dashboard_idand thecurrent_tab_idthat it shows.- The API answers with the new
session, which contains asession_id. - The answer also contains a
websocket_urlin the formwss://<api host>/app/workspace-mcp/bridge/ws?session_id=<session id>. - The tab waits a maximum of 10 seconds for the answer.
- The API answers with the new
- The tab opens that WebSocket.
- The browser sends the cookie of the web session with the request.
- The API also requires an allowed origin, as FINOS Workspace API describes.
- The API closes the socket with code 1008 in these conditions:
- The cookie is missing or not valid.
- The session id is not a session of the signed-in user.
Each user has a maximum of one active bridge session. A new session replaces the old session:
- The API closes the old socket.
- The commands that wait for the old socket fail with the message "FINOS Workspace browser session replaced.".
The API keeps a started session for 300 seconds. A tab that does not connect in that time must start a new session.
When the API accepts the socket, it sends the first event, session_ready. The session is then live.
While the socket is open, the API checks every 10 seconds that the web session that opened the socket is still active. When the web session stops, the API does these two things:
- It closes the socket with code 1008.
- It fails the waiting commands with the message "The FINOS Workspace session that opened the browser bridge has ended.".
Messages over the WebSocket
Each message is a JSON object with a type field. The API checks the messages that the browser sends. The API closes the socket with code 1008 when the web session stops.
From the API to the tab:
session_readyThe bridge is connected. The session holds its id, the client name and the current dashboard and tab.
sessionobjectrequiredThe session that is now live.
4 nested properties
client_namestringrequiredThe name of the client that opened the session.
current_dashboard_idstring or nullThe dashboard that the tab shows.
current_tab_idstring or nullThe inner tab that the tab shows.
session_idstringrequiredThe id of the session, which the WebSocket address carries.
command_requestAn MCP client wants the tab to do something. The command names it and carries a request id.
commandobjectrequiredThe command. Its command field names it and its request_id field identifies the call.
pongno fieldsThe answer to a ping.
errorThe API refuses the connection or a message.
errorobjectrequiredWhat the API refuses.
4 nested properties
code"invalid_request" | "unauthorized" | "unavailable" | "timeout" | "command_failed" | "unknown"requiredWhat kind of failure it is.
detailsobject or nullFurther information, where there is any.
messagestringrequiredA sentence that says what went wrong.
retryablebooleanWhether the client can try again.
From the tab to the API:
command_resultThe tab finished a command.
resultobjectrequiredThe result of the command.
7 nested properties
commandstringrequiredThe name of the command.
dataany or nullThe result, which depends on the command.
errorobject or nullThe failure. It is present when ok is false.
messagestringrequiredA sentence that describes the outcome.
okbooleanrequiredWhether the command succeeded.
request_idstring or nullThe id of the request that this result answers.
warningsarray of stringWarnings about the result.
pingno fieldsA heartbeat.
session_context_changedThe user moved to another dashboard or tab. The API keeps the new context for the MCP tools.
sessionobjectrequiredWhere the user is now.
2 nested properties
current_dashboard_idstring or nullThe dashboard that the tab shows.
current_tab_idstring or nullThe inner tab that the tab shows.
A command result has these fields. When ok is false, error has a code. The code is one of invalid_request, unauthorized, unavailable, timeout, command_failed and unknown.
commandstringrequiredThe name of the command.
dataany or nullThe result, which depends on the command.
errorobject or nullThe failure. It is present when ok is false.
4 nested properties
code"invalid_request" | "unauthorized" | "unavailable" | "timeout" | "command_failed" | "unknown"requiredWhat kind of failure it is.
detailsobject or nullFurther information, where there is any.
messagestringrequiredA sentence that says what went wrong.
retryablebooleanWhether the client can try again.
messagestringrequiredA sentence that describes the outcome.
okbooleanrequiredWhether the command succeeded.
request_idstring or nullThe id of the request that this result answers.
warningsarray of stringWarnings about the result.
Commands
The command_request message contains one of 19 commands. Each command has two fields:
commandgives the name of the command.request_ididentifies the call.
The table below gives the other arguments of each command. The tab accepts 20 commands in total. Only the Agent sends the command execute_agent_tool. The tab runs it with the same handler, but it never goes over the WebSocket. FINOS Workspace MCP server lists each tool with its arguments and its description.
Fetches the data of one or more data sources.
Lists the widgets that the session can use, optionally for one origin or backend.
Returns the closed schemas for the data arguments and the interface arguments of one widget.
Returns the composed widgets.json schema of the user's organization.
Looks up the valid values of widget parameters.
Reads one widget of a dashboard.
Creates a widget on a dashboard. With dry_run it only validates.
Changes a widget. With dry_run it only validates.
Deletes a widget.
Creates, reads or updates a dashboard.
Moves or resizes a widget on the dashboard grid.
Moves the tab to a dashboard or to an inner tab.
Creates or changes the navigation tabs of a dashboard.
Adds a markdown note or an HTML widget from inline content.
Assigns tasks to configured external agents.
Loads one skill from the skill library.
Returns a compact snapshot of the dashboards, the current context and the skills.
Lists, adds, updates, refreshes or removes data backends.
Lists, reads or instantiates apps, which are dashboard templates.
Arguments of the commands
get_widget_data
Fetches the data of one or more data sources.
get_widget_dataFetches the data of one or more data sources.
Arguments
data_sourcesarray of objectThe data sources to fetch. Each has the origin, the widget id, the data arguments and optionally the widget UUID.
list_available_widgets
Lists the widgets that the session can use, optionally for one origin or backend.
list_available_widgetsLists the widgets that the session can use, optionally for one origin or backend.
Arguments
backend_idstring or nullLists only the widgets of this backend.
originstring or nullLists only the widgets of this origin.
get_widget_schema
Returns the closed schemas for the data arguments and the interface arguments of one widget.
get_widget_schemaReturns the closed schemas for the data arguments and the interface arguments of one widget.
Arguments
originstring or nullThe origin of the widget.
widget_idstringrequiredThe widget type id.
get_widgets_schema
Returns the composed widgets.json schema of the user's organization.
get_widgets_schemaReturns the composed widgets.json schema of the user's organization.
Arguments
No fields.
get_params_options
Looks up the valid values of widget parameters.
get_params_optionsLooks up the valid values of widget parameters.
Arguments
param_options_queriesarray of objectThe lookups to make. Each has the origin, the widget id, the parameter name and the data arguments.
read_widget
Reads one widget of a dashboard.
read_widgetReads one widget of a dashboard.
Arguments
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
widget_idstring or nullThe widget type id. It identifies the widget only when exactly one widget of that type is on the dashboard.
widget_uuidstring or nullThe widget instance to act on. It is preferred over widget_id.
create_widget
Creates a widget on a dashboard.
create_widgetCreates a widget on a dashboard. With dry_run it only validates.
Arguments
backend_namestringrequiredThe name of the backend that offers the widget, which is the origin of the widget.
configobject or nullThe data arguments and the interface arguments of the new widget.
2 nested properties
data_argsobject or nullThe values of the widget's data parameters.
ui_argsobject or nullThe values of the widget's interface settings.
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
dry_runboolean or nullValidates and previews the change without making it.
widget_idstringrequiredThe widget type id.
update_widget
Changes a widget.
update_widgetChanges a widget. With dry_run it only validates.
Arguments
configobjectrequiredThe new data arguments and interface arguments of the widget.
2 nested properties
data_argsobject or nullThe values of the widget's data parameters.
ui_argsobject or nullThe values of the widget's interface settings.
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
dry_runboolean or nullValidates and previews the change without making it.
widget_idstring or nullThe widget type id. It identifies the widget only when exactly one widget of that type is on the dashboard.
widget_uuidstring or nullThe widget instance to act on. It is preferred over widget_id.
delete_widget
Deletes a widget.
delete_widgetDeletes a widget.
Arguments
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
widget_idstring or nullThe widget type id. It identifies the widget only when exactly one widget of that type is on the dashboard.
widget_uuidstring or nullThe widget instance to act on. It is preferred over widget_id.
manage_dashboard
Creates, reads or updates a dashboard.
manage_dashboardCreates, reads or updates a dashboard.
Arguments
activateboolean or nullWhether the tab shows the new dashboard. It does by default.
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
namestring or nullThe dashboard's name. Create and update need it.
operation"create" | "read" | "update"requiredWhat to do with the dashboard.
update_dashboard_layout
Moves or resizes a widget on the dashboard grid.
update_dashboard_layoutMoves or resizes a widget on the dashboard grid.
Arguments
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
hnumberrequiredThe widget's height in grid rows.
max_hnumber or nullThe largest height that the user may give the widget.
max_wnumber or nullThe largest width that the user may give the widget.
min_hnumber or nullThe smallest height that the user may give the widget.
min_wnumber or nullThe smallest width that the user may give the widget.
tab_idstring or nullThe inner tab that the widget moves to.
wnumberrequiredThe widget's width in grid columns.
widget_idstring or nullThe widget type id. It identifies the widget only when exactly one widget of that type is on the dashboard.
widget_uuidstring or nullThe widget instance to act on. It is preferred over widget_id.
xnumberrequiredThe column of the widget's left edge on the dashboard grid.
ynumberrequiredThe row of the widget's top edge on the dashboard grid.
navigate_workspace
Moves the tab to a dashboard or to an inner tab.
navigate_workspaceMoves the tab to a dashboard or to an inner tab.
Arguments
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
operation"dashboard" | "tab"requiredWhether to move to a dashboard or to an inner tab.
tab_idstring or nullThe inner tab to move to. The operation tab needs it.
manage_navigation_bar
Creates or changes the navigation tabs of a dashboard.
manage_navigation_barCreates or changes the navigation tabs of a dashboard.
Arguments
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
operation"create" | "add_tabs" | "remove_tabs" | "rename_tabs"requiredWhat to do with the navigation tabs.
rename_mapobjectThe new name of each tab to rename, by the id of the tab.
tabsarray of objectThe tabs to create, add or remove, each an object with a name.
add_generative_widget
Adds a markdown note or an HTML widget from inline content.
add_generative_widgetAdds a markdown note or an HTML widget from inline content.
Arguments
dashboard_idstring or nullThe dashboard to act on. When it is missing, the dashboard that the tab shows.
datastring or nullThe content of the widget, as text or HTML.
descriptionstring or nullA short description of the new widget.
inner_tabstring or nullAn existing inner tab to place the widget on.
namestring or nullThe name of the new widget.
widget_type"note" | "html"requiredWhether the widget is a note, which is markdown, or HTML.
assign_tasks_to_agents
Assigns tasks to configured external agents.
assign_tasks_to_agentsAssigns tasks to configured external agents.
Arguments
task_requestsarray of objectThe tasks to assign. Each has an id, a description, the URL of the agent's holder and the id of the agent.
get_skill_content
Loads one skill from the skill library.
get_skill_contentLoads one skill from the skill library.
Arguments
reasonstring or nullWhy the skill is loaded.
slugstringrequiredThe slug of the skill.
get_workspace_snapshot
Returns a compact snapshot of the dashboards, the current context and the skills.
get_workspace_snapshotReturns a compact snapshot of the dashboards, the current context and the skills.
Arguments
No fields.
manage_backends
Lists, adds, updates, refreshes or removes data backends.
manage_backendsLists, adds, updates, refreshes or removes data backends.
Arguments
backend_idstring or nullThe backend to update, refresh or remove.
endpoint_headersarray of object or nullHeaders or query parameters that the backend's endpoints receive.
3 nested properties
keystringrequiredThe name of the header or of the query parameter.
location"headers" | "query"Whether it goes in the headers or in the query.
valuestringrequiredThe value that the backend's endpoints receive.
namestring or nullThe name of the backend.
operation"list" | "add" | "update" | "refresh" | "remove"requiredWhat to do with the backends.
urlstring or nullThe base URL of the backend.
validate_widgetsboolean or nullFor add: whether to check that the backend's widgets load. It does by default.
manage_apps
Lists, reads or instantiates apps, which are dashboard templates.
manage_appsLists, reads or instantiates apps, which are dashboard templates.
Arguments
activateboolean or nullWhether the tab shows the new dashboard. It does by default.
app_namestring or nullThe app to read or instantiate. The template id can name it instead.
backend_idstring or nullFor list: only the apps of this backend.
dashboard_namestring or nullFor instantiate: the name of the new dashboard.
operation"list" | "read" | "instantiate"requiredWhat to do with the apps.
template_idstring or nullThe template of the app, as an alternative to its name.
Limits and failures
| Limit | Value |
|---|---|
| Time that the API waits for a command result | 30 seconds. After this time, the result is ok: false with the error code timeout and retryable: true. |
| Liveness | The tab sends a ping every 15 seconds. Each ping keeps the session present for 45 seconds. The tab closes a connection that gives no answer for 32 seconds. |
| No connected tab | When no tab is connected, the tool call fails with the message "No active FINOS Workspace browser connected". A command can wait when the tab disconnects, or when a new session replaces the tab. That command fails with the error code unavailable and retryable: true. The message is "FINOS Workspace browser disconnected.", or the message for a replaced session. |
| Reconnects | When the tab loses the connection, it tries again a maximum of 3 times. The first wait is 1 second. Each subsequent wait is two times longer. After the last attempt, the tab reports that the connection failed. |
| Repeated requests | The API keeps the results of the last 2,048 requests. When a command comes again with the same request_id, it gets the stored result. The command does not run a second time. |
The API runs more than one worker process. The socket of the tab is open on only one of them. When a tool call comes to a different worker, that worker sends the call to the worker with the socket. The workers use the shared Redis-compatible store for this. The result comes back in the same way. The AI tool does not need to know which worker holds the tab.