Introduction
I've already posted on the MCP Gateway basics, now for a bit more detail. In this post I will cover the creation of a couple of gateways. I will also look at gateway monitoring.
The following project is the starting point -
I will have 2 sets of agent clients - internal and external; therefore I will create 2 gateways.
The 3 integrations have already been exposed as tools -
I have already exposed the OIC project as an MCP server and I have created an entry for it -
For a start, I want to give the internal gateway access to all 3 tools, whereas the external gateway should only grant access to the RetrieveSRDetails tool.
Security Policies
I connect to the internal gateway and see the tools on offer -
"content": [
{
"type": "text",
"text": "{\n \"SrId\" : \"300000343241181\",\n \"SrNumber\" : \"SR314477\",\n \"Title\" : \"Fit1000 broken\",\n
\"ProblemDescription\" : \"Our cross trainer just stopped working.
\",\n \"Severity\" : \"High\",\n
\"Assignee\" : \"Claudia Monet\",\n
\"AssigneeEmailAddress\" : \"claudia.monet_etaj-dev25@oraclepdemos.com\"\n}"
}
],
I run the createExternalSR tool - note, I set the country field to Ireland
"content": [
{
"type": "text",
"text": "Tool 'SERVICE_REQUESTS_MCP_SERVER__CREATEEXTERNALSR'
is not allowed by policy 'business'.
reason: Customers from Ireland are not allowed."
}
],
Looks good, the policies are being applied.
Now to the external gateway -
"content": [
{
"type": "text",
"text": "{\"SrId\":\"300000343241181\",\"SrNumber\":\"SR314477\",\"Title\":
\"Fit1000 broken\",\"ProblemDescription\":\
"Our cross trainer just stopped working. \",\"Severity\":\"High\",
\"Assignee\":\"Claudia Monet\",
\"AssigneeEmailAddress\":\"*****************************************\"}"
}
],
Gateway Monitoring
Also note the instance ids. These are NOT the instance ids of the integrations which are eventually invoked -
The MCP Gateway has been introduced in the 26.10 release of OIC, so please consider this as the first iteration of the product; later releases will naturally build on this, so watch this space!

No comments:
Post a Comment