Skip to main content

Check out Port for yourselfย 

Set up the Service Explorer AI agent

This guide demonstrates how to set up a "Service Explorer" AI agent in Port with enhanced capabilities powered by MCP. This agent helps developers discover services, understand ownership, and access documentation for quick onboarding.

With the MCP backend server, the Service Explorer becomes even more powerful:

  • It can auto-discover all blueprints, entities, and actions in your service catalog.
  • It provides transparency and visibility into what the AI agent is doing behind the scenes.
  • It reduces manual configuration, since blueprint access is automatically managed.

By the end of this guide, your developers will be able to get information about your services via Port's AI chat.

Common use casesโ€‹

  • Quick service discovery for new developers.
  • Understanding service ownership and team responsibilities.
  • Accessing service documentation and READMEs.
  • Checking service compliance and production readiness.
  • Finding the right team to contact about a service.

Prerequisitesโ€‹

This guide assumes you have:

Set up data modelโ€‹

To create a Service Explorer AI agent in Port, we'll need to configure two main components as described in our Build an AI agent guide:

  • The data sources it will use to answer questions.
  • The agent configuration that defines its capabilities and conversation starters.

Create the agent configurationโ€‹

  1. Go to the AI Agents page of your portal.

  2. Click on + AI Agent.

  3. Toggle Json mode on.

  4. Copy and paste the following JSON schema:

    Service Explorer agent configuration (Click to expand)
    {
    "identifier": "service_ownership_onboarding",
    "title": "Service Explorer",
    "icon": "Service",
    "properties": {
    "description": "Helps developers discover services, understand ownership, and access documentation for quick onboarding",
    "status": "active",
    "prompt": "You are an agent responsible for helping developers understand the service landscape, ownership, and onboarding information.\n\n### Guidelines\n- Provide clear information about service ownership (teams and individuals)\n- Explain what services do based on their README and description\n- Identify service dependencies and relationships\n- Share service quality metrics and scorecard compliance\n- Help new developers understand which team owns which services\n- When asked about a service, always include: owner, team, description, and key technical details\n- If a service has a README, prioritize information from there\n- Mention service tier/criticality when relevant",
    "execution_mode": "Approval Required",
    "conversation_starters": [
    "Who owns the oauth service?",
    "What is the payments service about?",
    "Which services does the platform team own?",
    "Show me all services that don't have a README",
    "Which services are failing their production readiness scorecard?"
    ],
    "tools": [
    "^(list|get|search|track|describe)_.*"
    ]
    }
    }
    MCP Enhanced Capabilities

    The AI agent uses MCP (Model Context Protocol) enhanced capabilities to automatically discover important and relevant blueprint entities via its tools. The ^(list|get|search|track|describe)_.* pattern allows the agent to access and analyze related entities across your entire software catalog, including services, repositories, teams, users, incidents, deployments, monitoring data, and more. This automatic discovery means you don't need to manually configure which blueprints the agent can access - it intelligently finds and uses relevant data to answer questions about your services.

  5. Click on Create to save the agent.

Interact with the Service Explorerโ€‹

You can interact with the Service Explorer AI agent in several ways. This guide will demonstrate the two main ways.

The Service Explorer AI agent can be accessed through an AI Agent widget in your Port dashboard. Follow the steps below to set it up:

  1. Go to the homepage of your portal.

  2. Click on + Widget.

  3. Choose AI agent.

  4. Type Service Explorer for Title.

  5. Select Service Explorer from the Agent dropdown.

  6. Click on Save.

Once the widget is set up, you can ask questions directly in the chat field.

Example questionsโ€‹

Here are some questions you can ask the Service Explorer agent:

  • "Who owns the oauth service?"
  • "What is the payments service about?"
  • "Which services does the platform team own?"
  • "Show me all tier 1 services"
  • "Which services don't have a README?"
  • "What services is John Smith responsible for?"
  • "Show me all services with active incidents"
  • "Which services are failing their production readiness scorecard?"

Possible enhancementsโ€‹

You can further enhance the Service Explorer setup by:

  • Enrich your catalog: Add more integrations (PagerDuty, Kubernetes, monitoring tools) to your Port catalog. The agent will automatically discover and use this data thanks to the MCP tools pattern.
  • Custom metadata: Add organization-specific properties to the service blueprint for richer answers that reflect your team's needs.
  • Refine the prompt: Customize the agent's prompt to emphasize specific aspects of service ownership or documentation standards unique to your organization.
  • Monitor interactions: Check the AI interaction details to see how developers are using the agent and improve it based on their questions and feedback.