Files
obsidian-mcp/obsidian-mcp.csproj
T
zhengchen.tao 515763bc72
Build Docker Image / build (push) Failing after 1m22s
Initial public release
MCP (Model Context Protocol) server for reading and writing an Obsidian
vault, gated by OAuth-issued JWT bearer tokens. See README.md for setup.
2026-05-17 23:55:00 +08:00

36 lines
1.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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 SDKStreamable 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>