Compatible with every major AI agent and IDE
What is the Dagger (Programmable CI) MCP Server?
Connect to the Dagger Engine to orchestrate your delivery pipelines using a powerful, programmable GraphQL API. This server allows your AI agent to interact directly with Dagger's Directed Acyclic Graph (DAG) of operations.
What you can do
- Container Orchestration — Initialize scratch containers, pull images, and manage OCI-compatible states.
- GraphQL Workflows — Execute raw GraphQL queries to compose complex build and test logic dynamically.
- Source Control — Query Git repositories and host environments to pull source code into your pipelines.
- Resource Management — Handle secrets securely, manage persistent cache volumes, and fetch remote files via HTTP.
- Module Inspection — Query the current module state and engine version to ensure environment consistency.
How it works
- Ensure a Dagger Engine is running in your environment.
- Provide the session port and token generated by the Dagger CLI.
- Start building and deploying through natural language commands.
Who is this for?
- DevOps Engineers — Automate pipeline debugging and execution without leaving the chat interface.
- Software Developers — Run builds, tests, and container operations directly from the code editor.
- SREs — Inspect engine states and orchestrate infrastructure tasks using programmable CI logic.
Built-in capabilities (10)
You can chain fields to create a Directed Acyclic Graph (DAG) of operations. Execute a raw GraphQL query against the Dagger engine
Constructs a cache volume
Creates a scratch container and returns its ID
Queries the current module
Creates an empty directory and returns its ID
Queries a Git repository
Queries the host environment
Returns a file from a URL
g., env://VAR_NAME, file://PATH, cmd://COMMAND). Creates a new secret
Get the Dagger Engine version
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Dagger (Programmable CI) tool infrastructure. Connect 10 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Dagger (Programmable CI) without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Dagger (Programmable CI) tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Dagger (Programmable CI) in Mastra AI
Dagger (Programmable CI) and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Dagger (Programmable CI) to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Dagger (Programmable CI) in Mastra AI
The Dagger (Programmable CI) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 10 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Dagger (Programmable CI) for Mastra AI
Every tool call from Mastra AI to the Dagger (Programmable CI) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How do I run a specific build command using Dagger?
You can use the execute_graphql_query tool to send a raw GraphQL query to the Dagger engine, allowing you to chain container operations like from, withExec, and stdout.
Can I access files from my local machine in the pipeline?
Yes, the query_host tool allows you to retrieve the state ID for your host environment, which can then be used to mount local directories into your Dagger containers.
How are secrets handled in this integration?
Use the query_secret tool to load secrets from URIs (like env:// or file://). This returns a secret ID that can be safely passed to other Dagger operations without exposing the plaintext value.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Object Hash Engine
1 toolsGenerate deterministic SHA-256 fingerprints of any JSON object. Keys are automatically sorted so {b:2,a:1} and {a:1,b:2} always produce the exact same hash. Essential for deduplication.

SAP Concur
9 toolsEnable your AI agent to manage corporate expenses, track report statuses, and retrieve user profiles via the SAP Concur API.

Salt Security
10 toolsIntegrate Salt Security directly with your AI for comprehensive API threat vector discovery, posture management, and active remediation in real-time.

ChannelAdvisor (Rithum)
8 toolsManage multi-channel commerce via ChannelAdvisor — track products, inventory, and orders across global marketplaces directly from any AI agent.
