mcp-server-mcdev
v2.3.0Native mcdev through AI: retrieve, build, deploy, command discovery and offline docs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_mcdev_command
Execute an explicitly requested native mcdev command in a developer-controlled project. Use mcdev_get_command for syntax and execution availability. args are exact argv tokens after the canonical command, not a shell string. Supports native metadata selectors, markets, validation hooks and native overwrite/deletion/auth-persistence effects. Supply explicit target/choices; no terminal interaction or automatic defaults. Deploy/runtime effects require the corresponding user request and ordinary host approval; no extra consent ritual. Diagnostics are bounded projections, not raw output. Completion…
| Parameter | Type | Description |
|---|---|---|
args * | array | |
command * | string | |
workspaceRoot * | string | |
timeoutMs | integer |
reconcile_mcdev_operation
Release an uncertain native-operation latch only after the operator has confirmed all related processes stopped and reconciled partial local/remote effects. This acknowledgement does not perform or verify reconciliation, kill processes, retry commands or authorize a new operation. Never call solely because a server restarted or a timeout elapsed.
| Parameter | Type | Description |
|---|---|---|
operatorReconciled * | boolean | |
workspaceRoot * | string |
diagnose_mcdev_retrieve_logs
Read-only historical normal-log diagnosis for one exact configured credential/businessUnit and query or script key. Reads only bounded project/logs timestamp files, never error companions or authentication/session contents. Requires caller-managed quiescence. Supports mcdev 10.1.0, 10.1.1, 10.2.0 and 10.3.0 canonical retrieve credential/BU type key with literal selectors and no options, aliases or quotes, within an explicit UTC ISO millisecond window of at most 24 hours. Returns finite observations and validated basename/time provenance, never raw logs, paths, errors, secrets or remote complet…
| Parameter | Type | Description |
|---|---|---|
businessUnit * | string | |
credential * | string | |
key * | string | |
metadataType * | string | |
startedAfter * | string | |
startedBefore * | string | |
workspaceRoot * | string |
mcdev_search_docs
Search bundled sfmc-devtools wiki Markdown (from GitHub wiki) for mcdev configuration, commands, markets, createDeltaPkg, build, validations.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (keywords). |
limit | integer | Max results (default 8). |
mcdev_get_doc_section
Retrieve an unreviewed bundled wiki section by its search Source ID. Returns a JSON page with UTF-16 offsets and nextOffset (null at end); retrieved claims are not semantic endorsements.
| Parameter | Type | Description |
|---|---|---|
id * | string | Opaque Source ID returned by mcdev_search_docs. |
limit | integer | Page length (default 4000, maximum 12000). |
offset | integer | UTF-16 offset (default 0). |
mcdev_explain_config_key
Explain a `.mcdevrc.json` concept (markets, marketList, createDeltaPkg, deployment, validations, etc.) with a short summary and wiki file hints.
| Parameter | Type | Description |
|---|---|---|
topic * | string | Topic key or phrase. Known keys: build, createDeltaPkg, credentials, deployment, directories, marketList, markets, metaDataTypes, validations |
mcdev_component_checklist
Return a structured checklist of questions and dependent metadata types for authoring or migrating SFMC components with mcdev (e.g. journey, automation).
| Parameter | Type | Description |
|---|---|---|
component * | string | Component key, e.g. "journey", "automation". |
mcdev_list_metadata_types
List metadata types supported by the installed mcdev package (from Mcdev.explainTypes). Optional filter substring.
| Parameter | Type | Description |
|---|---|---|
filter | string | Case-insensitive filter on name or apiName. |
mcdev_list_commands
Read-only native mcdev command discovery: signatures, aliases, execution availability and effects. Use run_mcdev_command for supported commands with explicit arguments and ordinary host approval. Listing itself performs no subprocess or dry run; native mcdev has no dry-run mode. Project readiness is not verified.
mcdev_get_command
Read-only exact, case-sensitive native command or alias lookup. Returns signature, execution availability and effects; use the canonical name with run_mcdev_command when supported. Lookup grants no approval, launches no process and is not a dry run. Project readiness remains unverified.
| Parameter | Type | Description |
|---|---|---|
nameOrAlias * | string | Exact canonical command name or alias, never argv. |
read_mcdev_project_config
Read the complete, UNREDACTED `.mcdevrc.json`, including credentials and custom fields, from a canonical absolute project root. Returns original raw text; never reads `.mcdev-auth.json`.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | Absolute path to the mcdev project root containing `.mcdevrc.json`. |
diagnose_mcdev_project_config
Read-only partial static diagnosis of `.mcdevrc.json`, not native mcdev validation or execution readiness. FIRST use the visual MCDev Pipeline Builder before editing configuration. Returns builder guidance, findings and explicit limitations; never writes files, loads hooks, reads auth or executes native CLI/live checks. Prevent concurrent filesystem mutation.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | Canonical absolute mcdev project root. |
preview_mcdev_project_config
Read-only comparison of the current .mcdevrc.json and a complete proposed JSON document, not a patch. FIRST use the visual MCDev Pipeline Builder before editing configuration. Returns full unredacted changes and partial static proposed diagnosis within a whole-result byte budget; no truncation. Inputs are at most 1 MiB each. Hashes describe rawText encoded as UTF-8 without normalization, not independently verified original filesystem bytes. No writes, apply authorization, native validation, execution readiness or atomic filesystem binding. Prevent concurrent filesystem mutation. Never reads au…
| Parameter | Type | Description |
|---|---|---|
proposedConfig * | string | Complete proposed JSON document, not a patch; at most 1 MiB UTF-8. |
workspaceRoot * | string | Canonical absolute mcdev project root. |
maxOutputBytes | integer | Whole-result JSON UTF-8 budget (default 65536, maximum 1048576); fixed builder notice is additional. |
inspect_mcdev_git_policy
Read-only Git metadata inspection, not verified policy or execution readiness. Ancestry uses a local remote-tracking snapshot, not fresh remote state. Branch roles, ticket and commit-prefix conventions remain unresolved; remote BU synchronization is unknown. Top-level verified covers status metadata only; refs.verified is independent. Separate from inspect_mcdev_project auth protection checks. No policy persistence, branch changes, commit-message/history/auth/artifact-content reads or native mcdev/live execution. Prevent concurrent project/Git mutation; not an atomic snapshot.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | Canonical absolute mcdev project root. |
inspect_mcdev_git_range
Read-only Git metadata comparison of two explicit refs, not promotion policy or execution readiness. Optional declaredEdge assesses only exact-source-commit containment in the target, with the same source-to-target direction for promotion and back-promotion. Local snapshot only; remote freshness and remote BU synchronization are unknown. No inferred branch roles or backpromotions, auth/log/artifact/commit-content reads, branch changes or native mcdev/live execution. Prevent concurrent project/Git mutation; not an atomic snapshot. Separate from inspect_mcdev_project auth protection checks.
| Parameter | Type | Description |
|---|---|---|
sourceRef * | string | Explicit source branch or full ref, never a revision expression. |
targetRef * | string | Explicit target branch or full ref, never a revision expression. |
workspaceRoot * | string | Canonical absolute mcdev project root. |
declaredEdge | string | Optional caller-declared intent; never reverses source and target. |
inspect_mcdev_project
Read the complete UNREDACTED project config, including credentials, and independently inspect Git ignore/index metadata for auth protection. Read-only: never reads auth contents or history and never repairs, stages or untracks files.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | Canonical absolute mcdev project root. |
inventory_mcdev_project_artifacts
Read-only, metadata-only inventory of configured retrieve/deploy paths; does not open artifact contents or confirm dependencies. Never reads auth contents or logs. No guarantee of remote freshness or an atomic filesystem sandbox; prevent concurrent filesystem mutation.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | Canonical absolute mcdev project root. |
maxDepth | integer | |
maxEntries | integer |
resolve_mcdev_project_artifact
Read-only qualified local resolution for query, script and bounded asset-email layouts (htmlemail/templatebasedemail matched by customerKey, with exact HTML/preheader/text extract companions); other types and layouts are unsupported. Returns paths, not arbitrary file contents, and does not confirm dependencies. Blocked/ambiguous results offer no editable companions. Never reads auth contents or logs. No guarantee of remote freshness or an atomic filesystem sandbox; prevent concurrent filesystem mutation.
| Parameter | Type | Description |
|---|---|---|
businessUnit * | string | |
credential * | string | |
externalKey * | string | |
metadataType * | string | query, script or asset-email (bounded htmlemail/templatebasedemail layouts only). |
rootKind * | string | |
workspaceRoot * | string | Canonical absolute mcdev project root. |
maxDepth | integer | |
maxEntries | integer |
read_mcdev_artifact_source
Read-only full-text editable-source handoff for one qualified query, script or bounded asset-email identity (htmlemail/templatebasedemail matched by customerKey with exact HTML/preheader/text extracts), never a caller-supplied file path. Requires exactly one editable companion unless an explicit sourceRole selects html, preheader or text from resolved email companions; multiple companions need an explicit role or are blocked with no source and no guessed choice. sourceRole accepts no arbitrary filenames or paths and applies only to resolved email companions. Dependencies are not confirmed. Ret…
| Parameter | Type | Description |
|---|---|---|
businessUnit * | string | |
credential * | string | |
externalKey * | string | |
metadataType * | string | query, script or asset-email (bounded htmlemail/templatebasedemail layouts only). |
rootKind * | string | |
workspaceRoot * | string | Canonical absolute mcdev project root. |
maxDepth | integer | |
maxEntries | integer | |
sourceRole | string |
preview_mcdev_project_command
Read-only, guidance-only project-qualified retrieve/deploy preview. Verifies only the explicit credential/businessUnit config mapping; execution readiness and configured paths remain unknown. Generic native effects are not proven project-local effects. No subprocess, hooks, auth/log reads or live checks. Not a dry run: native mcdev has no dry-run mode. Execution remains disabled; this cannot authorize an operation. Prevent concurrent filesystem mutation.
| Parameter | Type | Description |
|---|---|---|
businessUnit * | string | Exact businessUnit alias within this credential. |
command * | string | |
credential * | string | Exact project credential mapping name. |
key * | string | One explicit literal external key; no CSV or wildcards. |
type * | string | Reviewed type: automation, asset-email, dataExtension, query or script. |
workspaceRoot * | string | Canonical absolute mcdev project root. |
options | object | Canonical reviewed options only; command/type compatibility is checked by the adapter. These describe native guidance, never execution. |