package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Oct 13, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultPort = 5108
MinPort = 1024
MaxPort = 32767
)
type Local struct {
Enabled bool `json:"enabled"`
Port int `json:"port"`
AllowedTools []string `json:"allowed_tools"`
}
type State struct {
Local Local `json:"local"`
LocalToken string `json:"local_token"`
}
Store 将 MCP 配置与凭据作为一个加密快照提交,避免跨文件更新留下半份授权。
与 LLM 配置共用应用固定密钥;调用方负责串行化 Load/Save。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.