mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-24 01:46:50 +00:00
dotnet-mcp-builder: pin sample dependency versions (#2699)
The MCP Apps sample HTML bundle imported ext-apps from esm.sh using an unpinned major-version tag (@1), which Snyk flags as an unverifiable external dependency / third-party content exposure risk (indirect prompt-injection surface, since the imported module can call app.updateModelContext and app.callServerTool). Pin it to the current release (1.7.5). Also pin the sample `dotnet add package` commands for the ModelContextProtocol* and Microsoft.Extensions.Hosting packages to their current exact versions (2.2.0 / 10.0.11), and correct a stale "2.0.0 is current" note in packages.md.
This commit is contained in:
committed by
GitHub
parent
927c1b5b38
commit
89e85e6060
@@ -7,9 +7,9 @@ For just *running* a server, ignore this file.
|
||||
## Packages
|
||||
|
||||
```bash
|
||||
dotnet add package ModelContextProtocol.Core # minimal: just client + transports
|
||||
dotnet add package ModelContextProtocol.Core --version 2.2.0 # minimal: just client + transports
|
||||
# or
|
||||
dotnet add package ModelContextProtocol # adds DI/hosting helpers
|
||||
dotnet add package ModelContextProtocol --version 2.2.0 # adds DI/hosting helpers
|
||||
```
|
||||
|
||||
## Connecting via STDIO (launching a server process)
|
||||
|
||||
Reference in New Issue
Block a user