Skip to content

Commit 818297e

Browse files
committed
test(mcp): map scheduling tools to REST routes
Assisted-by: Hephaestus:openai/gpt-5.5 Signed-off-by: Owen Adirah <owenadira@gmail.com>
1 parent e79ce2a commit 818297e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/mcp/localaitools/coverage_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ var toolToHTTPRoute = map[string]string{
3535
ToolListKnownBackends: "GET /backends/known",
3636
ToolSystemInfo: "GET / (welcome JSON)",
3737
ToolListNodes: "GET /api/nodes",
38+
ToolListScheduling: "GET /api/nodes/scheduling",
39+
ToolGetScheduling: "GET /api/nodes/scheduling/:model",
3840
ToolVRAMEstimate: "POST /api/models/vram-estimate",
3941
ToolGetBranding: "GET /api/branding",
4042
ToolGetUsageStats: "GET /api/usage (or /api/usage/all when all=true)",
@@ -60,6 +62,8 @@ var toolToHTTPRoute = map[string]string{
6062
ToolCreateVoiceProfile: "POST /api/voice-profiles",
6163
ToolDeleteVoiceProfile: "DELETE /api/voice-profiles/:id",
6264
ToolSetNodeVRAMBudget: "PUT /api/nodes/:id/vram-budget",
65+
ToolSetScheduling: "POST /api/nodes/scheduling",
66+
ToolDeleteScheduling: "DELETE /api/nodes/scheduling/:model",
6367
}
6468

6569
// allKnownTools is the union of expectedFullCatalog (defined in

0 commit comments

Comments
 (0)