Notion
This guide walks you through preparing your Notion environment for MCPMark and authenticating the CLI tools.
1 · Set up Notion Environment
-
Duplicate the MCPMark Source Pages Copy the template database and pages into your workspace from the public template following this tutorial: Duplicate MCPMark Source.
-
Set up the Source and Eval Hub for Environment Isolation
- Prepare two separate Notion pages:
- Source Hub: Stores all the template databases/pages. Managed by
SOURCE_NOTION_API_KEY
. - Eval Hub: Only contains the duplicated templates for the current evaluation. Managed by
EVAL_NOTION_API_KEY
.
- Source Hub: Stores all the template databases/pages. Managed by
- In Notion, create an empty page in your Eval Hub. The page name must exactly match the value you set for
EVAL_PARENT_PAGE_TITLE
in your environment variables (e.g.,MCPMark Eval Hub
). - In Notion's Connections settings:
- Bind the integration corresponding to
EVAL_NOTION_API_KEY
to the Eval Hub parent page you just created. - Bind the integration corresponding to
SOURCE_NOTION_API_KEY
to your Source Hub (where the templates are stored).
- Bind the integration corresponding to
- Prepare two separate Notion pages:
-
Create Notion Integrations & Grant Access
a. Visit Notion Integrations and create two internal integrations (one for Source Hub, one for Eval Hub).
b. Copy the generated Internal Integration Tokens (these will be your
SOURCE_NOTION_API_KEY
andEVAL_NOTION_API_KEY
).c. Share the Source Hub with the Source integration, and the Eval Hub parent page with the Eval integration (Full Access).
2 · Authenticate with Notion
The verification script will tell you which browser is working properly. The pipeline defaults to using chromium. Our pipeline has been fully tested on macOS and Linux.
3. Running Notion Tasks
- Configure environment variables: make sure the following service credentials are added in
.mcp_env
.
- For single task or task group, run
Here EXPNAME refers to customized experiment name, NOTIONTASK refers to the notion task or task group selected (see Task Page for specific task information), MODEL refers to the selected model (see Introduction Page for model supported), K refers to the time of independent experiments.