Skip to content

feat: add AI/ML API answer provider and MCP example - #201

Closed
Lookoff-AIMLAPI wants to merge 1 commit into
Zleap-AI:mainfrom
aimlapi:feat/aimlapi-provider-mcp
Closed

Lookoff-AIMLAPI wants to merge 1 commit into
Zleap-AI:mainfrom
aimlapi:feat/aimlapi-provider-mcp

Conversation

@Lookoff-AIMLAPI

Copy link
Copy Markdown

Change and validation

Adds AI/ML API as an answer provider at https://api.aimlapi.com/v1, following the existing OpenRouter/302.AI presets. Existing settings, defaults, quick setup and Jev providers are unchanged; model IDs remain user-entered.

Adds an opt-in MCP example at https://mcp.aimlapi.com/mcp with confirmation before calls enabled. Users supply a Bearer header through the existing credentials editor. The example is not automatically connected or bound to models. Updates localized labels, Chinese/English docs and bilingual release notes, and regenerates changelog pages.

Validation:

  • npx vitest run --maxWorkers=2: base 1082 passed, 2 failed; branch 1085 passed, 2 failed. Both runs covered 125 files. The same two failures are in web-clipper.test.js because browser-extension/build is absent.
  • npx vitest run --maxWorkers=2 tests/provider-settings.test.ts tests/mcp-settings.test.ts: 50 passed.
  • npm --prefix docs-site run build: passed.
  • Live check using a temporary Rust example: cd core && cargo build --example aimlapi_live -j 2, then cd core && $CARGO_TARGET_DIR/debug/examples/aimlapi_live deepseek/deepseek-v4.1-flash. models::test_connection succeeded and mcp::test returned 25 tools. The temporary example was removed; the key was not saved.

Boundaries: credentials and redirect handling retain the existing shared implementation. No redirect leakage regression test was added; manually changing an MCP URL can retain its headers. OAuth is not implemented. Public model catalog retrieval was used to select the live-test model, not added as an application feature.

Platform and synchronization

  • Target branch: main
  • Affected desktop platforms: both
  • Source PR / commit (if ported from another repository): none
  • Related cross-repository change, if needed: none
  • Device / installer verification performed, and untested boundaries: Linux automated and live checks only. Windows/macOS installation, upgrade, desktop GUI and data-preservation acceptance remain untested. Required E2E macos and E2E windows checks remain pending. Before merging, fetch remote version tags, verify release heading 0.4.7 against release automation, and run npm --prefix docs-site run changelog:lint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants