Skip to content

Commit e17ae42

Browse files
committed
Merge branch 'feature/mcp-server' into develop
2 parents 15d8cd9 + bd86788 commit e17ae42

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/mcp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A typical agent-driven test loop:
1313
!!! note "Off by default"
1414
The MCP server is disabled unless you explicitly enable it. The service logs its status at startup either way:
1515

16-
```
16+
```text
1717
[INF] MCP server is enabled -- serving MCP endpoint at /mcp
1818
[INF] MCP server is disabled (set EnableMcpServer to true to enable)
1919
```
@@ -44,11 +44,11 @@ Set `EnableMcpServer` to `true` using any of the service's [configuration layers
4444

4545
Restart the service after changing it. When enabled, the endpoint is served at:
4646

47-
```
47+
```text
4848
http://localhost:8080/mcp
4949
```
5050

51-
(Streamable HTTP transport; the path respects `HttpPathPrefix` if configured.) The web UI shows an **MCP** badge in the navigation bar when the server is on — hover it for the endpoint URL, click to copy. The URL is also available programmatically at `GET /api/mcp`.
51+
(Streamable HTTP transport; the path respects `HttpPathPrefix` if configured.) The web UI shows an **MCP** badge in the navigation bar when the server is on — hover it for the endpoint URL, click to copy. The URL is also available programmatically at `GET /api/mcp`, which — like all API routes — is relative to the service base URL including any `HttpPathPrefix`, and returns the full endpoint URL with the prefix applied.
5252

5353
## Connecting a client
5454

src/Papercut.Service/PapercutServiceStartup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void Configure(WebApplication app)
119119
{
120120
Log.Information(
121121
"MCP server is enabled -- serving MCP endpoint at {McpEndpointPath}",
122-
McpServerSettings.EndpointPath);
122+
$"{pathPrefix}{McpServerSettings.EndpointPath}");
123123
}
124124
else
125125
{

0 commit comments

Comments
 (0)