Skip to content
Docs

create_flags_project_connection

Connect two projects in the same team. The source owns the flags; the consumer receives read and evaluate access across environments. Your consumer project's OIDC token selects the environment. Connections do not permit flag changes.

Set projectIdOrName to the source and requestBody.consumerProjectId to the consumer. Confirm both projects before creating the connection. On a project-scoped MCP connection, connect to the source project.

{
  "teamId": "team_example",
  "projectIdOrName": "prj_source",
  "requestBody": {
    "consumerProjectId": "prj_consumer"
  }
}

The response identifies both projects and the connection's creator and creation time. Read it back with list_flags_project_connections. An existing connection returns a conflict; inspect it before retrying.

Your MCP OAuth grant must cover both projects. You need permission to manage connections on the source and view the consumer. See Project Connections permissions.

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
teamIdstringNoTeam ID.
slugstringNoTeam slug.
requestBodyobjectYesRequest body for this tool.

Was this helpful?

supported.