diff --git a/apps/docs/quickstart.mdx b/apps/docs/quickstart.mdx index 18756f104..183c69779 100644 --- a/apps/docs/quickstart.mdx +++ b/apps/docs/quickstart.mdx @@ -24,7 +24,7 @@ description: 'Follow these steps to get your Open Agent Platform up and running Set the following environment variables: ```bash - NEXT_PUBLIC_BASE_API_URL="http://localhost:3000/api" + NEXT_PUBLIC_BASE_API_URL="http://localhost:3001/api" LANGSMITH_API_KEY="lsv2_..." # Or whichever LLM's API key you're using OPENAI_API_KEY="..." @@ -151,4 +151,4 @@ yarn install yarn dev ``` -Your Open Agent Platform should now be running at http://localhost:3000! +Your Open Agent Platform should now be running at http://localhost:3001! diff --git a/apps/docs/setup/authentication.mdx b/apps/docs/setup/authentication.mdx index fc812adb7..03124206b 100644 --- a/apps/docs/setup/authentication.mdx +++ b/apps/docs/setup/authentication.mdx @@ -31,7 +31,7 @@ If you do *not* want to use custom authentication in your LangGraph server, and Lastly, ensure you have the `NEXT_PUBLIC_BASE_API_URL` environment variable set to the base API URL of your **web** server. For local development, this should be set to: ```bash -NEXT_PUBLIC_BASE_API_URL="http://localhost:3000/api" +NEXT_PUBLIC_BASE_API_URL="http://localhost:3001/api" ``` This will cause all requests made to your web client to first pass through a proxy route, which injects the LangSmith API key into the request from the server, as to not expose the API key to the client. The request is then forwarded on to your LangGraph server. diff --git a/apps/web/.env.bak b/apps/web/.env.bak index b07c28b1f..8a7bd43fa 100644 --- a/apps/web/.env.bak +++ b/apps/web/.env.bak @@ -1,6 +1,6 @@ # The base API URL for the platform. -# Defaults to `http://localhost:3000/api` for development -NEXT_PUBLIC_BASE_API_URL="http://localhost:3000/api" +# Defaults to `http://localhost:3001/api` for development +NEXT_PUBLIC_BASE_API_URL="http://localhost:3001/api" # LangSmith API key required for some admin tasks. LANGSMITH_API_KEY="lsv2_..." diff --git a/apps/web/.env.example b/apps/web/.env.example index 1f0671be1..6b5c4f896 100644 --- a/apps/web/.env.example +++ b/apps/web/.env.example @@ -1,6 +1,6 @@ # The base API URL for the platform. -# Defaults to `http://localhost:3000/api` for development -NEXT_PUBLIC_BASE_API_URL="http://localhost:3000/api" +# Defaults to `http://localhost:3001/api` for development +NEXT_PUBLIC_BASE_API_URL="http://localhost:3001/api" # LangSmith API key required for some admin tasks. LANGSMITH_API_KEY="lsv2_..." @@ -34,4 +34,16 @@ BACKOFFICE_API_URL="http://localhost:8001/api/" OAP_BACKEND_COGNITO_APP_CLIENT_TOKEN_URL="" OAP_BACKEND_COGNITO_APP_CLIENT_TOKEN_SCOPE="" OAP_BACKEND_COGNITO_APP_CLIENT_ID="" -OAP_BACKEND_COGNITO_APP_CLIENT_SECRET="" \ No newline at end of file +OAP_BACKEND_COGNITO_APP_CLIENT_SECRET="" + +# Multi-MCP server configuration +# MongoDB connection string for MCP server registry +MONGODB_URI="" +# 64-char hex string (32 bytes) for AES-256-GCM credential encryption. +# Required in production; uses insecure fallback in development if not set. +MCP_ENCRYPTION_KEY="" +# Default MCP servers (optional — pre-populated in the server list) +MCP_TYPEBOT_URL="" +MCP_TYPEBOT_BEARER_TOKEN="" +MCP_CLOUDHUMANS_URL="" +MCP_CLOUDHUMANS_BEARER_TOKEN="" \ No newline at end of file diff --git a/apps/web/package.json b/apps/web/package.json index 2c629dac4..9ba020a3a 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "next dev", + "dev": "next dev -p 3001", "build": "turbo build:internal --filter=@open-agent-platform/web", "build:internal": "next build", "start": "next start", @@ -19,7 +19,6 @@ "@modelcontextprotocol/sdk": "^1.11.4", "@radix-ui/react-alert-dialog": "^1.1.11", "@radix-ui/react-avatar": "^1.1.4", - "@radix-ui/react-checkbox": "1.1.2", "@radix-ui/react-collapsible": "^1.1.4", "@radix-ui/react-dialog": "^1.1.7", "@radix-ui/react-dropdown-menu": "^2.1.7", @@ -51,6 +50,7 @@ "langgraph-nextjs-api-passthrough": "^0.1.0", "lodash": "^4.17.21", "lucide-react": "^0.488.0", + "mongoose": "^9.2.2", "next": "15", "next-themes": "^0.4.6", "nuqs": "^2.4.1", diff --git a/apps/web/src/app/(app)/layout.tsx b/apps/web/src/app/(app)/layout.tsx index d7d1bb30b..f796304b5 100644 --- a/apps/web/src/app/(app)/layout.tsx +++ b/apps/web/src/app/(app)/layout.tsx @@ -1,23 +1,9 @@ -import type { Metadata } from "next"; -import "../globals.css"; -import { Inter } from "next/font/google"; import React from "react"; import { NuqsAdapter } from "nuqs/adapters/next/app"; import { SidebarLayout } from "@/components/sidebar"; import { AuthProvider } from "@/providers/Auth"; import { DOCS_LINK } from "@/constants"; -const inter = Inter({ - subsets: ["latin"], - preload: true, - display: "swap", -}); - -export const metadata: Metadata = { - title: "Open Agent Platform", - description: "Open Agent Platform by LangChain", -}; - export default function RootLayout({ children, }: Readonly<{ @@ -25,36 +11,26 @@ export default function RootLayout({ }>) { const isDemoApp = process.env.NEXT_PUBLIC_DEMO_APP === "true"; return ( - - - {process.env.NODE_ENV !== "production" && ( -