Building workflow integrations with Service MCP and Connect MCP
2 Tasks
40 mins
Scenario
After vendor approval, Metro Delivery Company(MDC) must provision the vendor for operational onboarding and create the documentation required to begin business operations. Today, onboarding teams manage these activities manually through separate systems and email-based processes. As a result, onboarding artifacts are not consistent, and teams have limited visibility into onboarding progress.
MDC wants to standardize this process by automating and exposing onboarding services through a Model Context Protocol(MCP) server. The vendor enrollment workflow can then invoke these services after approvals to initiate the vendor activation activities.
As a Lead System Architect (LSA), your task is to implement a technical proof of concept that:
- Exposes Vendor Activation capability through a Service MCP implementation
- Invokes the capability from the Vendor enrollment workflow using a Connect MCP
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Application Developer | admin@deliveryservice | rules |
Detailed Tasks
1 Expose vendor activation as Service MCP
- In the Pega Platform™ instance for the challenge, enter the following credentials:
- In the User name field, enter admin@deliveryservice.
- In the Password field, enter rules.
- In the header of Pega Infinity Studio™, switch to the Compliance application.
- Add a new Ruleset version in the ComplianceMgmt Ruleset.
- In the navigation pane of Pega Infinity Studio, click App > RECORDS .
- Click Integration-Services > Service MCP and click Create.
- In the Label field, enter Vendor activation, and then click Create and open.
- On the Definition tab, select the Enable MCP Service for Compliance checkbox.
- Copy the generated Service endpoint URL into a notepad. You use this URL to configure the Connect MCP integration.
- On the CASE TYPES tab, click Add under Tool section and then select VendorActivation as the Case Type.
- Save the Service MCP Rule.
- In the Records explorer, click Security > OAuth 2.0 Client Registration.
- In the list of instances, open the PegaApp_ComplianceMgmt record.
- In the Client Credentials section, click Regenerate client secret, and then in the dialog box, click Regenerate.
- Click View & Download to save the file and then close the dialog box.
- In the PegaApp_ComplianceMgmt Rule, click Save.
2 Configure Connect MCP in Vendor Enrollment Case
- Switch to the Truck Service application.
- Create a new version in the TruckService Ruleset.
- In the Records Explorer, click Security > Authentication Profile, and then click Create.
- In the Type list, select OAuth 2.0.
- In the Name field, enter VendorComplianceAuthProfile, in the Short description field enter a short description, and then click Create and open.
- On the Client configuration landing page, select Client credentials in the Grant type list.
- Enter the client identifier, client secret, access token endpoint, and revoke token endpoint by using the information you downloaded in step 14 of the previous task.
- In the Advanced configuration section, in the Lowest allowable SSL/TLS version field, enter or select TLS version 1.2.
- Save the Authentication Profile Rule.
- In the Records explorer, click Integration-Connectors > Connect MCP and then click Create.
- Configure the fields as follows:
- Enter Vendor activation in the Label field.
- Enter MDC-TS-Work-VendorEnrollment in the Apply to field.
- Then, click Create and open.
- On the SERVICE tab, configure the following settings:
- Select Streamable HTTP in the Transport type.
- Select Provide URL in the URL Configuration section and then enter the Service endpoint URL copied in step 8 of the previous task.
- In the Authentication section select Use Authentication profile and choose VendorComplianceAuthProfile from the Authentication profile list.
- Enter an appropriate Description in the HISTORY tab.
- Save the Connect MCP Rule.
- Click Test Connectivity to ensure successful connection to the Service MCP exposed in Compliance application and to view the list of available Tools.
- In the navigation pane of Pega Infinity Studio, click Case Types > Vendor Enrollment.
- Add an Automation Step in the Resolve Stage and then select MCP Connect.
- Complete the Step configuration as given below:
- Select VendorActivation in the Connect MCP Name field.
- Select Create_Vendor_Activation_Case as the Tool Name.
- Set the StartingFieds parameter as .FreightVendor.OrganizationName.
- Set Output_message parameter as .VendorActivationResponse.
- Save the Case Type.
- Extract and map the Service MCP response by following the below steps:
- Open the newly created Resolve Flow which got created and configure the Connector leading to End shape with MapVendorActivationCaseID Data Transform in Set Properties section.
- Set the jsonData parameter as .VendorActivationResponse and the executionMode parameter as DESERIALIZE.
- Save the Flow Rule.
- Navigate back to the Vendor Enrollment Case and click Actions > Refresh.
- On the UX tab, on the Full Page View tab, click Add under the Tabs section and name the tab as Vendor activation.
- Open the View and add Vendor activation case and Vendor activation response fields and click Save.
Available in the following mission:
Want to help us improve this content?