From 48c7f30ea82b2c3d6e6278b6032cf1dd2fbc134d Mon Sep 17 00:00:00 2001 From: Ayesha Dissanayaka Date: Thu, 3 Apr 2025 20:00:02 +0530 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ba80d9..0837ea2 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The `--demo` flag enables a demonstration mode with pre-configured authenticatio #### Connect Using an MCP Client -You can use this fork of the [MCP Inspector](https://github.com/shashimalcse/inspector) to test the connection and try out the complete authorization flow. (this is a temporary fork with fixes for authentication issues in the original implementation) +You can use this fork of the [MCP Inspector](https://github.com/shashimalcse/inspector) to test the connection and try out the complete authorization flow. (This is a temporary fork with fixes for authentication [issues](https://github.com/modelcontextprotocol/typescript-sdk/issues/257) in the original implementation) ### Use with Asgardeo From 28f830dfbf24a4dba0db1ff9240f1410a76eb338 Mon Sep 17 00:00:00 2001 From: Thilina Shashimal Senarath <43197743+shashimalcse@users.noreply.github.com> Date: Thu, 3 Apr 2025 22:02:12 +0530 Subject: [PATCH 2/4] remove default config (#11) --- config.yaml | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/config.yaml b/config.yaml index 0b0ade4..b949380 100644 --- a/config.yaml +++ b/config.yaml @@ -9,14 +9,10 @@ mcp_paths: - /sse path_mapping: - /token: /token - /register: /register - /authorize: /authorize - /.well-known/oauth-authorization-server: /.well-known/oauth-authorization-server cors: allowed_origins: - - "" + - "http://localhost:5173" allowed_methods: - "GET" - "POST" @@ -32,40 +28,5 @@ demo: client_id: "N0U9e_NNGr9mP_0fPnPfPI0a6twa" client_secret: "qFHfiBp5gNGAO9zV4YPnDofBzzfInatfUbHyPZvM0jka" -asgardeo: - org_name: "" - client_id: "" - client_secret: "" -default: - base_url: "" - jwks_url: "" - path: - /.well-known/oauth-authorization-server: - response: - issuer: "" - jwks_uri: "" - authorization_endpoint: "" # Optional - token_endpoint: "" # Optional - registration_endpoint: "" # Optional - response_types_supported: - - "code" - grant_types_supported: - - "authorization_code" - - "refresh_token" - code_challenge_methods_supported: - - "S256" - - "plain" - /authroize: - addQueryParams: - - name: "" - value: "" - /token: - addBodyParams: - - name: "" - value: "" - /register: - addBodyParams: - - name: "" - value: "" From 8d7aab073e9ba59a60b0baf7614e40ed69dc43c0 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Fri, 4 Apr 2025 14:08:11 +0530 Subject: [PATCH 3/4] Add instructions to run the sample MCP server --- .gitignore | 1 + README.md | 18 ++++++++++++++++-- resources/requirements.txt | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 resources/requirements.txt diff --git a/.gitignore b/.gitignore index 6c1dd97..2a2b503 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ *.zip *.tar.gz *.rar +.venv # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* diff --git a/README.md b/README.md index 0837ea2..85ab0d5 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,22 @@ go build -o openmcpauthproxy ./cmd/proxy Allows you to just enable authentication and authorization for your MCP server with the preconfigured auth provider powered by Asgardeo. If you don’t have an MCP server, follow the instructions given here to start your own MCP server for testing purposes. -1. Download [sample MCP server](resources/echo_server.py) -2. Run the server with + +1. Navigate to `resources` directory. +2. Initialize a virtual environment. + +```bash +python3 -m venv .venv +``` + +3. Install dependencies. + +``` +pip3 install -r requirements.txt +``` + +4. Start the server. + ```bash python3 echo_server.py ``` diff --git a/resources/requirements.txt b/resources/requirements.txt new file mode 100644 index 0000000..102b728 --- /dev/null +++ b/resources/requirements.txt @@ -0,0 +1 @@ +fastmcp==0.4.1 \ No newline at end of file From 6ce52261db90ae77fab1082e9233eba46bdead8e Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Fri, 4 Apr 2025 14:45:58 +0530 Subject: [PATCH 4/4] Add venv activate step --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85ab0d5..d00f16e 100644 --- a/README.md +++ b/README.md @@ -38,14 +38,19 @@ If you don’t have an MCP server, follow the instructions given here to start y ```bash python3 -m venv .venv ``` +3. Activate virtual environment. -3. Install dependencies. +```bash +source .venv/bin/activate +``` + +4. Install dependencies. ``` pip3 install -r requirements.txt ``` -4. Start the server. +5. Start the server. ```bash python3 echo_server.py