Add your description here
Project description
Azure Container Apps remote MCP server example
This MCP server uses SSE transport and is authenticated with an API key.
Running locally
Prerequisites:
- Python 3.11 or later
- uv
Run the server locally:
uv venv
uv sync
# linux/macOS
export API_KEYS=<AN_API_KEY>
# windows
set API_KEYS=<AN_API_KEY>
uv run fastapi dev main.py
VS Code MCP configuration (mcp.json):
{
"inputs": [
{
"type": "promptString",
"id": "weather-api-key",
"description": "Weather API Key",
"password": true
}
],
"servers": {
"weather-sse": {
"type": "sse",
"url": "http://localhost:8000/sse",
"headers": {
"x-api-key": "${input:weather-api-key}"
}
}
}
}
Deploy to Azure Container Apps
az containerapp up -g <RESOURCE_GROUP_NAME> -n weather-mcp --environment mcp -l westus --env-vars API_KEYS=<AN_API_KEY> --source .
If the deployment is successful, the Azure CLI returns the URL of the app. You can use this URL to connect to the server from Visual Studio Code.
If the deployment fails, try again after updating the CLI and the Azure Container Apps extension:
az upgrade
az extension add -n containerapp --upgrade
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_20240407_test_mcp-0.1.0.tar.gz.
File metadata
- Download URL: mseep_20240407_test_mcp-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b1de575ae9fa30a419bf6ac7ce964737de8fa089d185ca5835565fd50660bb
|
|
| MD5 |
3a4f2e993e8eb29fe9946de5e2a8b6fd
|
|
| BLAKE2b-256 |
65cf877b1deb45b5ea3d96a99abb7d7a81bbd34ebad2a4d1aaf582dd3436d249
|
File details
Details for the file mseep_20240407_test_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mseep_20240407_test_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf92655ab5899ab9e7a22a8f7d395b330daafad6bedb1be62b6e707180c4b1eb
|
|
| MD5 |
883972210ba091f97e1f4e9e929d0d52
|
|
| BLAKE2b-256 |
1b861a13471a72700d1381137af9c058f08caa2379c9b80243e119c65fb71a46
|