Merge pull request #12 from wso2/update_sample_in

Add instructions to run the sample MCP server
This commit is contained in:
Pavindu Lakshan 2025-04-04 14:10:27 +05:30 committed by GitHub
commit 86fb278ba5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View file

@ -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*

View file

@ -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 dont 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
```

View file

@ -0,0 +1 @@
fastmcp==0.4.1