Skip to main content

Use cases & possibilities

The MCP server turns Ductape into a toolbox for AI agents. Any MCP client with the server configured can orchestrate platform operations through natural language. Below is a comprehensive map of what agents can accomplish, organized by platform area.


Platform administration

Agents can manage the structural layer of your Ductape workspace without touching the Workbench UI.

TaskModuleExample method
Create a productproductcreate
Add environments (prd, stg)productenvironments.create
Connect an app to a productproductapps.connect, apps.add
List connected appsproductapps.list
Create an integration appappcreate
Configure app environmentsappenvironments.create
Manage app variables/constantsappvariables.create, constants.create
Define app actionsappactions.create
Configure auth schemesappauths.create

Example agent prompt: "Create a new product called 'Analytics Platform' with prd and stg environments, then connect the Stripe app."


Actions & integrations

Run and manage HTTP integrations defined in Ductape apps.

TaskModuleExample method
Run a synchronous actionactionsrun
Schedule or retry an actionactionsdispatch
List available actionsactionslist
Import actions from OpenAPI/Postmanactionsimport
Create/update action definitionsactionscreate, update

Action input uses prefixed keys: body:field, headers:Authorization, params:id, query:limit.

Example agent prompt: "Call the Stripe create-customer action with email user@example.com in the prd environment."


Databases

Full CRUD, schema management, migrations, and custom database actions.

TaskModuleExample method
Query records with filtersdatabasesquery
Insert / update / deletedatabasesinsert, update, delete
Upsert with conflict keysdatabasesupsert
Aggregations (count, sum, avg)databasescount, aggregate
Manage schema (fields, indexes)databasesschema.create, schema.addField
Run migrationsdatabasesmigration.run, migration.rollback
Execute custom SQL/NoSQL actionsdatabasesaction.dispatch, dispatch
Test database connectivitydatabasestestConnection

Supports MongoDB, PostgreSQL, MySQL, and SQLite.

Example agent prompt: "Find the 10 most recent orders where status is 'pending' in the main-db database."


Graph databases

Node/relationship CRUD, traversal, Cypher queries, and graph actions.

TaskModuleExample method
Create nodes and relationshipsgraphcreateNode, createRelationship
Find and update nodesgraphfindNodes, updateNode
Traverse the graphgraphtraverse, getNeighborhood
Shortest pathgraphshortestPath
Run Cypher queriesgraphquery
Full-text and vector searchgraphfullTextSearch, vectorSearch
Manage indexes/constraintsgraphcreateNodeIndex, createNodeConstraint
Transactional operationsgraphbeginTransaction, commitTransaction

Supports Neo4j, Nebula, and ArangoDB.

Example agent prompt: "Find all Person nodes connected to Company 'Acme' within 2 hops."


Vector stores

Embedding storage, similarity search, and namespace management.

TaskModuleExample method
Similarity searchvectorfindSimilar, query
Upsert embeddingsvectorupsert, upsertOne
Fetch/delete vectorsvectorfetchOne, deleteByIds, deleteAll
Manage namespacesvectorlistNamespaces, deleteNamespace
Index managementvectorcreateIndex, describeIndex, getStats

Supports Pinecone, Qdrant, Weaviate, and others.

Example agent prompt: "Search the embeddings-index for the 5 vectors most similar to this embedding array."

Ideal for RAG pipelines where an agent retrieves context before answering.


Storage

Object storage across AWS S3, Azure Blob, and GCP.

TaskModuleExample method
Upload filesstorageupload
Download filesstoragedownload
List files by prefixstoragelistFiles
Generate signed URLsstoragegetSignedUrl
Storage statisticsstoragestats
Scheduled storage operationsstoragedispatch

Example agent prompt: "Upload report.pdf to the assets bucket and give me a signed read URL valid for 1 hour."


Sessions & users

User session lifecycle, verification, and activity dashboards.

TaskModuleExample method
Start a sessionsessionsstart
Verify JWT tokenssessionsverify
Refresh sessionssessionsrefresh
Revoke sessionssessionsrevoke, listActive
List session userssessionsfetchUsers, fetchUserDetails
Activity dashboardsessionsfetchDashboard

Example agent prompt: "Show me all active sessions for the customer-portal session type in production."


Caching

Redis, Memcached, and in-memory cache operations.

TaskModuleExample method
Get/set cache valuescachesget, set
Clear keys or entire cachecachesclear, clearAll
Browse cached valuescachesfetchValues
Cache dashboardcachesfetchDashboard

Example agent prompt: "Set cache key 'user:123:profile' to the JSON profile data with a 1-hour expiry."


Notifications

Email, push, SMS, and callback notifications.

TaskModuleExample method
Send emailnotificationsemail.send
Send push notificationnotificationspush.send
Send SMSnotificationssms.send
HTTP callbacknotificationscallback.send
Schedule notification dispatchnotificationsdispatch
Message logsnotificationsgetMessages
Manage templatesnotificationsmessages.create, messages.update

Example agent prompt: "Send a welcome email to new-user@example.com using the onboarding template."


Message brokers

Kafka, RabbitMQ, Redis Streams, and SQS messaging.

TaskModuleExample method
Produce messagesmessageBrokersproduce
Subscribe/consumemessageBrokerssubscribe, consume
Query message historymessageBrokersmessages.query
Dead letter inspectionmessageBrokersmessages.getDeadLetters
Broker dashboardmessageBrokersmessages.getDashboard

Example agent prompt: "Publish a user-signup event to the events-broker orders-topic."


Workflows

Multi-step durable workflows with signals, queries, and scheduling.

TaskModuleExample method
Define workflowsworkflowcreate, define
Execute a workflowworkflowexecute
Schedule workflow runsworkflowdispatch
Send signalsworkflowsignal
Query workflow stateworkflowquery, status
Cancel / replay / resumeworkflowcancel, replay, resume
Execution historyworkflowhistory, stepDetail

Step types include actions, database ops, graph queries, notifications, storage, messaging, child workflows, sleep, and wait-for-signal.

Example agent prompt: "Run the order-fulfillment workflow with order ID 12345 and show me the execution status."


Jobs

Scheduled and recurring background jobs.

TaskModuleExample method
Create scheduled jobsjobscreate
List and inspect jobsjobslistJobs, get
Cancel / pause / resumejobscancel, pause, resume
Retry failed jobsjobsretry, retryMany
Reschedulejobsreschedule
Job history and statsjobsgetHistory, getStats

Example agent prompt: "Show me all failed jobs in the last 24 hours and retry them."


Resilience

Quotas, fallbacks, and health checks for fault-tolerant integrations.

Quotas

Try providers in order until one succeeds within quota limits.

TaskModuleExample method
Define quota chainsquotascreate
Execute with failoverquotasrun, dispatch
Check/consume quotaquotascheck, consume

Fallbacks

Ordered provider failover without usage limits.

TaskModuleExample method
Define fallback chainsfallbackcreate
Execute with failoverfallbackrun, dispatch

Health checks

Probe external services and react on failure.

TaskModuleExample method
Define health probeshealthcreate
Check current statushealthstatus, check
Run probe manuallyhealthrun

Example agent prompt: "Run the payment-gateway quota with amount 99.99 and tell me which provider handled it."


Secrets

Workspace secret management and resolution.

TaskModuleExample method
Create/update secretssecretscreate, update
List and fetch secretssecretslist, fetch
Resolve $Secret{key} referencessecretsresolve
Validate secret syntaxsecretsvalidate
Revoke secretssecretsrevoke

Example agent prompt: "List all secrets scoped to the prd environment."


Webhooks

Inbound webhook configuration and event management.

TaskModuleExample method
Create webhookswebhookscreate
Define webhook eventswebhooksevents.create
Enable and generate linkswebhooksenable, generateLink
Trigger test eventswebhookstrigger

Logs

Query application and product logs.

TaskModuleExample method
Initialize log contextlogsinit
Fetch filtered logslogsfetch
Stream logslogsstream

Example agent prompt: "Show me error-level logs from the payment app in the last hour."


Feature flags

TaskModuleExample method
Create feature flagsfeaturescreate
Check if enabledfeaturesisEnabled
Run feature-gated logicfeaturesrun, dispatch

Agent workflow patterns

1. Explore → execute

  1. List resources (databases.list, actions.list)
  2. Inspect schema (databases.schema.describe)
  3. Execute operation (databases.query, actions.run)

2. Generate → review → execute

  1. ductape_generate_payload to get canonical shape
  2. Agent reviews payload with user
  3. ductape_execute with finalized params

3. Scaffold → hand off

  1. ductape_generate_snippet with language: typescript
  2. Agent pastes snippet into user's codebase
  3. Developer runs locally with SDK credentials

4. Monitor → remediate

  1. health.status or jobs.listJobs to detect issues
  2. jobs.retry or fallback.run to recover
  3. notifications.send to alert team

5. RAG assistant

  1. vector.findSimilar to retrieve relevant documents
  2. databases.query for structured data
  3. actions.run to call external APIs with retrieved context

Combining with Ductape Agents

The MCP server complements Ductape Agents. Agents defined in Ductape can use SDK tools internally; the MCP server extends that capability to external AI clients (Cursor, Claude Desktop, custom MCP hosts) that are not running inside Ductape.

ApproachBest for
Ductape AgentsProduction AI systems hosted on Ductape with built-in memory, HITL, multi-agent
MCP ServerDeveloper copilots, IDE integration, ad-hoc platform automation
BothAgents in production + MCP for developer tooling against the same workspace

Limitations

LimitationDetail
Stdio onlyNo built-in HTTP/SSE transport; must be spawned by an MCP client
Proxy allowlistOnly validated module/method pairs execute; see Modules & methods
No streaming SDK callbacksLong-running streams (e.g. logs.stream, messageBrokers.consume with live callbacks) may not map cleanly to request/response MCP tools
Workflow define handlerCode-based workflow handlers cannot be passed as JSON through MCP; use declarative workflow.create with steps instead
Snippet coverageNot all SDK methods have snippet generation; see Code generation

For operations outside the allowlist, use the SDK directly in application code or request proxy validator updates.