Back to Home
habibhassansehani icon

openai-sdk-knowledge-org

by habibhassansehani

Overview

The server provides an AI-powered knowledge base for OpenAI API usage and SDKs, integrating Retrieval-Augmented Generation (RAG) and Model Context Protocol (MCP) capabilities.

Installation

Run Command
npm run dev

Environment Variables

  • OPENAI_API_KEY
  • GITHUB_TOKEN
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • GOOGLE_REDIRECT_URI
  • GOOGLE_JWT_SECRET
  • ADMIN_EMAILS
  • CLOUDFLARE_ACCOUNT_ID
  • CLOUDFLARE_AI_GATEWAY_ID
  • CLOUDFLARE_ADMIN_DASHBOARD_URL
  • LOG_LEVEL
  • DISABLE_ADMIN_AUTH_FOR_LOCAL_DEV
  • ENABLE_WEB_SEARCH_FALLBACK
  • ENVIRONMENT

Security Notes

The application uses environment variables for sensitive credentials like OPENAI_API_KEY, GITHUB_TOKEN, and Google OAuth secrets, which is good practice. However, a hardcoded `DEFAULT_JWT_SECRET` is present in `src/server/middleware/auth.ts` as a fallback. If the `GOOGLE_JWT_SECRET` environment variable is not explicitly overridden, this weak default will be used, posing a significant security risk for authentication tokens. Local development explicitly allows disabling admin authentication, which is acceptable for development but must be secured in production. No 'eval' or direct malicious patterns were observed.

Similar Servers

Stats

Interest Score33
Security Score6
Cost ClassMedium
Avg Tokens3000
Stars3
Forks2
Last Update2026-01-19

Tags

AIRAGCloudflareOpenAI AgentsKnowledge Base