Skip to content

Commit 8810748

Browse files
author
fengjiayi
committed
fix: unify API and MCP port on 8188
1 parent be96e8f commit 8810748

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

docs/mcp-phase3-server-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Web API 与 MCP 必须共享同一 Application 服务、Storage options、数据
1616
## 入口
1717

1818
- Web 模式:`SereinFlow.Api` 同时提供普通 API 和 `/mcp`,开发地址为
19-
`http://127.0.0.1:5178/mcp`
19+
`http://127.0.0.1:8188/mcp`
2020
- stdio 模式:显式运行 `SereinFlow.Api --mcp-stdio`,只启用 MCP、Application、
2121
Storage 和 stdio 所需服务。
2222
- HTTP 和 stdio 使用同一个 `SereinFlowMcpBackend`

docs/mcp-readonly-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dotnet build src/SereinFlow.Api/SereinFlow.Api.csproj
2222
dotnet run --project src/SereinFlow.Api/SereinFlow.Api.csproj
2323
```
2424

25-
开发配置的 MCP 地址是 `http://127.0.0.1:5178/mcp`。请求必须携带:
25+
开发配置的 MCP 地址是 `http://127.0.0.1:8188/mcp`。请求必须携带:
2626

2727
```text
2828
Authorization: Bearer <api-key>
@@ -40,7 +40,7 @@ Git 中的 MCP 客户端配置只保存 URL,不保存 API key、数据库路
4040
"mcpServers": {
4141
"sereinflow": {
4242
"type": "http",
43-
"url": "http://127.0.0.1:5178/mcp"
43+
"url": "http://127.0.0.1:8188/mcp"
4444
}
4545
}
4646
}

frontend/sereinflow-web/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
server: {
99
proxy: {
1010
'/api': {
11-
target: process.env.VITE_API_PROXY_TARGET ?? 'http://127.0.0.1:5178',
11+
target: process.env.VITE_API_PROXY_TARGET ?? 'http://127.0.0.1:8188',
1212
changeOrigin: true,
1313
},
1414
// SignalR uses a WebSocket transport in browsers. Keep the development
@@ -17,7 +17,7 @@ export default defineConfig({
1717
// SignalR 使用 WebSocket,开发代理必须转发 /hubs,否则客户端会连到
1818
// Vite 自身并在没有实时事件的情况下静默降级。
1919
'/hubs': {
20-
target: process.env.VITE_API_PROXY_TARGET ?? 'http://127.0.0.1:5178',
20+
target: process.env.VITE_API_PROXY_TARGET ?? 'http://127.0.0.1:8188',
2121
changeOrigin: true,
2222
ws: true,
2323
},

plugins/sereinflow-ai-toolkit/.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sereinflow-ai-toolkit",
3-
"version": "0.1.0+codex.20260830103628",
3+
"version": "0.1.0+codex.20260830110743",
44
"description": "Minimal SereinFlow MCP client configuration for tools, resources, and prompts with server-provided guidance.",
55
"author": {
66
"name": "SereinFlow"

plugins/sereinflow-ai-toolkit/.mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"mcpServers": {
33
"sereinflow": {
44
"type": "http",
5-
"url": "http://127.0.0.1:5178/mcp"
5+
"url": "http://127.0.0.1:8188/mcp"
66
}
77
}
88
}

src/SereinFlow.Api/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"commandName": "Project",
66
"dotnetRunMessages": true,
77
"launchBrowser": true,
8-
"applicationUrl": "http://localhost:5178",
8+
"applicationUrl": "http://localhost:8188",
99
"environmentVariables": {
1010
"ASPNETCORE_ENVIRONMENT": "Development"
1111
}
@@ -14,7 +14,7 @@
1414
"commandName": "Project",
1515
"dotnetRunMessages": true,
1616
"launchBrowser": true,
17-
"applicationUrl": "https://localhost:7257;http://localhost:5178",
17+
"applicationUrl": "https://localhost:7257;http://localhost:8188",
1818
"environmentVariables": {
1919
"ASPNETCORE_ENVIRONMENT": "Development"
2020
}

tests/SereinFlow.ArchitectureTests/ApiIsolationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void McpHasOneLibraryAndNoRetiredExecutableHost()
7777
Assert.DoesNotContain("DatabasePath", pluginConfig, StringComparison.Ordinal);
7878
Assert.DoesNotContain("LibraryDirectory", pluginConfig, StringComparison.Ordinal);
7979
Assert.DoesNotContain("McpServer", pluginConfig, StringComparison.Ordinal);
80-
Assert.Contains("http://127.0.0.1:5178/mcp", pluginConfig, StringComparison.Ordinal);
80+
Assert.Contains("http://127.0.0.1:8188/mcp", pluginConfig, StringComparison.Ordinal);
8181
}
8282

8383
[Fact]

0 commit comments

Comments
 (0)