Skip to main content
Sets the default project context for all subsequent tool calls in this session. Once set, other tools will use this project automatically unless overridden with an explicit projectId parameter.

Input Schema

{
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "description": "Project ID to use as default context"
    },
    "organizationId": {
      "type": "string",
      "description": "Organization ID (optional if user belongs to only one organization)"
    }
  },
  "required": ["projectId"]
}

Parameters

ParameterTypeRequiredDescription
projectIdstringYesProject ID to use as default context
organizationIdstringNoOrganization ID (optional if user belongs to only one organization)

Response

FieldTypeDescription
projectIdstringThe project ID that was set
projectNamestringDisplay name of the project
organizationIdstringOrganization ID the project belongs to
organizationNamestringDisplay name of the organization

Example

Request

{
  "projectId": "proj_123"
}

Response

{
  "projectId": "proj_123",
  "projectName": "Marketing Website",
  "organizationId": "org_456",
  "organizationName": "Acme Corporation"
}

Usage

After setting the project context, all subsequent tool calls will use this project by default:
// Set the project context
await mcp.call("set_project", { projectId: "proj_123" });

// These calls now use proj_123 automatically
await mcp.call("search_content", { query: "tutorials" });
await mcp.call("list_components", {});
await mcp.call("search_assets", { type: "image/*" });

Overriding the Default

You can still specify a different project for individual calls:
// Uses the default project (proj_123)
await mcp.call("search_content", { query: "tutorials" });

// Uses a different project explicitly
await mcp.call("search_content", {
  projectId: "proj_456",
  query: "tutorials"
});