From 257c693880034eac7a826d1cb89c9267a778f4e3 Mon Sep 17 00:00:00 2001 From: Chiran Fernando Date: Mon, 7 Apr 2025 01:53:14 +0530 Subject: [PATCH] Add complete config file to Readme --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index 04db3ef..7982f3d 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,26 @@ stdio: user_command: "npx -y @modelcontextprotocol/server-github" # Example using a GitHub MCP server env: # Environment variables (optional) - "GITHUB_PERSONAL_ACCESS_TOKEN=gitPAT" + +# CORS configuration +cors: + allowed_origins: + - "http://localhost:5173" + allowed_methods: + - "GET" + - "POST" + - "PUT" + - "DELETE" + allowed_headers: + - "Authorization" + - "Content-Type" + allow_credentials: true + +# Demo configuration for Asgardeo +demo: + org_name: "openmcpauthdemo" + client_id: "N0U9e_NNGr9mP_0fPnPfPI0a6twa" + client_secret: "qFHfiBp5gNGAO9zV4YPnDofBzzfInatfUbHyPZvM0jka" ``` 2. Run the proxy with stdio mode: @@ -174,6 +194,26 @@ stdio: user_command: "npx -y @modelcontextprotocol/server-github" # Command to start the MCP server (requires npx to be installed) work_dir: "" # Optional working directory for the subprocess +# CORS configuration +cors: + allowed_origins: + - "http://localhost:5173" + allowed_methods: + - "GET" + - "POST" + - "PUT" + - "DELETE" + allowed_headers: + - "Authorization" + - "Content-Type" + allow_credentials: true + +# Demo configuration for Asgardeo +demo: + org_name: "openmcpauthdemo" + client_id: "N0U9e_NNGr9mP_0fPnPfPI0a6twa" + client_secret: "qFHfiBp5gNGAO9zV4YPnDofBzzfInatfUbHyPZvM0jka" + # Asgardeo configuration (used with --asgardeo flag) asgardeo: org_name: ""