diff --git a/README.md b/README.md index 7ff5e6e..9163216 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,7 @@ [MCP (Model Context Protocol)](https://modelcontextprotocol.io/introduction) is an open protocol introduced by Anthropic that standardizes how large language models communicate with external tools, resources or remote services. -> [!CAUTION] -> **Beta Software Notice: This software is currently in beta and is provided AS IS without any warranties.** +> [!CAUTION] > **Beta Software Notice: This software is currently in beta and is provided AS IS without any warranties.** > > - Features, APIs, and functionality may change at any time without notice > - Not recommended for production use or critical workloads diff --git a/glama.json b/glama.json index d735fe5..41a7be9 100644 --- a/glama.json +++ b/glama.json @@ -1,7 +1,4 @@ { "$schema": "https://glama.ai/mcp/schemas/server.json", - "maintainers": [ - "gyaneshgouraw-okta", - "kushalshit27" - ] -} \ No newline at end of file + "maintainers": ["gyaneshgouraw-okta", "kushalshit27"] +} diff --git a/src/server.ts b/src/server.ts index e5fbde1..15f66c6 100644 --- a/src/server.ts +++ b/src/server.ts @@ -59,6 +59,11 @@ export async function startServer(options?: ServerOptions) { throw new Error('Invalid Auth0 configuration'); } + if (!config) { + log('Configuration is null after validation'); + throw new Error('Configuration is null'); + } + log(`Successfully loaded configuration for tenant: ${maskTenantName(config.tenantName)}`); // Get available tools based on options if provided @@ -102,9 +107,17 @@ export async function startServer(options?: ServerOptions) { ); } + if (!config) { + throw new Error('Configuration is null after reload'); + } + log('Successfully reloaded configuration'); } + if (!config) { + throw new Error('Configuration is null'); + } + // Add auth token to request const requestWithToken = { token: config.token,