Connecting an AI Agent
Consultants can connect an AI agent, such as Claude Code, to an environment through the BizzStream MCP server. Once you approve the connection, the agent can read the setup entities of that environment, validate expressions and BML, preview templates, inspect the history of the environment and search this documentation. Every action the agent takes runs with your own permissions.
Let your AI agent do the setup
Send the address of this page to your AI agent and ask it to set up the BizzStream MCP server. The agent can add the server to its own configuration. You only have to sign in and approve the environment in your browser (step 3 below).
Requirements
- You are a consultant or a BizzStream support user.
- You are an administrator of the environment you want to connect.
- The stage of the environment is development. Test, acceptance and production environments cannot be connected.
- You are signed in as yourself. While you impersonate another user you cannot approve a connection.
- Your AI tool supports remote MCP servers with OAuth sign-in. Claude Code does.
Setting up the connection
The MCP server of the production platform is available at https://mcp.metacomplatform.com/mcp.
-
Add the server to your AI tool. In Claude Code, run:
claude mcp add --transport http bizzstream https://mcp.metacomplatform.com/mcpAdd
--scope userto make the server available in every project. In other AI tools, add a remote (HTTP) MCP server with the address above. The server announces how to sign in by itself, so you do not need a client ID or secret. -
Start the sign-in. In Claude Code, run
/mcp, select bizzstream and choose Authenticate. Other tools start the sign-in from their own MCP settings. - Your browser opens. Sign in to BizzStream if asked, select the development environment or environments the agent may use, and approve the request. Then return to your AI tool.
- Ask the agent to run
whoami. It reports your user and the environment the session is connected to.
list_environments shows every environment you approved. When you approved more than one, the agent can switch
between them with set_environment, and the switch is remembered.
What the agent can do
| Tool | Description |
|---|---|
list_entities, get_entity |
Read setup entities. |
get_environment_graph, get_entity_dependencies, get_entity_dependents |
See which entities depend on each other before one is changed. |
validate_expression, validate_bml, preview_template |
Check expressions, BML and templates without saving anything. |
search_documentation, read_documentation |
Search and read this documentation. |
list_history, preview_rollback |
Inspect the history of setup changes. A rollback is only previewed: you confirm it yourself in the setup section. |
update_agent_instructions |
Write the agent instructions of the environment. |
Giving the agent context
On the Agent instructions tab of the environment page you can describe the environment for AI agents. This text is loaded at the start of every session. See Configuring Environments.
Ending or changing access
Access stops immediately when the approval is revoked, when the environment is no longer in the development stage or when the user is deactivated. To connect another environment, start the sign-in again and approve that environment.
Troubleshooting
| Problem | Solution |
|---|---|
| The environment is not offered on the approval page, or calls are refused | Check that the environment is in the development stage and that you are an administrator of it. |
| The approval is rejected | End the impersonation and sign in as yourself. |
| Calls stop working after they worked before | The approval was revoked or the environment changed stage. Start the sign-in again. |
| Your tool offers no sign-in | It does not support remote MCP servers with OAuth. Use a tool that does, such as Claude Code. |