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.
curl -O https://raw.githubusercontent.com/treuille/dauphin-notion-mcp/main/.claude/commands/sync-upstream.mdgit clone --depth 1 https://github.com/treuille/dauphin-notion-mcpWrote 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.
[](https://agentmods.dev/commands/treuille/dauphin-notion-mcp/sync-upstream)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.py→src/notion_mcp.py../dauphin/tests/test_notion_mcp.py→tests/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
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.
- 9d ago First seen · 93 lines · 0 tokens per session scan A 85f313ae3dce
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.
Other commands, from other repositories
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
handoff
Export a Waybill Bundle by default, or import one when requested.