mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-02-05 11:38:05 +00:00
✨ 参考VSCode的mcp服务器configuration-format新增对sse服务器自定义header的支持 #22
This commit is contained in:
parent
4bfcaf3a61
commit
2d61bd31ae
4 changed files with 15 additions and 8 deletions
|
|
@ -20,6 +20,7 @@ class MCPServerConfig(BaseModel):
|
|||
args: list[str] | None = Field([], description="stdio模式下MCP命令参数")
|
||||
env: dict[str, str] | None = Field({}, description="stdio模式下MCP命令环境变量")
|
||||
url: str | None = Field(None, description="sse模式下MCP服务器地址")
|
||||
headers: dict[str, str] | None = Field({}, description="sse模式下http请求头,用于认证或其他设置")
|
||||
|
||||
# 额外字段
|
||||
friendly_name: str | None = Field(None, description="MCP服务器友好名称")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue