You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/design.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -333,6 +333,7 @@ When MCP server configurations don't explicitly specify a `type` field, the syst
333
333
"web-server": {
334
334
"url": "https://example.com/mcp"
335
335
// No type field → automatically inferred as "http"
336
+
// Hostname "example.com" will be displayed in SOURCE column
336
337
}
337
338
}
338
339
}
@@ -387,6 +388,58 @@ When MCP server configurations don't explicitly specify a `type` field, the syst
387
388
-**Intelligent Defaults**: Reasonable assumptions based on configuration patterns
388
389
-**Comprehensive Coverage**: Handles all common MCP server configuration scenarios
389
390
391
+
## URL Hostname Extraction
392
+
393
+
### Overview
394
+
The URL hostname extraction feature (Feature #80) improves the readability of MCP server configurations by displaying only the hostname portion for URL-based servers in the SOURCE column.
Copy file name to clipboardExpand all lines: docs/project.md
+41-1Lines changed: 41 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The tool works by scanning for known MCP configuration files associated with var
16
16
17
17
3.**Process Detection:** For each configured MCP server, the tool checks if it is currently running. It does this by executing system commands (`ps` on macOS and `powershell` on Windows) to get a list of all active processes. It then compares the command from the MCP configuration with the running processes to determine the server's status. The tool includes specific logic to handle common ways of running MCP servers, such as using `uvx` or `npx`.
18
18
19
-
4.**Output Rendering:** Finally, all the gathered information is displayed in a formatted table in the console. The table shows the server's status (running or stopped), name, source (the command used to start it), and transport protocol.
19
+
4.**Output Rendering:** Finally, all the gathered information is displayed in a formatted table in the console. The table shows the server's status (running or stopped), name, source (the command used to start it or hostname for URL-based servers), and transport protocol.
20
20
21
21
## Project Structure
22
22
@@ -67,6 +67,7 @@ This architecture ensures maintainability and clear separation of concerns betwe
67
67
-**Transport Handling**: Fixed transport counting by properly mapping `type` field to `transport` field at the data layer
68
68
-**Extended Transport Support**: Added support for `streamable-http` type, treating it as synonym for `http`
69
69
-**Transport Inference**: Implemented intelligent automatic detection of transport types when not explicitly specified
70
+
-**URL Hostname Extraction**: Implemented feature #80 to display only hostnames for URL-based MCP servers in the SOURCE column, improving readability
70
71
-**Directory Bubbling**: Implemented intelligent directory traversal for local MCP config files, providing better DX when running from nested project subdirectories
71
72
-**Test Isolation**: Fixed critical issue where tests were accessing real files outside the project directory
72
73
-**Type Safety**: Created comprehensive TypeScript types for all services
@@ -86,6 +87,45 @@ This architecture ensures maintainability and clear separation of concerns betwe
86
87
-**Linux Support**: Architecture supports adding Linux support in future iterations
87
88
-**Plugin System**: Extensible design for custom AI application definitions
88
89
90
+
## URL Hostname Extraction Feature
91
+
92
+
### Overview
93
+
The URL hostname extraction feature improves the readability of MCP server configurations by displaying only the hostname for URL-based servers instead of the full URL in the SOURCE column.
94
+
95
+
### How It Works
96
+
1.**URL Detection**: When an MCP server configuration contains a `url` field, the system automatically extracts the hostname portion
97
+
2.**Hostname Extraction**: Uses Node.js built-in `URL` constructor to parse URLs and extract the hostname
98
+
3.**Fallback Handling**: If URL parsing fails, the original string is displayed as a fallback
99
+
4.**Protocol Handling**: Automatically adds `http://` protocol if none is specified for proper parsing
0 commit comments