Context
Get Current Project
Retrieve the current project context
Retrieves the current project context for the session.
This tool takes no parameters.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve the current project context
{
"type": "object",
"properties": {}
}
| Field | Type | Description |
|---|---|---|
projectId | string | Current project ID (null if not set) |
projectName | string | Display name of the project |
organizationId | string | Organization ID the project belongs to |
organizationName | string | Display name of the organization |
{}
{
"projectId": "proj_123",
"projectName": "Marketing Website",
"organizationId": "org_456",
"organizationName": "Acme Corporation"
}
{
"projectId": null,
"projectName": null,
"organizationId": null,
"organizationName": null
}
// 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.data[0].id });
}
// Now safe to use other tools
await mcp.call("search_content", { query: "tutorials" });