MCP (Model Context Protocol) server for reading and writing an Obsidian vault, gated by OAuth-issued JWT bearer tokens. See README.md for setup.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace ObsidianMcp.Config;
|
||||
|
||||
/// <summary>
|
||||
/// Vault 根目录与路径安全配置。
|
||||
/// 环境变量前缀 Vault__,例如 Vault__Root=/vault
|
||||
/// </summary>
|
||||
public class VaultOptions
|
||||
{
|
||||
public const string Section = "Vault";
|
||||
|
||||
/// <summary>Vault 根目录的绝对路径,容器内默认 /vault</summary>
|
||||
public string Root { get; set; } = "/vault";
|
||||
|
||||
/// <summary>额外黑名单路径段(与 hardcode 合并),env: Vault__Blacklist__0, __1...</summary>
|
||||
public string[] Blacklist { get; set; } = [];
|
||||
|
||||
/// <summary>额外写入白名单前缀(与 hardcode 合并),env: Vault__WriteWhitelist__0...</summary>
|
||||
public string[] WriteWhitelist { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user