AA 

anthonychu/azure-container-apps-mcp-sample
Developer tools33 stars 0 forks 품질 45 트렌드 45
This MCP server uses SSE transport and is authenticated with an API key.
개요
This MCP server uses SSE transport and is authenticated with an API key.
README
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=
# windows
set API_KEYS=
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 -n weather-mcp --environment mcp -l westus --env-vars API_KEYS= --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
설치
This server does not publish a one-line install command.
Open the repository installation guide