> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Context Overview

> Set and manage project context for MCP operations

Context management tools set the project context for all subsequent operations, reducing the need to specify project IDs repeatedly.

## Available Tools

<CardGroup cols={2}>
  <Card title="set_project" icon="folder-open" href="/mcp/context/set-project">
    Set the default project context
  </Card>

  <Card title="get_current_project" icon="circle-info" href="/mcp/context/get-current-project">
    Get current project context
  </Card>

  <Card title="list_projects" icon="list" href="/mcp/context/list-projects">
    List available projects
  </Card>
</CardGroup>

## How Context Works

All MCP tools accept an optional `projectId` parameter. If not provided, tools use the session's default project set via `set_project`.

```javascript theme={null}
// Set project context once
await mcp.call("set_project", { projectId: "proj_123" });

// Subsequent calls use the default project automatically
await mcp.call("search_content", { query: "tutorials" });
await mcp.call("search_assets", { type: "image/*" });
```

## Context Persistence

* Context persists within a session
* Context is stored for 24 hours per user and client, so it persists across reconnections
* Override the default by passing `projectId` explicitly to any tool

## Implementation Behavior

The MCP server manages context based on these rules:

1. **No Automatic Default**: Only `set_project` sets the default project, even if the user has access to a single project
2. **Project Selection**: Call `list_projects` to see available projects, then `set_project`
3. **Error Guidance**: When tools are called without proper context, the error message tells you to call `set_project` or pass `projectId`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.