Skip to main content
Retrieves the current project context for the session.

Input Schema

{
  "type": "object",
  "properties": {}
}
This tool takes no parameters.

Response

FieldTypeDescription
projectIdstringCurrent project ID (null if not set)
projectNamestringDisplay name of the project
organizationIdstringOrganization ID the project belongs to
organizationNamestringDisplay name of the organization

Example

Request

{}

Response (Context Set)

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

Response (No Context)

{
  "projectId": null,
  "projectName": null,
  "organizationId": null,
  "organizationName": null
}

Usage

Use this tool to check the current context before performing operations:
// Check current context
const context = await mcp.call("get_current_project", {});

if (!context.projectId) {
  // No context set, need to select a project
  const projects = await mcp.call("list_projects", {});
  await mcp.call("set_project", { projectId: projects.items[0].id });
}

// Now safe to use other tools
await mcp.call("search_content", { query: "tutorials" });