Skip to content

Commit 7a7ebe4

Browse files
committed
Updated agentcore integration documentation
1 parent b1ec6a2 commit 7a7ebe4

File tree

1 file changed

+14
-95
lines changed

1 file changed

+14
-95
lines changed

docs/agentcore-integration.md

Lines changed: 14 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
SPDX-License-Identifier: MIT-0
33

4-
# AgentCore Integration
4+
# MCP Integration
55

6-
The GenAI IDP solution provides AgentCore integration that enables external applications to access IDP functionality through AWS Bedrock AgentCore Gateway using the Model Context Protocol (MCP). This allows third-party applications to query processed document data and perform analytics operations through natural language interfaces.
6+
The GenAI IDP solution provides MCP (Model Context Protocol) integration that enables external applications like Amazon Quick Suite to access IDP functionality through AWS Bedrock AgentCore Gateway. This allows third-party applications to query processed document data and perform analytics operations through natural language interfaces.
77

88
## Overview
99

10-
The AgentCore integration exposes IDP capabilities to external applications by:
10+
The MCP integration exposes IDP capabilities to external applications by:
1111

1212
- **Analytics Gateway**: Provides natural language access to processed document analytics data
1313
- **Secure Authentication**: Uses AWS Cognito OAuth 2.0 for secure external application access
@@ -34,16 +34,16 @@ External App → Cognito Auth → AgentCore Gateway → Analytics Lambda → IDP
3434

3535
### During Stack Deployment
3636

37-
The AgentCore integration is controlled by the `EnableAgentCore` parameter:
37+
The MCP integration is controlled by the `EnableMCP` parameter:
3838

39-
**Enable AgentCore Integration:**
39+
**Enable MCP Integration:**
4040
```yaml
41-
EnableAgentCore: 'true' # Default value
41+
EnableMCP: 'true' # Default value
4242
```
4343
44-
**Disable AgentCore Integration:**
44+
**Disable MCP Integration:**
4545
```yaml
46-
EnableAgentCore: 'false'
46+
EnableMCP: 'false'
4747
```
4848
4949
When enabled, the stack automatically creates:
@@ -128,7 +128,7 @@ The IDP solution creates a Cognito User Pool with:
128128

129129
### External App Client
130130

131-
When AgentCore is enabled, an additional Cognito User Pool Client is created:
131+
When MCP is enabled, an additional Cognito User Pool Client is created:
132132

133133
**Client Configuration:**
134134
- **Client Name**: "External-App-Client"
@@ -169,7 +169,7 @@ curl -X POST <ExternalAppTokenURL> \
169169

170170
## Output Parameters
171171

172-
When AgentCore integration is enabled, the CloudFormation stack provides the following outputs required for external application integration:
172+
When MCP integration is enabled, the CloudFormation stack provides the following outputs required for external application integration:
173173

174174
### AgentCore Gateway Outputs
175175

@@ -238,7 +238,7 @@ query_request = {
238238
"params": {
239239
"name": "search_genaiidp",
240240
"arguments": {
241-
"query": "How many documents have been processed in total?"
241+
"query": "How many documents were processed this week?"
242242
}
243243
}
244244
}
@@ -253,90 +253,9 @@ response = requests.post(
253253
)
254254
255255
result = response.json()
256-
print(f"Analytics result: {result}")
256+
print(f"Query result: {result}")
257257
```
258258

259-
### Additional Query Examples
259+
### Amazon Quick Suite Integration
260260

261-
External applications can send various natural language queries:
262-
263-
```python
264-
# Document processing trends
265-
trend_query = {
266-
"method": "tools/call",
267-
"params": {
268-
"name": "search_genaiidp",
269-
"arguments": {
270-
"query": "Show me document processing trends by month for the last 6 months"
271-
}
272-
}
273-
}
274-
275-
# Document type analysis
276-
type_query = {
277-
"method": "tools/call",
278-
"params": {
279-
"name": "search_genaiidp",
280-
"arguments": {
281-
"query": "What are the top 5 most common document types and their processing success rates?"
282-
}
283-
}
284-
}
285-
286-
for query in [trend_query, type_query]:
287-
response = requests.post(GATEWAY_URL, headers={"Authorization": f"Bearer {access_token}", "Content-Type": "application/json"}, json=query)
288-
print(response.json())al language
289-
query_request = {
290-
"method": "tools/call",
291-
"params": {
292-
"name": "search_genaiidp",
293-
"arguments": {
294-
"query": "How many documents have been processed in total?"
295-
}
296-
}
297-
}
298-
299-
response = requests.post(
300-
GATEWAY_URL,
301-
headers={
302-
"Authorization": f"Bearer {access_token}",
303-
"Content-Type": "application/json"
304-
},
305-
json=query_request
306-
)
307-
308-
result = response.json()
309-
print(f"Analytics result: {result}")
310-
```
311-
312-
### Additional Query Examples
313-
314-
External applications can send various natural language queries:
315-
316-
```python
317-
# Document processing trends
318-
trend_query = {
319-
"method": "tools/call",
320-
"params": {
321-
"name": "search_genaiidp",
322-
"arguments": {
323-
"query": "Show me document processing trends by month for the last 6 months"
324-
}
325-
}
326-
}
327-
328-
# Document type analysis
329-
type_query = {
330-
"method": "tools/call",
331-
"params": {
332-
"name": "search_genaiidp",
333-
"arguments": {
334-
"query": "What are the top 5 most common document types and their processing success rates?"
335-
}
336-
}
337-
}
338-
339-
for query in [trend_query, type_query]:
340-
response = requests.post(GATEWAY_URL, headers=headers, json=query)
341-
print(response.json())
342-
```
261+
For Amazon Quick Suite integration, use the provided OAuth callback URLs and configure QuickSight to authenticate against the Cognito User Pool using the External App Client credentials.

0 commit comments

Comments
 (0)