连接能力
Shioaji-MCP 为 AI Agent 提供什么
来源目录未提供结构化功能列表,请在使用前阅读源仓库文档。
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
An end-to-end example of building Model Context Protocol (MCP) clients and communicates between several MCP servers with OpenAI compatible APIs.
You can run your MCP servers with a similar method as you run them with Claude Desktop App for just a simple command:
uv run python client/client.py- Make sure you have
uvinstalled.
uv venv
source .venv/bin/activate
uv sync- Shioaji: An example MCP server that provides basic stock trading functionalities using Shioaji API, you'll need further configuration to properly use it.
- Weather: Just a simple example from MCP official doc
Instead of following the Claude API, I replace it with OpenAI compatible APIs, supporting two main LLM providers:
- OpenAI
- Ollama
Where you can change between them by modifying the LLM_PROVIDER environment variable.
After choosing your LLM provider, you can connect servers with the MCP host by modifying the config.json file, just like the example below:
{
"mcpServers": {
"weather": {
"args": [
"--directory",
"root_path",
"run",
"server_file.py"
],
"command": "uv_exec_command"
}
}
}You can run the MCP host with the following command:
uv run python client/client.pyAfter finishing playing with the MCP host, you can just type exit to leave
The shioaji-server in
server/is certified by MCP Review. The mcp review link
社区
