Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions glama.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "https://glama.ai/mcp/schemas/server.json",
"maintainers": [
"gyaneshgouraw-okta",
"kushalshit27"
]
}
"maintainers": ["gyaneshgouraw-okta", "kushalshit27"]
}
13 changes: 13 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down