Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NOTION_TOKEN | Yes | Notion Integration token from notion.so/my-integrations | |
| NOTES_DATABASE_ID | Yes | The ID of the Notion database used for notes | |
| WORKFLOW_DATABASE_ID | Yes | The ID of the Notion database used for workflows (tasks, projects, and subtasks) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_tasks | 列出工作流库中的任务。 Args: status: 按状态过滤,可选值:待办 | 进行中 | 完成 | 搁置 priority: 按优先级过滤,可选值:🔴 紧急 | 🟡 高 | 🟢 普通 tag: 按标签过滤,精确匹配单个标签名称 limit: 返回条数,默认 20,最大 100 project: 按项目过滤,精确匹配项目名称 Returns: 任务列表(字典格式) |
| get_task | 获取单个任务的完整详情。 Args: task_id: Notion 页面 ID(可从 list_tasks 结果中获取) Returns: 任务详情(字典格式) |
| create_task | 在工作流库中创建一个新任务(状态默认为"待办")。 Args: name: 任务名称(必填) project: 所属项目名称,可选 priority: 优先级,可选:🔴 紧急 | 🟡 高 | 🟢 普通,默认 🟢 普通 due_date: 截止日期,格式 YYYY-MM-DD,可选 tags: 标签列表,如 ["开发", "前端"],可选 note: 备注说明,可选 Returns: 创建成功的任务详情 |
| update_task | 更新一个已有任务的属性(只传需要修改的字段)。 Args: task_id: Notion 页面 ID(必填) status: 新状态,可选:待办 | 进行中 | 完成 | 搁置 priority: 新优先级,可选:🔴 紧急 | 🟡 高 | 🟢 普通 due_date: 新截止日期,格式 YYYY-MM-DD tags: 新标签列表(会完整替换原有标签) note: 新备注(会替换原有备注) project: 所属项目名称 Returns: 更新后的任务详情 |
| start_task | 将任务从"待办"推进到"进行中",并在页面 body 中记录开始时间。 Args: task_id: 要开始的任务 ID Returns: 更新后的任务详情 |
| complete_task | 将任务标记为"完成",并在页面 body 中记录完成时间和可选总结。 Args: task_id: 要完成的任务 ID summary: 可选的完成总结/备注,会追加到页面 body Returns: 更新后的任务详情 |
| append_task | 向已有任务追加内容(追加到页面 body 末尾)。 Args: task_id: 任务的 Notion 页面 ID content: 要追加的文本内容 Returns: 更新后的任务元信息(不含完整 body) |
| search_tasks | 在工作流库中全文搜索任务。 Args: query: 搜索关键词 Returns: 匹配的任务列表 |
| get_subtasks | 获取任务的子目标列表(解析任务页面 body 中的子目标 Markdown)。 Args: task_id: 任务的 Notion 页面 ID Returns: 子目标列表 [{name, status, priority}],status: todo | doing | done |
| update_subtasks | 更新任务的子目标列表(重写页面 body 中的子目标区块)。 Args: task_id: 任务的 Notion 页面 ID subtasks: 完整子目标列表 [{name: str, status: str, priority: str}] status: todo | doing | done priority: 🔴 紧急 | 🟡 高 | 🟢 普通 Returns: 更新后的子目标列表 |
| list_notes | 列出笔记库中的笔记。 Args: note_type: 按类型过滤,可选:会议记录 | 想法 | 参考 | 速记 tag: 按标签过滤,精确匹配单个标签名称 limit: 返回条数,默认 20,最大 100 Returns: 笔记列表(字典格式,不含 body 内容) |
| get_note | 获取单篇笔记的完整详情(含 body 内容)。 Args: note_id: Notion 页面 ID include_content: 是否返回页面 body 内容,默认 True Returns: 笔记详情,如果 include_content=True 则包含 content 字段 |
| create_note | 在笔记库中创建一篇新笔记。 Args: title: 笔记标题(必填) content: 笔记正文(必填,支持纯文本/Markdown) note_type: 笔记类型,可选:会议记录 | 想法 | 参考 | 速记,默认速记 tags: 标签列表,如 ["前端", "架构"],可选 Returns: 创建成功的笔记详情 |
| append_note | 向已有笔记追加内容(追加到页面 body 末尾)。 Args: note_id: 笔记 ID content: 要追加的文本内容 Returns: 更新后的笔记元信息(不含完整 body) |
| search_notes | 在笔记库中全文搜索笔记。 Args: query: 搜索关键词 Returns: 匹配的笔记列表 |
| get_overview | 获取工作流库的任务状态概览(各状态数量仪表盘)。 Returns: 包含 todo / in_progress / done / on_hold / total 数量的字典 |
| get_today_tasks | 获取今日相关任务:今天到期的任务 + 所有进行中的任务。 Returns: 任务列表,按优先级排序 |
| generate_standup | 自动生成每日站会内容:昨日完成 / 今日计划 / 阻塞项。 Returns: StandupReport 字典,包含三个列表和生成时间 |
| generate_weekly_review | 生成工作周报/复盘,默认为本周,week_offset=-1 为上周。 Args: week_offset: 0 = 本周,-1 = 上周,以此类推 Returns: WeeklyReview 字典,包含完成任务、进行中任务、创建笔记数和总结 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |