Repository navigation
Add a keyless deed.page MCP publishing example (m11) - #12
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在 m11 新增一个独立练习
s05_deed_page_publish.py。它沿用s03_parallel_search.py的写法:用官方MultiServerMCPClient连接 deed.page 的 Streamable HTTP 端点https://deed.page/mcp,get_tools()发现工具后用ainvoke()调用。练习内容是把本地 HTML 文件发布成公开网址https://{slug}.deed.page/,再查询(get_site)和删除(delete_site)。这对应 Agent 常见的最后一步:把生成的报告或页面变成可以分享的链接。.env,也不改动现有的地图示例配置。requirements-parallel.txt,没有新增依赖文件。DEED_PAGE_TOKEN读取,避免留在命令历史里。README 写明了 token 丢失后无法找回,发布的内容公开可见,不要发布敏感信息。--ttl可以让练习页面自动过期。s04_sem_code.py已占用 s04,新文件编号为 s05。测试:在装有锁定依赖的虚拟环境(Python 3.13)里,按 README 的命令从仓库根目录实际跑了一遍:publish(
--ttl 600)返回 URL 和 token,页面返回 200;get 返回 exists: true;不带 token 时 delete 给出参数错误提示;带 token 时 delete 成功,页面随后返回 404。py_compile通过。ruff check只报 I001 导入格式,s03 原文件也有同样提示,所以保持与 s03 一致。I work on deed.page (Avatar 8 LLC)。这个 PR 来自 deed.page 团队。主页:https://deed.page ,文档:https://deed.page/docs ,开源 agent skill(MIT):https://github.com/f-o-x11/deed-page-skill