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.5 | $0.00000 | $0.00401 |
| Sonnet 5.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 2mo 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.
- 2mo 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 7mo 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.
sync-upstream compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-upstreamtreuille/dauphin-notion-mcp | Command | 1 | 7mo ago | Apache-2.0 | A | 0 | Claude Code |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| release-notesOpenHands/extensions | Command | 176 | yesterday | MIT | A | 44 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 24d ago | MIT | A | 8 | Claude Code |
| repo-audittractorjuice/arc-kit | Command | 2.3k | 3d ago | none | A | 29 | Claude Code |
| propsmill/infrahub-mcp | Command | 10 | yesterday | Apache-2.0 | A | 18 | Claude Code |
| codex-reviewoalders/kitchen-sink | Command | 5 | 4d ago | MIT | A | 41 | Claude Code |