【笔记】MCP-Servers FileSystem 启动命令
运行mcp server,模式stdio,允许访问目录:C:/Users/zhang。部署mcp代理,将stdio转换为sse,适配Agent。
·
开启Stdio
运行mcp server,模式stdio,允许访问目录:C:/Users/zhang
PS C:\Users\zhang\mcp-servers\src\filesystem> npx @modelcontextprotocol/server-filesystem C:/Users/zhang
Secure MCP Filesystem Server running on stdio
Allowed directories: [ 'C:\\Users\\zhang' ]
部署mcp-proxy
部署mcp代理,将stdio转换为sse,适配Agent
监听端口 8080
PS C:\Users\zhang> mcp-proxy --sse-port 8080 --sse-host 0.0.0.0 cmd /c npx @modelcontextprotocol/server-filesystem C:\Users\zhang\
DEBUG:root:Starting stdio client and SSE server
DEBUG:asyncio:Using proactor: IocpProactor
DEBUG:mcp.server.lowlevel.server:Initializing server 'secure-filesystem-server'
DEBUG:mcp.server.sse:SseServerTransport initialized with endpoint: /messages/
INFO: Started server process [29296]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
更多推荐
所有评论(0)