From a4988e501966ea6e0ffb9e8b780d7d2fbf7d5d84 Mon Sep 17 00:00:00 2001 From: Stan Date: Fri, 13 Nov 2026 21:12:07 +0500 Subject: [PATCH] feat(mcp): add AI/ML API preset Hosted streamable HTTP server at https://mcp.aimlapi.com/mcp, signed in with OAuth like the Notion, Linear and Xmind presets. Bumps the bundled preset count in tests and lists the preset in the MCP guide. --- core/mcp/presets.json | 15 +++++++++++++++ docs/integrations/MCP.md | 2 +- tests/app_server/test_runtime_probe.py | 2 +- tests/app_server/test_server.py | 2 +- tests/application/test_management_services.py | 2 +- tests/test_mcp_cli.py | 2 +- 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/core/mcp/presets.json b/core/mcp/presets.json index 8e67116fd..ec8579a7a 100644 --- a/core/mcp/presets.json +++ b/core/mcp/presets.json @@ -157,6 +157,21 @@ "approvalMode": "writes" } }, + { + "id": "aimlapi", + "displayName": "AI/ML API", + "category": "api", + "description": "Find and compare AI models, run chat, embeddings, image, video and audio generation, and call Agent Tools such as web search and page extraction.", + "docsUrl": "https://docs.aimlapi.com/quickstart/mcp", + "requires": "AI/ML API account", + "server": { + "type": "streamableHttp", + "auth": "oauth", + "url": "https://mcp.aimlapi.com/mcp", + "toolTimeoutSeconds": 60, + "approvalMode": "writes" + } + }, { "id": "figma", "displayName": "Figma", diff --git a/docs/integrations/MCP.md b/docs/integrations/MCP.md index 84e2f6fe9..5ea76011d 100644 --- a/docs/integrations/MCP.md +++ b/docs/integrations/MCP.md @@ -11,7 +11,7 @@ The distribution contains a validated catalog based on the MCP templates in HKUDS Nanobot at the source revision recorded in `core/mcp/presets.json`. The catalog currently includes Browserbase, Playwright, Context7, Firecrawl, Parallel Search, Exa, Microsoft Learn, AWS Documentation, Brave Search, -Postman, Figma, Xmind, Notion, Linear, GitHub, and Supabase. +Postman, AI/ML API, Figma, Xmind, Notion, Linear, GitHub, and Supabase. "Bundled" means the configuration templates are available locally. DeepCode does not silently execute `npx`, `uvx`, or Docker, download a package, contact diff --git a/tests/app_server/test_runtime_probe.py b/tests/app_server/test_runtime_probe.py index 28f9dfa2e..b9223b412 100644 --- a/tests/app_server/test_runtime_probe.py +++ b/tests/app_server/test_runtime_probe.py @@ -27,7 +27,7 @@ def track_runtime_import(name: str, package: str | None = None): assert result["paperFallback"] == "pypdf" assert result["skillCreator"] is True assert result["helperScripts"] is True - assert len(result["bundledMcpPresets"]) == 16 + assert len(result["bundledMcpPresets"]) == 17 assert "playwright" in result["bundledMcpPresets"] assert result["bundledSkills"] == [ "frontend-design", diff --git a/tests/app_server/test_server.py b/tests/app_server/test_server.py index 78448da32..413ee017e 100644 --- a/tests/app_server/test_server.py +++ b/tests/app_server/test_server.py @@ -1247,7 +1247,7 @@ def test_mcp_presets_and_real_probe_round_trip_through_app_server( for message in messages if "id" in message and "result" in message } - assert len(responses[2]["presets"]) == 16 + assert len(responses[2]["presets"]) == 17 assert responses[2]["sourceRevision"] context7 = next( server for server in responses[3]["servers"] if server["name"] == "context7" diff --git a/tests/application/test_management_services.py b/tests/application/test_management_services.py index 368614b49..0dc520dde 100644 --- a/tests/application/test_management_services.py +++ b/tests/application/test_management_services.py @@ -418,7 +418,7 @@ def test_mcp_presets_add_disabled_and_real_probe_reports_capabilities( ) try: presets = application.mcp.list_presets(project.id) - assert len(presets.presets) == 16 + assert len(presets.presets) == 17 notion = next(item for item in presets.presets if item.id == "notion") assert notion.auth == "oauth" assert notion.configured is False diff --git a/tests/test_mcp_cli.py b/tests/test_mcp_cli.py index bf1f37919..0350e06bf 100644 --- a/tests/test_mcp_cli.py +++ b/tests/test_mcp_cli.py @@ -128,7 +128,7 @@ def test_mcp_cli_adds_enables_and_really_probes_mcp_servers( assert run(["presets", "--json"]) == 0 presets = _json_output(capsys) - assert len(presets["presets"]) == 16 + assert len(presets["presets"]) == 17 assert any(preset["id"] == "context7" for preset in presets["presets"]) assert run(["add", "context7", "--json"]) == 0