From a7a235dc3d904e61e73da0829028213f33afa0b8 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 30 Mar 2025 16:05:03 -0700 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f54cb6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM python:3.10-slim + +# Set working directory to /app +WORKDIR /app + +# Copy entire repository to container +COPY . . + +# Upgrade pip and install the package in editable mode using pyproject.toml configuration +RUN pip install --upgrade pip && \ + pip install --no-cache-dir -e . + +# Change working directory to the python module directory, as the MCP server expects to run from here +WORKDIR /app/src/python + +# Expose port 8000 if needed (adjust if the server uses a different port) +EXPOSE 8000 + +# Default command to run the MCP server +CMD [ "python", "-m", "azure_agent_mcp_server" ] From 2834d4b0cf7ea5d08a00dbac58d41c011253861b Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 30 Mar 2025 16:05:03 -0700 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..e8067fa --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,30 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: + - projectConnectionString + properties: + projectConnectionString: + type: string + description: Azure project connection string (required) + defaultAgentId: + type: string + description: Default Azure AI Agent ID (optional) + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ + command: 'python', + args: ['-m', 'azure_agent_mcp_server'], + cwd: '/app/src/python', + env: Object.assign({ + PROJECT_CONNECTION_STRING: config.projectConnectionString + }, config.defaultAgentId ? { DEFAULT_AGENT_ID: config.defaultAgentId } : {}) + }) + exampleConfig: + projectConnectionString: your-project-connection-string + defaultAgentId: your-default-agent-id From bddf2649e8b0f51e5d1cb2adeaec3f5d46ef3a3f Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 30 Mar 2025 16:05:04 -0700 Subject: [PATCH 3/3] Update README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 770033a..dbfd549 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,14 @@ This MCP server integrates with Azure AI Foundry to enable connections to your e ![demo](img/mcp-azs.gif) +[![smithery badge](https://smithery.ai/badge/@azure-ai-foundry/mcp-foundry)](https://smithery.ai/server/@azure-ai-foundry/mcp-foundry) [![GitHub watchers](https://img.shields.io/github/watchers/azure-ai-foundry/mcp-foundry.svg?style=social&label=Watch)](https://github.com/azure-ai-foundry/mcp-foundry/watchers) [![GitHub forks](https://img.shields.io/github/forks/azure-ai-foundry/mcp-foundry.svg?style=social&label=Fork)](https://github.com/azure-ai-foundry/mcp-foundry/fork) [![GitHub stars](https://img.shields.io/github/stars/azure-ai-foundry/mcp-foundry?style=social&label=Star)](https://github.com/azure-ai-foundry/mcp-foundry/stargazers) [![Azure AI Community Discord](https://dcbadge.vercel.app/api/server/ByRwuEEgH4)](https://discord.gg/REmjGvvFpW) + ## Features - 🤖 **Agent Integration** - Connect to your existing Azure AI Agents @@ -62,6 +64,14 @@ DEFAULT_AGENT_ID=your-default-agent-id ## Installation +### Installing via Smithery + +To install Azure AI Agent Service for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@azure-ai-foundry/mcp-foundry): + +```bash +npx -y @smithery/cli install @azure-ai-foundry/mcp-foundry --client claude +``` + ### Prerequisites - Python 3.10+