notion-mcp-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNotion MCP Skill
Notion MCP 技能
Use this skill to run Notion MCP operations through with OAuth and guarded write behavior.
uxcReuse the skill guidance for discovery, schema inspection, OAuth lifecycle, and error recovery.
Do not assume another skill is auto-triggered in every runtime. Keep this skill executable on its own.
uxc使用此技能通过结合OAuth和受保护的写入行为来执行Notion MCP操作。
uxc复用技能的发现、架构检查、OAuth生命周期以及错误恢复相关指引。
不要假设在每个运行时都会自动触发其他技能,确保此技能可独立执行。
uxcPrerequisites
前提条件
- is installed and available in
uxc.PATH - Network access to .
https://mcp.notion.com/mcp - OAuth callback listener is reachable (default examples use ).
http://127.0.0.1:8788/callback - skill is available for generic discovery/describe/execute patterns.
uxc
- 已安装且其路径已添加至
uxc环境变量。PATH - 可访问网络地址。
https://mcp.notion.com/mcp - OAuth回调监听器可被访问(默认示例使用)。
http://127.0.0.1:8788/callback - 技能可用于通用的发现/描述/执行模式。
uxc
Core Workflow (Notion-Specific)
Notion专属核心工作流
Endpoint argument style in this skill:
- Prefer shorthand (scheme omitted).
mcp.notion.com/mcp - Full URL is also valid.
https://mcp.notion.com/mcp
- Ensure endpoint mapping exists:
uxc auth binding match mcp.notion.com/mcp
- If mapping/auth is not ready, start OAuth login:
uxc auth oauth start notion-mcp --endpoint mcp.notion.com/mcp --redirect-uri http://127.0.0.1:8788/callback --scope read --scope write- Prompt user to open the printed authorization URL.
- Ask user to paste the full callback URL after consent.
- Complete login with
uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>'
- Bind endpoint to the credential:
uxc auth binding add --id notion-mcp --host mcp.notion.com --path-prefix /mcp --scheme https --credential notion-mcp --priority 100
- Use fixed link command by default:
command -v notion-mcp-cli- If missing, create it:
uxc link notion-mcp-cli mcp.notion.com/mcp notion-mcp-cli -h- If command conflict is detected and cannot be safely reused, stop and ask skill maintainers to pick a different fixed command name.
- Discover tools and inspect schema before execution:
notion-mcp-cli -hnotion-mcp-cli notion-fetch -h- requires
notion-fetch(URL or UUID). Examples:idnotion-mcp-cli notion-fetch id="https://notion.so/your-page-url"notion-mcp-cli notion-fetch id="12345678-90ab-cdef-1234-567890abcdef"
- Common operations include ,
notion-search, andnotion-fetch.notion-update-page
- Prefer read path first:
- Search/fetch current state before any write.
- Execute writes only after explicit user confirmation:
- For operations that may delete content, always confirm intent first.
notion-update-page
- For
此技能中的端点参数格式:
- 优先使用简写形式(省略协议)。
mcp.notion.com/mcp - 完整URL 同样有效。
https://mcp.notion.com/mcp
- 确保端点映射已存在:
uxc auth binding match mcp.notion.com/mcp
- 如果映射/认证未就绪,启动OAuth登录:
uxc auth oauth start notion-mcp --endpoint mcp.notion.com/mcp --redirect-uri http://127.0.0.1:8788/callback --scope read --scope write- 提示用户打开输出的授权URL。
- 请用户在同意授权后粘贴完整的回调URL。
- 执行命令完成登录:
uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>'
- 将端点与凭据绑定:
uxc auth binding add --id notion-mcp --host mcp.notion.com --path-prefix /mcp --scheme https --credential notion-mcp --priority 100
- 默认使用固定链接命令:
command -v notion-mcp-cli- 如果命令不存在,创建链接:
uxc link notion-mcp-cli mcp.notion.com/mcp notion-mcp-cli -h- 如果检测到命令冲突且无法安全复用,请停止操作并请求技能维护者选择其他固定命令名称。
- 执行操作前先发现工具并检查架构:
notion-mcp-cli -hnotion-mcp-cli notion-fetch -h- 需要
notion-fetch(URL或UUID)。示例:idnotion-mcp-cli notion-fetch id="https://notion.so/your-page-url"notion-mcp-cli notion-fetch id="12345678-90ab-cdef-1234-567890abcdef"
- 常见操作包括、
notion-search和notion-fetch。notion-update-page
- 优先执行读取操作:
- 在执行任何写入操作前,先搜索/获取当前状态。
- 仅在用户明确确认后执行写入操作:
- 对于可能删除内容的操作,务必先确认用户意图。
notion-update-page
- 对于可能删除内容的
OAuth Interaction Template
OAuth交互模板
Use this exact operator-facing flow:
- Start login command and wait for authorization URL output.
- Tell user:
- Open this URL in browser and approve Notion access.
- Copy the full callback URL from browser address bar.
- Paste the callback URL back in chat.
- Run .
uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>' - Optionally confirm success with:
uxc auth oauth info <credential_id>
Do not ask user to manually extract or copy bearer tokens. Token exchange is handled by .
Use only for a single-process interactive fallback.
uxcuxc auth oauth login ... --flow authorization_code使用以下面向操作员的标准流程:
- 启动登录命令并等待授权URL输出。
- 告知用户:
- 在浏览器中打开此URL并批准Notion访问权限。
- 从浏览器地址栏复制完整的回调URL。
- 将回调URL粘贴回聊天窗口。
- 执行命令:。
uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>' - 可选择通过以下命令确认登录成功:
uxc auth oauth info <credential_id>
不要要求用户手动提取或复制Bearer令牌,令牌交换由处理。
仅在单进程交互式回退场景下使用。
uxcuxc auth oauth login ... --flow authorization_codeGuardrails
防护规则
- Keep automation on JSON output envelope; do not use .
--text - Parse stable fields first: ,
ok,kind,protocol,data.error - Use as the default command path for all Notion MCP calls in this skill.
notion-mcp-cli - is equivalent to
notion-mcp-cli <operation> ....uxc mcp.notion.com/mcp <operation> ... - Use direct only as a temporary fallback when link setup is unavailable.
uxc mcp.notion.com/mcp ... - Call before
notion-fetchornotion-create-pageswhen targeting database-backed content to obtain exact schema/property names.notion-update-page - Treat operations as high impact by default:
- Require explicit user confirmation before create/update/move/delete-style actions.
- If OAuth/auth fails, use skill OAuth/error playbooks first, then apply Notion-specific checks in this skill's references.
uxc
- 自动化操作仅使用JSON输出信封,不要使用参数。
--text - 优先解析稳定字段:、
ok、kind、protocol、data。error - 在本技能中,所有Notion MCP调用默认使用作为命令路径。
notion-mcp-cli - 等价于
notion-mcp-cli <operation> ...。uxc mcp.notion.com/mcp <operation> ... - 仅当链接设置不可用时,才临时使用直接命令作为回退方案。
uxc mcp.notion.com/mcp ... - 当操作数据库关联内容时,在执行或
notion-create-pages前调用notion-update-page以获取精确的架构/属性名称。notion-fetch - 默认将操作视为高影响级别:
- 在执行创建/更新/移动/删除类操作前,需要用户明确确认。
- 如果OAuth/认证失败,优先使用技能的OAuth/错误处理手册,然后参考本技能中的Notion专属检查项。
uxc
References
参考资料
- Notion-specific auth notes (thin wrapper over skill OAuth guidance):
uxcreferences/oauth-and-binding.md
- Invocation patterns by task:
references/usage-patterns.md
- Notion-specific failure notes (thin wrapper over skill error guidance):
uxcreferences/error-handling.md
- Notion专属认证说明(基于技能OAuth指引的轻量封装):
uxcreferences/oauth-and-binding.md
- 按任务分类的调用模式:
references/usage-patterns.md
- Notion专属故障排查说明(基于技能错误处理指引的轻量封装):
uxcreferences/error-handling.md