Skip to content

fix: type check and lint #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
@@ -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
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
@@ -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,