Skip to content

Commit 670a374

Browse files
authored
Merge branch 'main' into update-gitlab-v2-example
2 parents c252ff2 + f9487d1 commit 670a374

File tree

66 files changed

+6894
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+6894
-273
lines changed

best_practices.md

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Port documentation style guide
22

3+
___
4+
5+
**Header capitalization rules:** Use sentence case for headers with only the first word capitalized.
6+
7+
❌ "## Sync Approaches And Methods"
8+
✅ "## Sync approaches and methods"
9+
10+
Note: Well-known product names such as Lambda, Kubernetes, ArgoCD, etc. should follow their standard capitalization rules and styling.
11+
12+
❌ "aws"
13+
✅ "AWS"
14+
15+
___
16+
317
This document details guidelines for contributing to Port's documentation, and demonstrates how to correctly write and review documentation content.
418

519
<b>Pattern 1: Always standardize collapsible details with bold titles and "(click to expand)" for consistency and usability across docs.</b>
@@ -208,34 +222,6 @@ Example code after:
208222

209223
___
210224

211-
<b>Pattern 8: Use sentence case for headers with only the first word capitalized, and ensure links follow capitalization rules based on their position in the sentence.</b>
212-
213-
Example code before:
214-
215-
```
216-
## Sync Approaches And Methods
217-
218-
Check out our [Guide](docs/guide.md) for more information.
219-
```
220-
221-
Example code after:
222-
223-
```
224-
## Sync approaches and methods
225-
226-
Check out our [guide](docs/guide.md) for more information.
227-
```
228-
229-
Note: Well-known product names such as Lambda, Kubernetes, ArgoCD, etc. should follow their standard capitalization rules and styling.
230-
231-
<details><summary>Examples for relevant past discussions:</summary>
232-
233-
<!-- Add links to relevant PR discussions here -->
234-
235-
</details>
236-
237-
___
238-
239225
<b>Pattern 9: Use "We" language instead of commanding "You" language to create a collaborative, guiding tone rather than issuing commands.</b>
240226

241227
Example code before:
@@ -699,4 +685,4 @@ Before submitting your contribution, review it against this checklist:
699685
- [ ] Tone is consistent with Port's documentation style
700686
- [ ] Content is organized logically
701687
- [ ] Technical terms are explained or linked to definitions
702-
- [ ] No unnecessary jargon or marketing language
688+
- [ ] No unnecessary jargon or marketing language

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "API",
3-
"position": 1
3+
"position": 2
44
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"position": 1,
3+
"label": "Ocean custom integration",
4+
"collapsible": true,
5+
"collapsed": true
6+
}
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+

0 commit comments

Comments
 (0)