Jentic SDK和MCP插件\[测试版\] 
Jentic使AI构建者能够快速发现和集成外部API和工作流,而无需编写或维护任何特定于API的代码。
此单声道存储库包含:
- Jentic SDK –一个用于搜索、加载和执行API/工作流的Python库,以及将这些操作转换为LLM工具的助手。
- Jentic MCP插件 –向任何MCP兼容客户端(Windsurf、Claude Desktop、Cursor等)公开相同功能的MCP服务器。
有关完整详细信息,请参阅专用自述文件:
python/README.md–SDK使用和API参考mcp/README.md–MCP服务器设置和配置
SDK由中的数据支持 Jentic公共API 存储库。
快速启动
1.安装Python包
pip install jentic2.获取您的代理商API密钥
访问https://app.jentic.com/sign-in创建代理并复制密钥。
export JENTIC_AGENT_API_KEY=3.使用SDK
import asyncio
from jentic import Jentic, SearchRequest, LoadRequest, ExecutionRequest
async def main():
client = Jentic()
# 1️⃣ find a capability
results = await client.search(SearchRequest(query="send a Discord DM"))
entity_id = search.results[0].id # op_... or wf_...
# 2️⃣ load details (inspect schemas / auth, see inputs for operations)
resp = await client.load(LoadRequest(ids=[entity_id]))
inputs = resp.tool_info[entity_id].inputs
print (inputs)
# 3️⃣ run it
result = await client.execute(
ExecutionRequest(id=entity_id, inputs={"recipient_id": "123", "content": "Hello!"})
)
print(result)
asyncio.run(main())4.与您的LLM代理集成(可选)
如果您需要Anthropic或OpenAI模型的完整工具定义,请使用运行时助手:
from jentic.lib.agent_runtime import AgentToolManager
manager = AgentToolManager(format="anthropic")
tools = manager.generate_tool_definitions() # pass these to the LLM
result = await manager.execute_tool("discord_send_message",
{"recipient_id": "123", "content": "Hi"})
print(result)使用MCP插件
建议使用远程MCP服务器。 请参阅此处的说明.
如果您希望使用传统的本地MCP服务器,请按照中的说明进行操作 mcp/README.md.
uvx --from \
git+https://github.com/jentic/jentic-sdks.git@main#subdirectory=mcp \
mcp然后配置您的MCP兼容客户端,使其指向正在运行的服务器(有关示例客户端配置,请参阅子README)。
