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,35 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>ObsidianMcp</RootNamespace>
|
||||
<AssemblyName>obsidian-mcp</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- 排除 Tests 子目录,避免 SDK.Web 的通配符 glob 把测试文件包进主项目 -->
|
||||
<ItemGroup>
|
||||
<Compile Remove="obsidian-mcp.Tests/**" />
|
||||
<Content Remove="obsidian-mcp.Tests/**" />
|
||||
<EmbeddedResource Remove="obsidian-mcp.Tests/**" />
|
||||
<None Remove="obsidian-mcp.Tests/**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- MCP SDK(Streamable HTTP transport) -->
|
||||
<PackageReference Include="ModelContextProtocol" Version="1.0.0" />
|
||||
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="1.0.0" />
|
||||
<!-- JWT 验签。不显式 pin Microsoft.IdentityModel.Tokens:
|
||||
JwtBearer 10.0.7 传递依赖 Microsoft.IdentityModel.JsonWebTokens 9.x,
|
||||
JsonWebTokens 9.x 调 Base64UrlEncoder.Decode(ReadOnlySpan, Span),
|
||||
该 overload 在 Microsoft.IdentityModel.Tokens 9.x 才加入,显式 pin 8.9.0
|
||||
会强制 NuGet downgrade Tokens 到 8.9 → runtime MissingMethodException。
|
||||
让 JwtBearer 拉自己的传递依赖即可,代码用的 SymmetricSecurityKey 等
|
||||
基础类型在任意版本都可用。 -->
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.7" />
|
||||
<!-- glob 匹配 -->
|
||||
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="10.0.7" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user