本项目提供了两种配置方式,分别是从 GitHub 拉取代码的配置和本地运行的配置。以下为您详细介绍这两种配置方式。
{
"mcpServers": {
"twsemcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/narumiruna/twse-mcp",
"twsemcp"
]
}
}
}
uvx |
| 参数 | 1. --from twsemcp |{
"mcpServers": {
"twsemcp": {
"command": "uv",
"args": [
"run",
"--directory",
"/home//workspace/twse-mcp" ,
"twsemcp"
]
}
}
}
uv |
| 参数 | 1. run /home/<用户>/workspace/twse-mcp twsemcp |