mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
Add .well-known/openai-apps-challenge route to MCP server (#1382)
This commit is contained in:
parent
04e5b4dccf
commit
ff40a82d69
2 changed files with 5 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ function resourceMetadata(c: Context<{ Bindings: Bindings }>) {
|
|||
app.get("/.well-known/oauth-protected-resource", resourceMetadata)
|
||||
app.get(PROTECTED_RESOURCE_METADATA_PATH, resourceMetadata)
|
||||
|
||||
app.get("/.well-known/openai-apps-challenge", (c) => {
|
||||
return c.text(c.env.OPENAI_APPS_CHALLENGE || "")
|
||||
})
|
||||
|
||||
app.get("/.well-known/oauth-authorization-server", async (c) => {
|
||||
const apiUrl = c.env.API_URL || DEFAULT_API_URL
|
||||
|
||||
|
|
|
|||
|
|
@ -14,4 +14,5 @@ export interface ServerEnv {
|
|||
ALLOWED_MCP_ORIGIN_HOSTNAMES?: string
|
||||
POSTHOG_API_KEY?: string
|
||||
POSTHOG_HOST?: string
|
||||
OPENAI_APPS_CHALLENGE?: string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue