@meetopenbot/notion 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +33 -0
  2. package/dist/index.js +6 -12
  3. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @meetopenbot/notion
2
+
3
+ Notion specialist agent for OpenBot: search, read, create, and update pages and databases.
4
+
5
+ ## Features
6
+
7
+ - **Agent** — Claude Haiku 5.5 (or an OpenAI model) + Notion's hosted MCP (`https://mcp.notion.com/mcp`)
8
+ - **Auth** — sign in with Notion (OAuth); each person connects their own account
9
+
10
+ ## Setup
11
+
12
+ 1. Add the plugin to your agent's `AGENT.md`:
13
+
14
+ ```yaml
15
+ plugins:
16
+ - id: "@meetopenbot/notion"
17
+ config:
18
+ model: anthropic/claude-haiku-5-5
19
+ ```
20
+
21
+ Sign in from the **Connect Notion** card OpenBot shows the first time the agent runs, or from **Settings → Agents** (open the agent). Notion asks which workspace and pages to share. It is a personal account: each person signs in with their own, and only runs they start use it, so the agent sees only the pages that person can open. The runtime stores the tokens encrypted and refreshes them; if access is revoked in Notion, the agent asks you to sign in again.
22
+
23
+ The runtime must be reachable from your browser at its public URL, since Notion sends you back there after signing in. Integration tokens and `NOTION_TOKEN` are no longer used.
24
+
25
+ LLM calls use `ANTHROPIC_API_KEY` (or `OPENAI_API_KEY` for OpenAI models) when set (BYOK), otherwise OpenBot Credits.
26
+
27
+ ## Build
28
+
29
+ ```bash
30
+ pnpm --filter @meetopenbot/notion build
31
+ ```
32
+
33
+ Restart the OpenBot runtime to load the plugin.
package/dist/index.js CHANGED
@@ -2,21 +2,15 @@ import { defineMcpAgent } from '@meetopenbot/plugin-sdk';
2
2
  export const plugin = await defineMcpAgent({
3
3
  name: 'Notion Agent',
4
4
  description: 'An agent that can interact with your Notion workspace using the official MCP server.',
5
- models: { providers: ['openai'], default: 'openai/gpt-6-luna' },
5
+ models: { providers: ['anthropic', 'openai'], default: 'anthropic/claude-haiku-5-5' },
6
6
  connection: {
7
- kind: 'apiKey',
7
+ kind: 'oauth',
8
8
  id: 'notion',
9
- // An integration token belongs to the Notion workspace, not to one person.
10
- scope: 'workspace',
11
- envKey: 'NOTION_TOKEN',
12
- docsUrl: 'https://www.notion.so/my-integrations',
13
- label: 'Notion integration token',
14
- },
15
- mcp: {
16
- command: 'npx',
17
- args: ['-y', '@notionhq/notion-mcp-server'],
18
- env: (token) => ({ NOTION_TOKEN: token }),
9
+ // A Notion sign-in acts as that person and sees only the pages they can open.
10
+ scope: 'personal',
11
+ label: 'Notion account',
19
12
  },
13
+ mcp: { url: 'https://mcp.notion.com/mcp' },
20
14
  system: `You are a helpful Notion assistant. You have access to the official Notion MCP tools.
21
15
  Use these tools to search, read, create, and update content in the user's Notion workspace.
22
16
  If you need a page or database ID, use the search tools first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/notion",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "description": "Notion agent kind plugin for OpenBot",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "author": "",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@meetopenbot/plugin-sdk": "^2.0.0"
19
+ "@meetopenbot/plugin-sdk": "^2.7.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "typescript": "^5.0.0",