Winter '27 Agentforce Architecture: AiAgentDefinition Metadata and Two-Way Salesforce MCP
Salesforce Winter '27 introduces AiAgentDefinition metadata for cleaner ALM deployments and lets teams expose Agentforce agents as MCP tools for Claude, ChatGPT, and Cursor.

Key Findings & Architecture Notes
- •Winter '27 introduces API 68.0 metadata types AiAgentDefinition and AiAgentDefinitionVersion, replacing fragmented bot bundles and random generated suffixes in CI/CD pipelines.
- •Deployments must bundle AiAuthoringBundle for Agent Script agents and explicitly declare indirect Apex and Data 360 dependencies in manifest files.
- •Salesforce MCP expands from one-way tool consumption to two-way tool exposure: Agent Script agents can now be published directly as MCP tools in Setup.
- •External AI clients including Claude, ChatGPT, and Cursor can invoke Agentforce agents securely under existing sharing rules, FLS, and the Einstein Trust Layer.
API 68.0 Overhaul: AiAgentDefinition and Clean Versioning
Salesforce's Winter '27 release overhauls how developers package and expose autonomous agents across orgs and external AI clients. On the ALM front, Salesforce Developers detailed two new API 68.0 metadata types—AiAgentDefinition and AiAgentDefinitionVersion—designed to replace fragmented bot bundles and random generated suffixes during CI/CD deployments.
Previously, a single agent spanned multiple moving folders and generated suffixes that polluted Git diffs (Salesforce Developers). With API 68.0, teams deploy AiAgentDefinition alongside at least one AiAgentDefinitionVersion—and must include AiAuthoringBundle for Agent Script agents, swap target-org agent usernames, and explicitly list indirect Apex or Data 360 dependencies in their manifest.
Manifest Rules and Deployment Hygiene
The unified metadata structure eliminates orphan dependencies by requiring explicit manifest declarations:
- AiAuthoringBundle Requirement: Every Agent Script-authored agent must pair its metadata definition with the underlying authoring bundle to maintain editability in Agentforce Builder post-deployment.
- User Context Swapping: Pipelines can parameterize target-org execution usernames, preventing credential lockouts when promoting agents from sandbox to production.
- Apex & Data 360 Binding: Indirect Apex actions and federated Data 360 streaming endpoints must be listed in
package.xmlorproject.jsonto ensure atomic deployments.
Two-Way MCP: Exposing Agentforce Agents to Claude, ChatGPT, and Cursor
In parallel, Winter '27 flips Salesforce's Model Context Protocol (MCP) integration from one-way consumption to two-way exposure. As developer Avnish Yadav outlines, admins can navigate to Setup → Integration → Salesforce MCP Servers and publish an Agent Script Builder agent directly as an MCP tool—with no custom Apex wrapper required.
External AI clients including Claude, ChatGPT, and Cursor can now invoke published Salesforce agents via standard MCP JSON-RPC protocols. Crucially, all external invocations remain governed by native Salesforce sharing rules, field-level security (FLS), and the Einstein Trust Layer, allowing enterprise developers to execute audited CRM operations directly from their preferred AI coding and analytical interfaces.
Marcus Vance
Principal Salesforce Technical Architect & Venture Contributor • London Bureau
Marcus Vance is a certified Salesforce Technical Architect and systems engineer with over 12 years of experience designing multi-cloud enterprise topologies, high-volume Apex integrations, and CRM infrastructure across European banking and SaaS enterprises.