> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Set up the Service Explorer AI agent

Implement with AI

Send this guide to your coding agent.

Prerequisite: Install Port MCP

Open plan mode if your tool supports it; otherwise present the plan below filled in and wait for my approval. Implement this Port guide in my org via MCP:

https://docs.port.io/guides/all/setup-service-explorer-ai-agent

Read the raw markdown version at https://docs.port.io/guides/all/setup-service-explorer-ai-agent.md - it contains every tab and code block without page markup.

Goal: get the guide's core flow working end-to-end in my org; adapting it to fit my existing setup takes priority over matching the guide 1:1.

Plan:
1. Confirm MCP is connected, in the right org, with sufficient permissions.
2. If the guide offers alternative implementation paths (tabs), pick the one matching my installed integrations and tools, confirm it with me, and implement only that path.
3. Diff the guide's data model (blueprints, properties, relations, workflows, actions, agents, automations, integrations, webhook data sources, secrets) against mine.
4. Propose adaptations for gaps, reusing existing blueprints/relations over guide-named duplicates.
5. Flag what needs a UI click, credential, or secret from me, testing MCP capability empirically before ruling anything out. If the guide has a "Set up via API" section, use it for anything MCP can't do before treating a step as UI-only.
6. Stop on any blocker and give me options. Approving this plan authorizes the writes it lists; pause only for writes beyond what's listed.

Build:
- Extend blueprint schema additively when upserting; don't remove or overwrite existing properties, and treat type conflicts as a blocker, not an auto-fix.
- Never print secret values into the chat or logs; ask me to set them in Port, or write them via the secrets API without echoing them back.
- List any mock data in the plan, minimal and labeled mock; once approved, seed it without re-asking, and tell me what you seeded.
- For anything the guide writes downstream (e.g. a webhook target), use a real entity, not a mock.
- For pages/widgets, use the real page identifier from the app URL, not a guessed slug.
- When you hit a UI step confirmed (not assumed) unsupported via MCP and not covered by the guide's API sections, pause, give exact clicks, then resume via MCP.
- Validate and give links after each meaningful step (only a tool-returned URL, no guessed paths); don't proceed if the last run wasn't a success.

Done:
- Run the guide's "Let's test it" steps where possible (e.g. execute a workflow test run) and confirm the expected output exists in Port.
- Summarize adaptations, seeded data, what was mocked or skipped, remaining UI steps, and how to verify.

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.

Service Explorer Agent chat query results Service Explorer listing services missing READMEs

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 in Port.

  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|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|search|track|describe)_.* pattern allows the agent to access and analyze related entities across your entire context lake, 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 in Port.

  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.

Service Explorer AI agent widget on homepage

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.