mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-06 12:33:43 +08:00
feat: show actionable connection health on installed server cards (#1833)
* feat: show actionable connection health on installed server cards * fix: failing tests --------- Co-authored-by: Graham Neubig <neubig@gmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Graham Neubig
parent
389562d002
commit
a8edaa7cf4
@@ -113,12 +113,19 @@ test.describe("MCP GitHub server install flow", () => {
|
||||
await routeSessionApiKey(page);
|
||||
|
||||
// Intercept the MCP test endpoint to return success; the test environment
|
||||
// should not contact GitHub's hosted MCP endpoint.
|
||||
// should not contact GitHub's hosted MCP endpoint. Mirror the real
|
||||
// agent-server success shape: `tools` (a required field) lists the
|
||||
// advertised tools including the `get_me` credential probe, and
|
||||
// `tool_result` carries that read-only probe's passing outcome.
|
||||
await page.route("**/api/mcp/test", async (route) => {
|
||||
await route.fulfill({
|
||||
status: 200,
|
||||
contentType: "application/json",
|
||||
body: JSON.stringify({ ok: true }),
|
||||
body: JSON.stringify({
|
||||
ok: true,
|
||||
tools: ["get_me", "list_issues"],
|
||||
tool_result: { is_error: false, text: '{"login":"octocat"}' },
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user