Skip to content

Commit 5a99603

Browse files
committed
Merge branch 'PORT-incident-response-agent' of https://github.com/port-labs/port-docs into PORT-incident-response-agent
2 parents 1c05ef9 + 4f11f2f commit 5a99603

39 files changed

+1462
-234
lines changed

docs/ai-interfaces/port-mcp-server/overview-and-installation.md

Lines changed: 7 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Overview & Installation
55

66
import Tabs from "@theme/Tabs"
77
import TabItem from "@theme/TabItem"
8+
import MCPInstallation from '/docs/generalTemplates/_mcp-installation.md'
89

910
# Port MCP server
1011

@@ -75,7 +76,7 @@ Effortlessly query your software catalog and get immediate answers. This elimina
7576
* Ask: "Show me all the microservices owned by the Backend team."
7677
* Ask: "What are the dependencies of the 'OrderProcessing' service?"
7778

78-
![Querying the service catalog from an IDE](/img/ai-agents/MCPCopilotAskServices.png)
79+
<img src="/img/ai-agents/MCPCopilotAskServices.png" width="100%" border="1px" />
7980

8081
### Vibe-build in Port
8182

@@ -86,7 +87,7 @@ Leverage Claude's capabilities to manage and build your entire Port software cat
8687
* Ask: "I want a new production readiness scorecard to track the code quality and service alerts"
8788
* Ask: "Create a new self-service action in Port to scaffold a new service"
8889

89-
![Claude building a self-service action](/img/ai-agents/MCPClaudeBuildSSA.png)
90+
<img src="/img/ai-agents/MCPClaudeBuildSSA.png" width="100%" border="1px" />
9091

9192
### Analyze scorecards and quality
9293

@@ -96,11 +97,11 @@ Gain insights into service health, compliance, and quality by leveraging Port's
9697
* Ask: "What's preventing the 'InventoryService' from reaching Gold level in the 'Production Readiness' scorecard?"
9798
* Ask: "Show me the bug count vs. test coverage for all Java microservices."
9899

99-
![Asking about bug counts and test coverage correlation](/img/ai-agents/MCPClaudeInsightsBugs.png)
100+
<img src="/img/ai-agents/MCPClaudeInsightsBugs.png" width="100%" border="1px" />
100101

101102
* Ask: "Which of our services are missing critical monitoring dashboards?"
102103

103-
![Identifying services lacking proper monitoring](/img/ai-agents/MCPClaudeMonitoringServices.png)
104+
<img src="/img/ai-agents/MCPClaudeMonitoringServices.png" width="100%" border="1px" />
104105

105106
### Streamline development and operations
106107

@@ -110,203 +111,13 @@ Receive assistance with common development and operational tasks, directly withi
110111
* Ask: "Guide me through creating a new component blueprint with 'name', 'description', and 'owner' properties."
111112
* Ask: "Help me add a rule to the 'Tier1Services' scorecard that requires an on-call schedule to be defined."
112113

113-
![Getting instructions for new service setup](/img/ai-agents/MCPClaudeServiceSetup.png)
114+
<img src="/img/ai-agents/MCPClaudeServiceSetup.png" width="100%" border="1px" />
114115

115116
### Find your own use cases
116117

117118
You can use Port's MCP to find the use cases that will be valuable to you. Try using this prompt: "think of creative prompts I can use to showcase the power of Port's MCP, based on the data available in Port"
118119

119-
120-
## Installing Port MCP
121-
122-
Installing Port's MCP is simple. Follow the instructions for your preferred tool, or learn about the archived local MCP server.
123-
124-
<Tabs groupId="mcp-setup" queryString>
125-
<TabItem value="cursor" label="Cursor">
126-
To connect Cursor to Port's remote MCP, follow these steps:
127-
128-
1. **Go to Cursor settings, click on Tools & Integrations, and add a new MCP server**
129-
130-
![Go to Cursor Settings](/img/ai-agents/MCPInstallCursorStep1.png)
131-
132-
2. **Add the above configuration**
133-
134-
Use the appropriate configuration for your region:
135-
136-
<Tabs>
137-
<TabItem value="eu" label="EU">
138-
```json showLineNumbers
139-
{
140-
"mcpServers": {
141-
"port-eu": {
142-
"url": "https://mcp.port.io/v1"
143-
}
144-
}
145-
}
146-
```
147-
</TabItem>
148-
<TabItem value="us" label="US">
149-
```json showLineNumbers
150-
{
151-
"mcpServers": {
152-
"port-us": {
153-
"url": "https://mcp.us.port.io/v1"
154-
}
155-
}
156-
}
157-
```
158-
</TabItem>
159-
</Tabs>
160-
161-
![Add configuration](/img/ai-agents/MCPInstallCursorStep2.png)
162-
163-
3. **Login to Port**
164-
Click on "Needs login", and complete the authentication flow in the window that opens up.
165-
![Login to Port](/img/ai-agents/MCPInstallCursorStep3.png)
166-
167-
4. **See the MCP tools**
168-
After successfully connecting to Port, you'll see the list of available tools from the MCP.
169-
![See tools](/img/ai-agents/MCPInstallCursorStep4.png)
170-
171-
:::warning Authentication window behavior
172-
In some cases, after clicking "Accept" in the authentication popup, the window won't get closed but the connection is established successfully. You can safely close the window.
173-
174-
If you still don't see the tool, try it a couple of times. We are aware of this behavior and working to improve it.
175-
:::
176-
177-
</TabItem>
178-
<TabItem value="vscode" label="VSCode">
179-
To connect VSCode to Port's remote MCP server, follow these detailed steps. For complete instructions, refer to the [official VS Code MCP documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
180-
181-
:::info VSCode MCP requirements
182-
Before proceeding, ensure your VS Code is updated to the latest version and that MCP is enabled for your GitHub organization. You may need to enable "Editor preview features" under Settings > Code, planning, and automation > Copilot via admin access from your organization.
183-
:::
184-
185-
:::tip Prerequisites
186-
This configuration uses the open-source `mcp-remote` package, which requires Node.js to be installed on your system. Before using the configuration, ensure Node.js is available by running:
187-
188-
```bash
189-
npx -y mcp-remote --help
190-
```
191-
192-
If you encounter errors:
193-
- **Missing Node.js**: Install Node.js from [nodejs.org](https://nodejs.org/)
194-
- **Network issues**: Check your internet connection and proxy settings
195-
- **Permission issues**: You may need to run with appropriate permissions
196-
:::
197-
198-
:::warning VSCode action tool issue
199-
In some versions of VS Code, the MCP server might not start or return an error in the chat because of a configuration issue with the action related tools. To deal with it, [deselect](./available-tools#select-which-tools-to-use) the tools `create_action`, `update_action`, and `delete_action`.
200-
This is relevant for cases where you see an error like this one:
201-
```
202-
Failed to validate tool mcp_port_create_action: Error: tool parameters array type must have items. Please open a Github issue for the MCP server or extension which provides this tool
203-
```
204-
:::
205-
206-
**Step 1: Configure MCP Server Settings**
207-
208-
1. Open VS Code settings
209-
2. Search for "MCP: Open user configuration" (or follow the instructions on a workspace installation)
210-
3. Add the server configuration using the appropriate configuration for your region:
211-
212-
<Tabs>
213-
<TabItem value="eu" label="EU">
214-
```json showLineNumbers
215-
{
216-
"mcpServers": {
217-
"port-vscode-eu": {
218-
"command": "npx",
219-
"args": [
220-
"-y",
221-
"mcp-remote",
222-
"https://mcp.port.io/v1"
223-
]
224-
}
225-
}
226-
}
227-
```
228-
</TabItem>
229-
<TabItem value="us" label="US">
230-
```json showLineNumbers
231-
{
232-
"mcpServers": {
233-
"port-vscode-us": {
234-
"command": "npx",
235-
"args": [
236-
"-y",
237-
"mcp-remote",
238-
"https://mcp.us.port.io/v1"
239-
]
240-
}
241-
}
242-
}
243-
```
244-
</TabItem>
245-
</Tabs>
246-
247-
**Step 2: Start the MCP Server**
248-
249-
1. After adding the configuration, click on "Start" to initialize the MCP server
250-
2. If you don't see the "Start" button, ensure:
251-
- Your VS Code version is updated to the latest version
252-
- MCP is enabled for your GitHub organization
253-
- "Editor preview features" is enabled under Settings > Code, planning, and automation > Copilot
254-
255-
**Step 3: Verify Connection**
256-
257-
1. Once started, you should see the number of available tools displayed
258-
2. If you don't see the tools count:
259-
- Click on "More" to expand additional options
260-
- Select "Show output" to view detailed logs
261-
- Check the output panel for any error messages or connection issues
262-
263-
**Step 4: Access Port Tools**
264-
265-
1. Start a new chat session in VS Code
266-
2. Click on the tools icon in the chat interface
267-
3. You should now see Port tools available for use
268-
269-
![VS Code MCP Setup](/img/ai-agents/MCPVSCodeSetup.gif)
270-
271-
</TabItem>
272-
<TabItem value="claude" label="Claude">
273-
To connect Claude to Port's remote MCP, you need to create a custom connector. This process does not require a client ID. For detailed instructions, refer to the [official Anthropic documentation on custom connectors](https://support.anthropic.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp).
274-
275-
When prompted for the remote MCP server URL, use the appropriate URL for your region:
276-
277-
<Tabs>
278-
<TabItem value="eu" label="EU">
279-
```
280-
https://mcp.port.io/v1
281-
```
282-
</TabItem>
283-
<TabItem value="us" label="US">
284-
```
285-
https://mcp.us.port.io/v1
286-
```
287-
</TabItem>
288-
</Tabs>
289-
</TabItem>
290-
<TabItem value="local-mcp" label="Local MCP">
291-
The local MCP server is an open-source project that you can run on your own infrastructure. It offers a similar set of capabilities, but requires manual setup and maintenance.
292-
293-
While you can use it, we are no longer supporting it and are not tracking the project issues and activities.
294-
295-
<h2>Prerequisites</h2>
296-
297-
- A Port.io account with appropriate permissions.
298-
- Your Port credentials (Client ID and Client Secret). You can create these from your Port.io dashboard under Settings > Credentials.
299-
300-
<h2>Installation</h2>
301-
302-
The Port MCP Server can be installed using Docker or `uvx` (a package manager for Python). While the setup is straightforward, the specifics can vary based on your chosen MCP client (Claude, Cursor, VS Code, etc.).
303-
304-
:::info Detailed Installation Guide
305-
For comprehensive, step-by-step installation instructions for various platforms and methods (Docker, UVX), please refer to the **[Port MCP Server GitHub README](https://github.com/port-labs/port-mcp-server)**.
306-
The README provides the latest configuration details and examples for different setups.
307-
:::
308-
</TabItem>
309-
</Tabs>
120+
<MCPInstallation />
310121

311122
## Token-based authentication
312123

docs/build-your-software-catalog/sync-data-to-catalog/cloud-providers/azure/resource_templates/advanced.md

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,25 @@ import WebAppBlueprint from './compute_resources/\_web_app_blueprint.mdx'
1818
import DatabaseAppConfig from './database_resources/\_port_app_config.mdx'
1919
import PostgresFlexibleServerBlueprint from './database_resources/\_postgres_flexible_server_blueprint.mdx'
2020

21+
import ServiceBusNamespaceBlueprint from './service_bus/\_service_bus_namespace_blueprint.mdx'
22+
import ServiceBusQueueBlueprint from './service_bus/\_service_bus_queue_blueprint.mdx'
23+
import ServiceBusTopicBlueprint from './service_bus/\_service_bus_topic_blueprint.mdx'
24+
import ServiceBusSubscriptionBlueprint from './service_bus/\_service_bus_subscription_blueprint.mdx'
25+
import ServiceBusAppConfig from './service_bus/\_port_app_config.mdx'
2126

22-
## Mapping Storage Resources
27+
import ApplicationInsightsBlueprint from './application_insights/\_blueprint.mdx'
28+
import ApplicationInsightsAppConfig from './application_insights/\_port_app_config.mdx'
29+
30+
import KeyVaultBlueprint from './key_vault/\_blueprint.mdx'
31+
import KeyVaultAppConfig from './key_vault/\_port_app_config.mdx'
32+
33+
34+
## Mapping storage resources
2335

2436
The following example demonstrates how to ingest your Azure Storage Accounts and Containers to Port.
2537
You can use the following Port blueprint definitions and integration configuration:
2638

27-
:::note
39+
:::note Resource group requirement
2840
The Storage Account has a relation to the Resource Group, so creation of the [Resource Group blueprint](#mapping-resource-groups) is required.
2941
:::
3042

@@ -39,12 +51,12 @@ Here are the API references we used to create those blueprints and app config:
3951
- [Storage Account](https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/list)
4052
- [Storage Container](https://learn.microsoft.com/en-us/rest/api/storagerp/blob-containers/list?tabs=HTTP)
4153

42-
## Mapping Compute Resources
54+
## Mapping compute resources
4355

4456
The following example demonstrates how to ingest your Azure Resources to Port.
4557
You can use the following Port blueprint definitions and integration configuration:
4658

47-
:::note
59+
:::note Resource group requirement
4860
The Resources below have a relation to the Resource Group, so creation of the [Resource Group blueprint](#mapping-resource-groups) is required.
4961
:::
5062

@@ -68,12 +80,12 @@ Here are the API references we used to create those blueprints and app config:
6880
- [Virtual Machine](https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/list-all?tabs=HTTP)
6981
- [Web App](https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/list)
7082

71-
## Mapping Database Resources
83+
## Mapping database resources
7284

7385
The following example demonstrates how to ingest your Azure Database Resources to Port.
7486
You can use the following Port blueprint definitions and integration configuration:
7587

76-
:::note
88+
:::note Resource group requirement
7789
The Database Resources below have a relation to the Resource Group, so creation of the [Resource Group blueprint](#mapping-resource-groups) is required.
7890
:::
7991

@@ -85,6 +97,66 @@ Here are the API references we used to create those blueprints and app config:
8597

8698
- [Postgres Flexible Server](https://docs.microsoft.com/en-us/rest/api/azure-postgresql/flexibleservers)
8799

100+
## Mapping service bus resources
101+
102+
The following example demonstrates how to ingest your Azure Service Bus resources (Namespaces, Queues, Topics, and Subscriptions) to Port.
103+
You can use the following Port blueprint definitions and integration configuration:
104+
105+
:::note Hierarchical relationships
106+
The Service Bus resources have a hierarchical relationship. The Namespace relates to the Resource Group, Queues and Topics relate to the Namespace, and Subscriptions relate to Topics. Creation of the [Resource Group blueprint](#mapping-resource-groups) is required.
107+
:::
108+
109+
<ServiceBusNamespaceBlueprint/>
110+
111+
<ServiceBusQueueBlueprint/>
112+
113+
<ServiceBusTopicBlueprint/>
114+
115+
<ServiceBusSubscriptionBlueprint/>
116+
117+
<ServiceBusAppConfig/>
118+
119+
Here are the API references we used to create those blueprints and app config:
120+
121+
- [Service Bus Namespace](https://learn.microsoft.com/en-us/rest/api/servicebus/stable/namespaces/list-by-subscription)
122+
- [Service Bus Queue](https://learn.microsoft.com/en-us/rest/api/servicebus/stable/queues/list-by-namespace)
123+
- [Service Bus Topic](https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics/list-by-namespace)
124+
- [Service Bus Subscription](https://learn.microsoft.com/en-us/rest/api/servicebus/stable/subscriptions/list-by-topic)
125+
126+
## Mapping application insights
127+
128+
The following example demonstrates how to ingest your Azure Application Insights components to Port.
129+
You can use the following Port blueprint definitions and integration configuration:
130+
131+
:::note Resource group requirement
132+
Application Insights has a relation to the Resource Group, so creation of the [Resource Group blueprint](#mapping-resource-groups) is required.
133+
:::
134+
135+
<ApplicationInsightsBlueprint/>
136+
137+
<ApplicationInsightsAppConfig/>
138+
139+
Here are the API references we used to create those blueprints and app config:
140+
141+
- [Application Insights](https://learn.microsoft.com/en-us/rest/api/application-insights/components/list)
142+
143+
## Mapping key vault
144+
145+
The following example demonstrates how to ingest your Azure Key Vaults to Port.
146+
You can use the following Port blueprint definitions and integration configuration:
147+
148+
:::note Resource group requirement
149+
Key Vault has a relation to the Resource Group, so creation of the [Resource Group blueprint](#mapping-resource-groups) is required.
150+
:::
151+
152+
<KeyVaultBlueprint/>
153+
154+
<KeyVaultAppConfig/>
155+
156+
Here are the API references we used to create those blueprints and app config:
157+
158+
- [Key Vault](https://learn.microsoft.com/en-us/rest/api/keyvault/vaults/list-by-subscription)
159+
88160
:::info Mapping extra resources
89161
The resources in this page are only few of the resources that the Azure Exporter supports.
90162
If you don't find the Azure resource you want to map to Port head to the [Mapping Extra Resources](/build-your-software-catalog/sync-data-to-catalog/cloud-providers/azure/resource_templates/mapping_extra_resources.md) page to learn about what kind of azure resources are supported by the Azure integration and how to map them into Port.

0 commit comments

Comments
 (0)