dauphin-notion-mcp: Command for Claude Code

.claude/commands/sync-upstream.md

sync-upstream is a command for Claude Code from treuille/dauphin-notion-mcp. It costs 0 tokens per session (1,003 once invoked), scanned A, original, Apache-2.0.

A command that synchronizes the Notion MCP server source and tests from an upstream repository, then restores this project's token-file setup. MCP is a standard way for an AI agent to connect to external tools.

In plain words
What is it for?
Use it when updating the standalone Notion server from the related dauphin monorepo, a repository containing multiple projects, without losing its required --token-file argument.
Why use it?
It reduces the manual work and mistakes involved in copying upstream changes while preserving this project's different secret-handling method.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is treuille/dauphin-notion-mcp's own configuration. It tells Claude Code how to work on dauphin-notion-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dauphin-notion-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to treuille/dauphin-notion-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/treuille/dauphin-notion-mcp/main/.claude/commands/sync-upstream.md
Clone the repo
git clone --depth 1 https://github.com/treuille/dauphin-notion-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-upstream

README.md
[![agentmods](https://agentmods.dev/badge/commands/treuille/dauphin-notion-mcp/sync-upstream/github.svg)](https://agentmods.dev/commands/treuille/dauphin-notion-mcp/sync-upstream)
Your own site
<a href="https://agentmods.dev/commands/treuille/dauphin-notion-mcp/sync-upstream"><img src="https://agentmods.dev/badge/commands/treuille/dauphin-notion-mcp/sync-upstream/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-upstream

Your own site · 80×15
<a href="https://agentmods.dev/commands/treuille/dauphin-notion-mcp/sync-upstream"><img src="https://agentmods.dev/badge/commands/treuille/dauphin-notion-mcp/sync-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,003 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01003
Opus 5 $0.00000 $0.00502
Sonnet 5 $0.00000 $0.00201
Haiku 4.5 $0.00000 $0.00100

Measured 9d ago against content hash 85f313ae3dce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sync-upstream scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/sync-upstream.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync notion_mcp.py from the upstream repo at ../dauphin into this project.

Background

This repo is a standalone Notion MCP server extracted from the ../dauphin monorepo. The only functional difference is secrets management: upstream discovers a secrets/notion_token file by walking directories, while this project takes --token-file <path> as a required CLI argument. Everything else should match upstream.

Steps

1. Copy source and test files

Copy both files from upstream, overwriting the local versions:

  • ../dauphin/src/notion_mcp.pysrc/notion_mcp.py
  • ../dauphin/tests/test_notion_mcp.pytests/test_notion_mcp.py

2. Restore --token-file secrets management

After copying, the file will have upstream's secrets-dir approach. Replace it with this project's --token-file approach. There are four specific changes:

a) Module docstring — Change:

Credentials: Reads token from secrets/notion_token file.

to:

Token: Passed via --token-file <path> CLI argument at startup.

b) Replace _SERVER_VERSION block — The upstream version uses subprocess + git rev-parse to get a git hash. Replace the entire _SERVER_VERSION block (and remove the import subprocess line) with:

# Server version from package metadata (set in pyproject.toml)
try:
    from importlib.metadata import version as _pkg_version
    _SERVER_VERSION = f"v{_pkg_version('dauphin-notion-mcp')}"
except Exception:
    _SERVER_VERSION = "unknown"

c) Remove _find_secrets_dir() and _load_notion_token() — Delete both functions entirely (they're between the _notion_token global and _get_token()).

d) Replace _get_token() — Replace the upstream version (which calls _load_notion_token()) with:

def _get_token() -> str:
    """Get the Notion token (set via --token-file CLI arg)."""
    if _notion_token is None:
        raise RuntimeError(
            "No Notion token. Pass --token-file <path> on the command line."
        )
    return _notion_token

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 93 lines · 0 tokens per session scan A 85f313ae3dce

Subscribe to this mod's changes

sync-upstream is a command published in the GitHub repository treuille/dauphin-notion-mcp (1 stars, last pushed 5mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,003 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.