OpenSana Docs
MCP Server

Connect and Configure

Generate MCP configuration for supported clients and bind it to the right OpenSana project.

The simplest path is to use opensana init mcp.

Generate Config

opensana init mcp
opensana init mcp --cli claude
opensana init mcp --cli codex

This writes client-specific config files such as:

  • .mcp.json
  • .codex/config.toml

Prerequisites

Before generating MCP config, make sure you have:

  • run opensana setup
  • selected the correct project profile
  • created an API key if your flow requires one

Project vs User Scope

Think about config scope before writing files:

  • use project scope when the config should travel with the repo
  • use user scope when the config is machine-specific

Verify the Result

After generation:

  1. Inspect the written config file.
  2. Confirm the target client sees the MCP server.
  3. Test basic operations such as listing or reading tasks.

On this page