mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
style: fix biome formatting in mcp index.ts
Run biome formatter to fix line length violations for ternary expression and CORS headers string. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
51ee407961
commit
3fb4c3389f
1 changed files with 3 additions and 4 deletions
|
|
@ -61,9 +61,7 @@ app.get("/.well-known/oauth-protected-resource", (c) => {
|
|||
const apiUrl = c.env.API_URL || DEFAULT_API_URL
|
||||
const host = c.req.header("x-forwarded-host") || c.req.header("host")
|
||||
const proto = c.req.header("x-forwarded-proto") || "https"
|
||||
const resourceUrl = host
|
||||
? `${proto}://${host}`
|
||||
: "https://mcp.supermemory.ai"
|
||||
const resourceUrl = host ? `${proto}://${host}` : "https://mcp.supermemory.ai"
|
||||
|
||||
return c.json({
|
||||
resource: resourceUrl,
|
||||
|
|
@ -106,7 +104,8 @@ const mcpHandler = SupermemoryMCP.serve("/mcp", {
|
|||
corsOptions: {
|
||||
origin: "*",
|
||||
methods: "GET, POST, DELETE, OPTIONS",
|
||||
headers: "Content-Type, Authorization, x-sm-project, Accept, Mcp-Session-Id, MCP-Protocol-Version, Last-Event-ID",
|
||||
headers:
|
||||
"Content-Type, Authorization, x-sm-project, Accept, Mcp-Session-Id, MCP-Protocol-Version, Last-Event-ID",
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue