-
Notifications
You must be signed in to change notification settings - Fork 347
Description
Describe the bug
Similar error as some other issues:
When I am trying to run Azure MCP via docker, I am getting permission denied errors.
Platform: WSL Ubuntu 22.04
Command used: docker run -i --rm --env-file .env mcr.microsoft.com/azure-sdk/azure-mcp:latest
Error: docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./azmcp": permission denied: unknown.
Content of .env file :
AZURE_TENANT_ID=xxxxx-xxxxx-xxxxx-xxxxx
AZURE_CLIENT_ID=xxxxx-xxxxx-xxxxx-xxxxx (of an owned application under App Registrations)
AZURE_CLIENT_SECRET=xxxxx-xxxxx-xxxxx-xxxxx ( of an owned application under App Registrations)
I tried to do backup solution like this in mcp.json :
{ "mcpServers": { "azure-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "--env-file", "/mcp/servers/Azure.Mcp.Server/.env", "--entrypoint", "sh", "mcr.microsoft.com/azure-sdk/azure-mcp:latest", "-c", "chmod +x ./azmcp && ./azmcp server start" ], "disabled": false, "alwaysAllow": [] } } }
I am using ROO code for MCP in VSCode. On doing the following changes, the server becomes active and shows tasks available.
When I give a task like "List subscriptions
It gives an "Authentication Failed" :
`Roo wants to use a tool on the azure-mcp-server MCP server
azure-mcp-server
subscription
Azure subscription operations - Commands for listing and managing Azure subscriptions accessible to your account.This tool is a hierarchical MCP command router. Sub commands are routed to MCP servers that require specific fields inside the "parameters" object. To invoke a command, set "command" and wrap its args in "parameters". Set "learn=true" to discover available sub commands.
{
"intent": "list available subscriptions",
"command": "list",
"parameters": {}
}
Roo wants to use a tool on the azure-mcp-server MCP server
azure-mcp-server
subscription
Azure subscription operations - Commands for listing and managing Azure subscriptions accessible to your account.This tool is a hierarchical MCP command router. Sub commands are routed to MCP servers that require specific fields inside the "parameters" object. To invoke a command, set "command" and wrap its args in "parameters". Set "learn=true" to discover available sub commands.
{
"intent": "list available subscriptions",
"command": "subscription_list",
"parameters": {}
}
Roo has a question
Authentication failed. Would you like to attempt signing in to Azure?`
Is the docker workaround messing up the authentication?
Expected behavior
On executing docker run -i --rm --env-file .env mcr.microsoft.com/azure-sdk/azure-mcp:latest , it should run fine.
Actual behavior
docker run -i --rm --env-file .env mcr.microsoft.com/azure-sdk/azure-mcp:latest fails with error:
Error: docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./azmcp": permission denied: unknown.
Reproduction Steps
{ "mcpServers": { "azure-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "--env-file", "/mcp/servers/Azure.Mcp.Server/.env", "--entrypoint", "sh", "mcr.microsoft.com/azure-sdk/azure-mcp:latest", "-c", "chmod +x ./azmcp && ./azmcp server start" ], "disabled": false, "alwaysAllow": [] } } }
Environment
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status