Overview of MCP-Nest example projects
mainThe examples/ directory contains greenfield projects that demonstrate specific features of @rekog/mcp-nest. Each project corresponds to a specific documentation topic:
- Core MCP Features:
tools: Tools, progress, output schema, elicitation, guards, and filters.resources: Static resources.resource-templates: Parameterized URI templates.prompts: Prompt templates, roles, and content types.
- NestJS Integration:
dependency-injection: Dependency Injection (DI) and request scoping.custom-controllers: HTTP vs RPC pipelines, middleware, interceptors, exception filters, andMcpExceptionFilter.tool-discovery: Decorator discovery and feature modules.multiple-servers: Running multiple named servers on different paths (e.g.,/weather/mcpand/travel/mcp).
- Advanced Server Logic:
dynamic-capabilities: Runtime registration and deregistration of capabilities.server-mutation: Instrumentation and tracing viaserverMutatorhooks.
- Authorization & Security:
per-tool-authorization: Using@PublicTool,@ToolScopes, and@ToolRoles.per-tool-authorization-jwt: Local JWT authentication.per-tool-authorization-oauth: OAuth per-tool authentication.built-in-authorization-server: UsingMcpAuthModuleas an OAuth server.external-authorization-server-casdoor: Using Casdoor as an external Authorization Server.azure-ad-provider/azure-ad-oauth-provider: Azure AD integration.