skills/managedcode/dotnet-skills/mcp/Gen Agent Trust Hub

mcp

Pass

Audited by Gen Agent Trust Hub on Sep 20, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill provides comprehensive security guidance for .NET MCP implementations.
  • Transport Hygiene: It correctly instructs developers to route logs and diagnostics to stderr for stdio-based servers, preventing corruption of the JSON-RPC protocol stream on stdout.
  • Input Validation: It provides explicit code patterns for path normalization and root-check validation (Path.GetFullPath, fullPath.StartsWith) to prevent directory traversal attacks in tool and resource handlers.
  • Authorization: It leverages standard ASP.NET Core authentication middleware for HTTP-based servers and demonstrates per-operation authorization using ClaimsPrincipal for sensitive operations.
  • Safe External Resources: Code examples for client initialization use the official @modelcontextprotocol/server-everything package from the npm registry, which is an established industry standard for MCP testing and interoperability.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 20, 2026, 08:58 AM