SEARCH & AI / 014
AEM + MCP for Enterprise AI Agents
An exploratory architecture note on exposing governed AEM capabilities to enterprise AI agents through carefully bounded MCP tools.
Topic map
Expose capabilities, not credentials
AEM and MCP for enterprise AI agents
- 01User
- 02Agent
- 03Tool boundary
- 04Policy
- 05AEM source
SYSTEM OVERVIEW
Every tool call crosses an application boundary.
PoC architecture. MCP does not eliminate the need for application authorization or safe downstream access.
Allowed request
- Authenticated caller
- Agent tool request
- Server policy check
- Scoped AEM read
- Evidence result
Rejected request
- Untrusted arguments
- Validation / policy failure
- Safe error
THIS ARTICLE EXPLORES
- Keep model suggestions separate from authorization.
- Design a bounded read-only tool first.
- Treat retrieved content as untrusted data.
01 / PROBLEM
A model choosing a tool is not permission to run it.
This is a custom read-only tool architecture exploration using the linked MCP 2025-06-18 specification as its baseline. It is not a description of Adobe’s managed MCP offering or a claim about its availability. An agent can suggest arguments that exceed the caller's scope. Validate both the tool contract and the downstream operation on the server. Start with read-only retrieval and do not give the model an unrestricted repository path or an administrative credential.
02 / IMPLEMENTATION
Keep the first tool narrow.
The illustrative schema accepts a query and locale, not an arbitrary URL or credential. Scope is derived from trusted identity outside the model-controlled arguments. Transport authorization and downstream content authorization remain distinct checks.
Illustrative read-only tool input
JSON{
"name": "find_approved_guidance",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"locale": {
"type": "string",
"enum": [
"en",
"fr"
]
}
},
"required": [
"query",
"locale"
]
}
}03 / PERMISSIONS
Minimize the downstream authority.
Use the caller's allowed scope to constrain the operation and validate token audience where applicable. Do not pass arbitrary client tokens through to unrelated downstream services. Keep resource access and tool execution auditable without logging private passage text.
Server-owned execution
Retrieved text is evidence, never authority to expand the tool's permissions.
- 01Authenticate
- 02Validate arguments
- 03Resolve caller scope
- 04Execute bounded read
- 05Filter result
- 06Return provenance
04 / FAILURE MODES
Test adversarial arguments and content.
A retrieved passage may contain instructions aimed at the agent. Keep that content separated from the tool policy and test that it cannot request new privileges or redirect data to an external destination.
| Attempt | Expected boundary | Evidence |
|---|---|---|
| Read outside caller scope | Denied before source content is returned. | Policy decision and empty protected payload. |
| Arbitrary URL/path | Rejected by the tool schema and execution policy. | Validation error without external request. |
| Instruction in source text | Treated as content, not a privileged command. | No unauthorized follow-up operation. |
| Repeated expensive calls | Bounded request and execution budgets. | Rate/timeout behavior. |
05 / EVALUATION
Validate the tool before evaluating the agent.
Use deterministic requests to test schema validation, denial behavior and source provenance. Then evaluate the agent workflow separately. A tool annotation alone does not enforce read-only behavior.
PoC acceptance
- No write operation is reachable through the proposed tool.
- Denied identities cannot retrieve protected passages.
- Arguments cannot select arbitrary endpoints.
- Timeouts and dependency failures return safe errors.
- Every returned passage carries an allowed source reference.
REFERENCE DESK
Sources & further verification
Product behavior should be checked against the target AEM and search-engine release. The design choices in this note are proposed assessment criteria, not vendor guarantees.