mcp-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesemcp-skill
mcp-skill
Use this skill when you need to work with the CLI or use a generated MCP-backed app from Python.
mcp-skill当你需要使用 CLI,或者从Python中调用由MCP支持的生成应用时,可使用此技能。
mcp-skillWhat It Does
功能介绍
This skill helps with:
- Creating a new generated app wrapper from an MCP server
- Listing generated apps available locally
- Listing functions for a specific generated app
- Inspecting a function before calling it
- Using the generated app from async Python
此技能可帮助你完成以下操作:
- 从MCP服务器创建新的生成应用包装器
- 列出本地可用的生成应用
- 列出特定生成应用的函数
- 在调用函数前检查其信息
- 从异步Python中使用生成的应用
Dependencies
依赖项
CLI usage depends on:
uvmcp-skill
Python usage depends on:
mcp-skill
CLI使用依赖:
uvmcp-skill
Python使用依赖:
mcp-skill
Core Commands
核心命令
bash
undefinedbash
undefinedCreate a new generated app wrapper
创建新的生成应用包装器
uvx mcp-skill create --url https://example.com/mcp --name example --non-interactive
uvx mcp-skill create --url https://example.com/mcp --name example --non-interactive
List generated apps
列出生成应用
uvx mcp-skill list-apps
uvx mcp-skill list-apps
List functions for one app
列出某一应用的函数
uvx mcp-skill list-functions notion
uvx mcp-skill list-functions notion
Inspect one function
检查单个函数
uvx mcp-skill inspect notion notion_search
undefineduvx mcp-skill inspect notion notion_search
undefinedExample
示例
Find a generated app, inspect the function you need, then call it from async Python:
python
import asyncio
from sentry.app import SentryApp
async def main():
sentry = SentryApp()
user = await sentry.whoami()
print(user)
asyncio.run(main())找到生成应用,检查你需要的函数,然后从异步Python中调用它:
python
import asyncio
from sentry.app import SentryApp
async def main():
sentry = SentryApp()
user = await sentry.whoami()
print(user)
asyncio.run(main())Async Usage Notes
异步使用注意事项
- Generated app methods are and should be called with
async.await - Use them inside , then run that function with
async defin a normal script.asyncio.run(...) - If you skip , you will get a coroutine object instead of the real result.
await - Be careful in environments that already manage an event loop.
- 生成的应用方法为,需使用
async调用。await - 在函数内使用这些方法,然后在普通脚本中通过
async def运行该函数。asyncio.run(...) - 如果省略,你将得到一个协程对象而非实际结果。
await - 在已管理事件循环的环境中需谨慎操作。
Recommended Workflow
推荐工作流程
- Run to find the generated app name.
uvx mcp-skill list-apps - Run to see available functions.
uvx mcp-skill list-functions <app> - Run to confirm the exact signature and docstring.
uvx mcp-skill inspect <app> <function> - Import the app class from and call the async method you found.
<app>.app
- 运行查找生成应用的名称。
uvx mcp-skill list-apps - 运行查看可用函数。
uvx mcp-skill list-functions <app> - 运行确认确切的签名和文档字符串。
uvx mcp-skill inspect <app> <function> - 从导入应用类,然后调用你找到的异步方法。
<app>.app