apple-notes
Free通过 memo CLI 管理 Apple Notes:创建、搜索、编辑。
The English summary is being prepared. Showing the original description.
使用 FastMCP 在 Python 中构建、测试、检查和部署 MCP 服务器。当创建新的 MCP 服务器、将 API 或数据库包装为 MCP 工具、暴露资源或提示,或为 Claude Code、Cursor 或 HTTP 部署准备 FastMCP 服务器时使用。
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
本技能从 Octop 移植。使用以下 harness/deepagents 工具:
| 概念 | 工具 |
|---|---|
| Shell | execute |
| 读/写/编辑文件 | read_file, write_file, edit_file |
| 查找文件/搜索内容 | glob, grep |
| 获取 URL | web_fetch |
| 浏览器自动化 | browser_use |
| 子代理工作 | task |
| 记忆 | memory_store, memory_recall, memory_search |
内置技能文件位于 /_builtin_skills/<name>/。用户安装的技能位于 /skills/<name>/。
使用 FastMCP 在 Python 中构建 MCP 服务器,在本地验证它们,将它们安装到 MCP 客户端,并作为 HTTP 端点部署。
当任务需要以下内容时使用此技能:
当服务器已存在且只需要 CLI 访问时,使用 mcporter 技能。对于 octop-harness 运行时集成,将服务器添加到你的代理配置中的 mcp_server_configs。
首先在工作环境中安装 FastMCP:
pip install fastmcp
fastmcp version
对于 API 模板,如果 httpx 尚未存在,请安装:
pip install httpx
templates/api_wrapper.py - 支持认证头的 REST API 包装器templates/database_server.py - 只读 SQLite 查询服务器templates/file_processor.py - 文本文件检查和搜索服务器scripts/scaffold_fastmcp.py - 复制入门模板并替换服务器名称占位符references/fastmcp-cli.md - FastMCP CLI 工作流、安装目标和部署检查首先选择最窄的有用表面区域:
优先选择具有良好名称、文档字符串和模式的精简服务器,而不是具有模糊工具的庞大服务器。
直接复制模板或使用搭建助手:
python _builtin_skills/fastmcp/scripts/scaffold_fastmcp.py \
--template api_wrapper \
--name "Acme API" \
--output ./acme_server.py
可用模板:
python /_builtin_skills/fastmcp/scripts/scaffold_fastmcp.py --list
如果手动复制,请将 __SERVER_NAME__ 替换为真实的服务器名称。
在添加资源或提示之前,从 @mcp.tool 函数开始。
工具设计规则:
好的工具示例:
get_customersearch_ticketsdescribe_tablesummarize_text_file糟糕的工具示例:
runprocessdo_thing当客户端从获取稳定的只读内容(如模式、策略文档或生成的报告)中受益时,添加 @mcp.resource。
当服务器应为已知工作流提供可重用的提示模板时,添加 @mcp.prompt。
不要将每个文档都变为提示。优先选择:
使用 FastMCP CLI 进行本地验证:
fastmcp inspect acme_server.py:mcp
fastmcp list acme_server.py --json
fastmcp call acme_server.py search_resources query=router limit=5 --json
为了快速迭代调试,在本地运行服务器:
fastmcp run acme_server.py:mcp
要在本地测试 HTTP 传输:
fastmcp run acme_server.py:mcp --transport http --host 127.0.0.1 --port 8000
fastmcp list http://127.0.0.1:8000/mcp --json
fastmcp call http://127.0.0.1:8000/mcp search_resources query=router --json
在声称服务器工作之前,始终对每个新工具运行至少一个真实的 fastmcp call。
FastMCP 可以向支持的 MCP 客户端注册服务器:
fastmcp install claude-code acme_server.py
fastmcp install claude-desktop acme_server.py
fastmcp install cursor acme_server.py -e .
使用 fastmcp discover 检查计算机上已配置的命名 MCP 服务器。
当目标是 octop-harness 集成时,将服务器添加到你的部署配置中的 mcp_server_configs,或在接口稳定之前继续使用 FastMCP CLI 命令进行开发。
对于托管托管,Prefect Horizon 是 FastMCP 最直接记录的路径。在部署之前:
fastmcp inspect acme_server.py:mcp
确保仓库包含:
requirements.txt 或 pyproject.toml对于通用 HTTP 托管,首先在本地验证 HTTP 传输,然后部署在任何可以暴露服务器端口的与 Python 兼容的平台上。
当将 REST 或 HTTP API 暴露为 MCP 工具时使用。
推荐的第一切片:
实现注意事项:
从 templates/api_wrapper.py 开始。
当暴露安全的查询和检查能力时使用。
推荐的第一切片:
list_tablesdescribe_table实现注意事项:
SELECT SQL从 templates/database_server.py 开始。
当服务器需要根据 demand 检查或转换文件时使用。
推荐的第一切片:
实现注意事项:
从 templates/file_processor.py 开始。
在交付 FastMCP 服务器之前,验证以下所有内容:
fastmcp inspect <file.py:mcp> 成功fastmcp list <server spec> --json 成功fastmcp call在工作环境中安装包:
pip install fastmcp
fastmcp version
fastmcp inspect 失败检查:
<file.py:object> 中正确命名运行:
fastmcp list server.py --json
fastmcp call server.py your_tool_name --json
这通常暴露命名不匹配、缺少必需参数或不可序列化的返回值。
服务器构建部分可能是正确的,而代理 MCP 配置不是。将服务器添加到 mcp_server_configs 并重新启动代理进程。
有关 CLI 详细信息、安装目标和部署检查,请阅读 references/fastmcp-cli.md。
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
通过 memo CLI 管理 Apple Notes:创建、搜索、编辑。
The English summary is being prepared. Showing the original description.
Manage Apple Notes via memo CLI: create, search, edit.
The English summary is being prepared. Showing the original description.
通过 remindctl 在 macOS 上管理 Apple Reminders——列出、添加、编辑、完成、 删除同步到 iPhone/iPad 的待办事项。在提及"提醒"、"Reminders app"、 需要手机同步的"提醒我"或添加带截止日期的个人待办事项时触发。macOS only。 当用户需要代理内部提醒(使用 memory_store 或外部 调度)或日历事件时跳过。
The English summary is being prepared. Showing the original description.
Manage Apple Reminders on macOS via remindctl — list, add, edit, complete, delete to-dos that sync to iPhone/iPad. Trigger on "reminder", "Reminders app", "提醒我" with phone sync, or adding personal todos with due dates. macOS only. Skip when the user wants agent-internal alerts (use memory_store or external scheduling) or calendar events.
The English summary is being prepared. Showing the original description.
暗色主题的 SVG 架构/云/基础设施图表,输出为 HTML。
The English summary is being prepared. Showing the original description.
Dark-themed SVG architecture/cloud/infra diagrams as HTML.
The English summary is being prepared. Showing the original description.