Back to Home
devtobecurious icon

workshop-mcp

Verified Safe

by devtobecurious

Overview

Demonstrates an OAuth 2.0 protected Model Context Protocol (MCP) server providing external tool access.

Installation

Run Command
cd samples/ProtectedMcpServer && dotnet run

Environment Variables

  • ASPNETCORE_ENVIRONMENT
  • OTEL_SERVICE_NAME

Security Notes

The server uses standard OAuth 2.0 with JWT bearer token authentication. The `ProtectedMcpClient` README notes the use of 'demo-client' and 'demo-secret' which are hardcoded for demonstration and must be changed for production. `AllowedHosts: "*"` is configured in `appsettings.json`, which is too permissive for production environments. No apparent direct code injection or 'eval' usage in provided snippets.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Stars0
Forks0
Last Update2025-12-01

Tags

MCPOAuthAuthentication.NETAPISampleTools