DepTime
io.github.cschmertz由 GitHub 账号 cschmertz 发布v0.1.8更新于 Nov 7, 2026
What changed in a Python library, in which release, and what replaces it. Answered locally.
概览
本地 MCP 服务器,让编程助手查清某个 Python 库改了什么、在哪个版本改的、该用什么替代。
- 可以做什么
- 解析报错堆栈:定位包、符号和引入破坏性变更的版本,并给出替代方案与回退版本
- 查询某个符号在各版本间的历史,避免凭记忆使用 API
- 按指定版本预检符号与关键字参数是否可用
- 对比两个版本,或对比某个日期以来的全部变更,可限定为实际用到的符号
- 列出已建立索引的包,每个答案都附带证据与置信度
- 适用场景
- 当助手在快速迭代的 Python 库上遇到 ImportError、AttributeError 或意外的关键字参数时,或在规划升级、想知道模型训练截止之后有哪些变化时使用。
- 运行要求
- 通过 uvx 以 stdio 在本地运行(需要 uv)。首次启动会从 GitHub Releases 下载预建索引,之后每天最多检查一次更新;设置 DEPTIME_OFFLINE=1 可完全断网。DEPTIME_HOME 指定索引存放位置(默认 ~/.cache/deptime)。无需账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 DepTime,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[DepTime]
An API time machine for Python libraries, built for coding agents.
When an agent hits ImportError, AttributeError or "unexpected keyword argument" in a fast-moving library, one call to DepTime says what changed, in which release, and what to use instead. Answers are computed from static diffs of every indexed release, not from docs or model memory.
Free, open source (MIT), and local: your code and errors never leave your machine.
Every night, GitHub Actions reads each new release's public API with griffe, which parses the source without running it, diffs it against the previous release, and publishes the result as one file, index.sqlite.xz, on this repo's Releases. On your machine, deptime mcp checks that file's sha256 and schema before swapping it in, then answers every question locally in milliseconds. The full design is in docs/04-architecture.md, and the decisions are in docs/adr/.
That's the real explain_error answer from the published index, trimmed. The full answer also quotes the deprecation message DepTime found in httpx's own source, and adds a one-sentence explanation for your agent to pass on.
Status: alpha. The prebuilt index is rebuilt twice a day. Known gaps are tracked in BACKLOG.md.
How well it works
Each check's right answers were written down before DepTime first ran on it (bench/). Judge DepTime by the first run: the fixes since then were designed from its misses, so the later numbers are flattering.
Across all 237 real tracebacks in the benchmark, including the ones fixes were designed from, DepTime names the right package, name and release for 97.9%, and a right replacement is among its first three for 66.7%. CI re-scores them and both holdouts on every code change and every published index, and fails on a drop of more than 2 points (or a false-positive rate up by more than 1).
Install
Requires uv.
On first launch DepTime downloads its prebuilt index (one file from this repo's GitHub Releases) in the background, then checks for a newer one at most once a day. Set DEPTIME_OFFLINE=1 to never touch the network. Each index carries a signed record of the CI run that built it; deptime index pull --verify checks it (SECURITY.md).
Claude Code users can also install the plugin in integrations/claude-code with /plugin marketplace add cschmertz/deptime, then /plugin install deptime@deptime. It adds a skill and a local hook that suggests DepTime when a Python version-change error appears in a command's output.
First launch timing out? uvx installs DepTime the first time a client starts it. On macOS with an x86_64 uv (an Intel Mac, or Intel Homebrew on Apple silicon), one dependency, cryptography, has no prebuilt wheel and is compiled, which can take longer than a client waits for a server to start. Run uvx deptime --help once beforehand.
Client compatibility
Checked 2026-11-05 with deptime 0.1.4 (details):
Tools
Every answer carries evidence and a confidence level. If a package isn't covered, DepTime says so instead of guessing. The contracts are in docs/03-product-spec.md.
CLI
Hosting (optional)
Local mode covers coding agents. For web clients that only accept a URL, run deptime serve (MCP at /mcp, JSON at /v1/*) on any container host. The repo includes a Dockerfile and fly.toml, and the server applies anonymous rate limits. See docs/05-self-hosting.md.
Prior art and credits
- griffe does the static analysis.
- since-cutoff diffs your pinned dependencies against a model's training cutoff, locally and on demand. DepTime differs by shipping a prebuilt cross-version index and starting from a traceback.
- Context7 and Ref serve version-specific docs. DepTime answers symbol-level "when and what replaced it" questions.
Contributing
The most useful contributions are wrong-answer reports, which become benchmark cases. See CONTRIBUTING.md. Development setup:
Docs
Product spec · Architecture · Self-hosting · Risks & spikes · Privacy & security · Changelog
License
来源:README.md,提交 03b52ce
工具
0版本历史
5- v0.1.8最新Nov 7, 2026
- v0.1.6Nov 6, 2026
- v0.1.5Nov 6, 2026
- v0.1.4Nov 3, 2026
- v0.1.3Oct 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分