Projects & MCP Workspaces
Understand dashboard Projects, organization scope, and MCP Workspaces.
The dashboard calls your team and billing container a Project. Each Project contains MCP Workspaces for configured app access and MCP endpoints. The API and SDKs use organization for the same top-level scope and keep the existing workspace IDs and field names.
Organizations
An organization, shown as a Project in the dashboard, is the top-level container for your Weavz resources. Every connection, MCP server, trigger, and API key belongs to an organization.
Weavz prepares your first Project during setup. In For your product, use the Project menu to switch Projects or choose Create Project. In For your AI, the same menu is under Team & billing. Create additional Projects when you need separate team membership and billing for distinct products or clients.
What belongs to an organization
- API keys
- Workspaces
- End users (scoped to workspaces)
- Connections
- MCP servers
- Triggers
- Members
- Billing and usage
API key scoping
API keys are scoped to your organization by default. You can also create workspace-scoped keys that restrict access to specific workspaces — see API Keys guide for details. Treat API keys like server-side secrets.
MCP Workspaces
An MCP Workspace is one configured set of apps, account choices and allowed actions, available through one MCP endpoint. Creating it prepares the endpoint automatically. Add apps, connect the intended accounts, then connect your AI client. You do not create a separate server.
The main dashboard flows prepare an execution workspace so you can choose an app without creating an MCP server first. Product backends can also create MCP Workspaces and issue separate access tokens for end users. Several people can use one MCP Workspace without sharing their private credentials. See the dashboard experiences and MCP Workspace setup guide.
The customer API keeps the /api/v1/workspaces paths and existing workspace IDs. TypeScript provides client.mcpWorkspaces; Python provides client.mcp_workspaces. The existing workspaces SDK names remain supported.
Common patterns:
- By environment —
production,staging,development - By application —
mobile-app,web-dashboard,internal-tools - By customer — when building a multi-tenant product, create a workspace per end-customer
- By user — for personal-agent products or strict per-user isolation, create a workspace per user
Is an MCP Workspace a project?
An MCP Workspace belongs to a Project. The Project groups your team and billing; the MCP Workspace configures apps, account choices, tools and one MCP endpoint. Open Advanced → MCP Workspaces when you need a separate execution setup or detailed endpoint controls.
Resource scope still matters. API keys are organization-wide by default, connections can be explicitly organization-wide, and custom OAuth applications are configured at organization level. Creating two workspaces does not automatically make those organization resources private to one of them. For a backend restricted to a workspace, use a workspace-scoped API key and review its connection scopes. MCP end-user access tokens bind the selected workspace and end user. Your backend must still authorize its own customers before issuing access.
Existing Projects with several execution setups need an owner or admin to choose their dashboard default explicitly. Changing that default does not move credentials or retarget existing client grants. Keep billing and team membership in the Project, and use MCP Workspaces for configured app access and distinct endpoints. Review the API key guide and connection strategies before choosing the boundaries for your product.
Workspace integrations
After creating a workspace, you configure it by adding workspace integrations — each one declares:
- Which integration to use (e.g.,
slack,github) - A connection strategy (
fixed,per_user, orper_user_with_fallback) - An optional connection (the fixed or fallback connection)
- An optional alias for disambiguation when the same integration appears multiple times
- An optional allowed actions list to restrict which actions are available
# Create the workspace
curl -X POST https://platform.weavz.io/api/v1/workspaces \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{"name": "Production", "slug": "production"}'
# Add Slack with a fixed connection
curl -X POST https://platform.weavz.io/api/v1/workspaces/{workspaceId}/integrations \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"integrationName": "slack",
"connectionStrategy": "fixed",
"connectionId": "CONNECTION_UUID"
}'
# Add Gmail where each user provides their own connection
curl -X POST https://platform.weavz.io/api/v1/workspaces/{workspaceId}/integrations \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"integrationName": "gmail",
"connectionStrategy": "per_user"
}'Connection strategies
| Strategy | Description |
|---|---|
fixed | A single connection is always used. Best for shared service accounts. |
per_user | Each user must provide their own connection. No fallback. |
per_user_with_fallback | Users can provide their own connection, with a default fallback. |
See the Workspace Integrations API for full endpoint documentation.
End users
Workspaces contain end users — the people who use your product. Each end user can own connections to third-party integrations, enabling per-user credential management.
graph TD
Org[Organization: My SaaS Product]
Org --> WS[Workspace: Production]
WS --> Int[Integration: slack - per_user]
WS --> Alice[End User: alice]
WS --> Bob[End User: bob]
WS --> Charlie[End User: charlie]
Alice --> AC[Alice's Slack Connection]
Bob --> BC[Bob's Slack Connection]
Charlie -.- NC[no connections yet]
style NC stroke-dasharray: 5 5End users are created via the API or auto-created when a connection is established through the hosted connect portal. See Managing End Users for a step-by-step guide.
Resource isolation
Workspace configuration defines the intended execution context:
- Workspace integrations define which integrations and connections are available
- End users and their connections are scoped to the workspace
- Connection scope determines which callers can use credentials; private accounts remain bound to their end user
- Triggers can be scoped to a workspace
- The included MCP endpoint reflects the MCP Workspace’s app configuration
Choose workspace-scoped API keys and explicit connection and persistence scopes for your customer boundaries. A separate workspace or a different dashboard default does not restrict an organization-wide key or turn an explicitly shared resource into a private one.
Creating a workspace
curl -X POST https://platform.weavz.io/api/v1/workspaces \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Production",
"slug": "production"
}'MCP server auto-sync
When you add, update, or remove integrations in a workspace, its included MCP endpoint and existing legacy endpoints automatically reflect the changes. Their tools stay in sync with the workspace's integration configuration at all times.
Team access
Organizations support role-based access control with three roles:
| Role | Permissions |
|---|---|
| Owner | Full access, manage billing, delete organization |
| Admin | Manage members, connections, integrations, and settings |
| Member | Create and manage their own connections, view shared resources |
Manage teammates, invitations, and Project roles from Members in the dashboard. In For your AI, expand Team & billing to find it. The product's Users directory holds customer identities and is separate from Project membership. Customer API keys are scoped to resources such as workspaces, connections, actions, triggers, MCP servers, partials, and end users; they are not used for Project administration.
Multi-Tenancy Patterns
Single organization, multiple workspaces
Best for SaaS products where you manage integrations on behalf of your customers. Each workspace is a configured integration container:
graph TD
Org[Organization: My SaaS Product]
Org --> A[Workspace: Customer A]
Org --> B[Workspace: Customer B]
Org --> C[Workspace: Internal]
A --> A1[slack - fixed]
A --> A2[github - fixed]
B --> B1[slack - fixed]
B --> B2[google-sheets - per_user]
C --> C1[slack - fixed]SaaS with per-customer credentials
Create a workspace per customer with fixed connection strategy:
For each customer:
1. Create a workspace
2. Create a connection with the customer's OAuth2 credentials
3. Add a workspace integration with strategy "fixed" pointing to that connection
4. All actions in that workspace context use the customer's credentials
SaaS with end-user OAuth2
Use per_user strategy and end users to let each end user connect their own account:
1. Create a workspace integration with strategy "per_user"
2. Register each end user with externalId = your product's user ID
3. Generate an end-user connect token so they can authorize the integration
4. When executing actions, pass endUserId = that end user's externalId
Hybrid approach
Use per_user_with_fallback for optional personalization:
1. Create a default connection (e.g., your company's Slack bot)
2. Add a workspace integration with strategy "per_user_with_fallback" pointing to the default
3. Users who connect their own Slack get personalized access
4. Users who don't still get functionality via the default bot
Direct Connection External IDs
For direct credential lookup inside a shared workspace, use externalId on connections and pass it as connectionExternalId during action execution. This is best for named credential sets such as a customer workspace, project API key, or shared bot account.
For per-user credentials, prefer first-class end users. Store the user's product ID in endUser.externalId, and pass it as endUserId during execution. See Identifier Model for the full distinction.
curl -X POST https://platform.weavz.io/api/v1/connections \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"type": "PLATFORM_OAUTH2",
"integrationName": "slack",
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"externalId": "conn_customer_123_slack",
"displayName": "Customer 123 Shared Slack",
"accessToken": "xoxb-..."
}'Then resolve the connection by external ID when you need the connection record:
curl -X POST https://platform.weavz.io/api/v1/connections/resolve \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"integrationName": "slack",
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"externalId": "conn_customer_123_slack"
}'Next Steps
- End Users — manage per-user connections and connect portals
- Integrations — browse available integrations
- Connections — learn about connection management
- Workspace Integrations API — configure workspace integration instances