Skip to content

Commit 4bd5564

Browse files
committed
feat: add /mcp endpoint path alongside /flashduty for compatibility
1 parent 29cf2a4 commit 4bd5564

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For Cursors that support Remote MCP, use the following configuration:
3535
{
3636
"mcpServers": {
3737
"flashduty": {
38-
"url": "https://mcp.flashcat.cloud/flashduty",
38+
"url": "https://mcp.flashcat.cloud/mcp",
3939
"authorization_token": "Bearer <your_flashduty_app_key>"
4040
}
4141
}
@@ -135,7 +135,7 @@ Configuration methods are divided into **Remote Service Configuration** and **Lo
135135

136136
### Remote Server Configuration
137137

138-
When using the public remote service (`https://mcp.flashcat.cloud/flashduty`), you can dynamically configure it by appending query parameters to the URL.
138+
When using the public remote service (`https://mcp.flashcat.cloud/mcp`), you can dynamically configure it by appending query parameters to the URL.
139139

140140
#### Configuration Example
141141

@@ -145,7 +145,7 @@ Here is an example of configuring the remote service, specifying toolsets and re
145145
{
146146
"mcpServers": {
147147
"flashduty": {
148-
"url": "https://mcp.flashcat.cloud/flashduty?toolsets=incidents,users&read_only=true",
148+
"url": "https://mcp.flashcat.cloud/mcp?toolsets=incidents,users&read_only=true",
149149
"authorization_token": "Bearer <your_flashduty_app_key>"
150150
}
151151
}

README_zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Flashduty MCP Server 是一个基于 [Model Context Protocol (MCP)](https://mode
3333
{
3434
"mcpServers": {
3535
"flashduty": {
36-
"url": "https://mcp.flashcat.cloud/flashduty",
36+
"url": "https://mcp.flashcat.cloud/mcp",
3737
"authorization_token": "Bearer <your_flashduty_app_key>"
3838
}
3939
}
@@ -132,7 +132,7 @@ Flashduty MCP Server 支持以下配置:
132132
{
133133
"mcpServers": {
134134
"flashduty": {
135-
"url": "https://mcp.flashcat.cloud/flashduty?toolsets=incidents,users&read_only=true",
135+
"url": "https://mcp.flashcat.cloud/mcp?toolsets=incidents,users&read_only=true",
136136
"authorization_token": "Bearer <your_flashduty_app_key>"
137137
}
138138
}

internal/flashduty/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ func RunHTTPServer(cfg HTTPServerConfig) error {
306306
)
307307

308308
mux := http.NewServeMux()
309-
mux.Handle("/flashduty", httpServer)
309+
mux.Handle("/mcp", httpServer)
310+
mux.Handle("/flashduty", httpServer) // Keep for backward compatibility
310311

311312
srv := &http.Server{
312313
Addr: ":" + cfg.Port,

0 commit comments

Comments
 (0)