diff --git a/apps/cli/src/lib/utils/__tests__/context-window.test.ts b/apps/cli/src/lib/utils/__tests__/context-window.test.ts index 0fd5f8c209..83420592ef 100644 --- a/apps/cli/src/lib/utils/__tests__/context-window.test.ts +++ b/apps/cli/src/lib/utils/__tests__/context-window.test.ts @@ -14,7 +14,6 @@ describe("getContextWindow", () => { [providerIdentifiers.vercelAiGateway, "vercelAiGatewayModelId"], [providerIdentifiers.opencodeGo, "opencodeGoModelId"], [providerIdentifiers.kenari, "kenariModelId"], - [providerIdentifiers.ioIntelligence, "ioIntelligenceModelId"], [providerIdentifiers.nanogpt, "nanoGptModelId"], [providerIdentifiers.zooGateway, "zooGatewayModelId"], ] as const)("uses the provider-specific model field for %s", (provider, modelField) => { diff --git a/packages/types/src/__tests__/io-intelligence.test.ts b/packages/types/src/__tests__/io-intelligence.test.ts deleted file mode 100644 index d448ef0ade..0000000000 --- a/packages/types/src/__tests__/io-intelligence.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - dynamicProviders, - getModelId, - getProviderDefaultModelId, - ioIntelligenceDefaultModelId, - isSecretStateKey, - providerIdentifiers, - providerSettingsSchema, -} from "../index.js" - -describe("IO Intelligence shared contract", () => { - it("registers the stable dynamic-provider identity and default model", () => { - expect(providerIdentifiers.ioIntelligence).toBe("io-intelligence") - expect(dynamicProviders).toContain(providerIdentifiers.ioIntelligence) - expect(getProviderDefaultModelId(providerIdentifiers.ioIntelligence, {})).toBe(ioIntelligenceDefaultModelId) - }) - - it("classifies the API key as secret and resolves the configured model", () => { - expect(isSecretStateKey("ioIntelligenceApiKey")).toBe(true) - const settings = providerSettingsSchema.parse({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceModelId: "model", - }) - expect(getModelId(settings)).toBe("model") - }) -}) diff --git a/packages/types/src/__tests__/provider-identifiers.test.ts b/packages/types/src/__tests__/provider-identifiers.test.ts index 4b1106da5a..5cf41e8268 100644 --- a/packages/types/src/__tests__/provider-identifiers.test.ts +++ b/packages/types/src/__tests__/provider-identifiers.test.ts @@ -35,7 +35,6 @@ const expectedProviderIdentifiers = [ "opencode-go", "kenari", "nanogpt", - "io-intelligence", "ollama", "lmstudio", "vscode-lm", @@ -71,6 +70,7 @@ const expectedRetiredProviderIdentifiers = [ "featherless", "groq", "huggingface", + "io-intelligence", "roo", ] /* eslint-enable zoo/no-raw-provider-identifiers */ @@ -112,7 +112,6 @@ describe("provider identifiers", () => { providerIdentifiers.opencodeGo, providerIdentifiers.kenari, providerIdentifiers.nanogpt, - providerIdentifiers.ioIntelligence, providerIdentifiers.kimiCode, providerIdentifiers.friendli, ]) diff --git a/packages/types/src/__tests__/provider-model-id.test.ts b/packages/types/src/__tests__/provider-model-id.test.ts index 69d77122aa..e25341e4c3 100644 --- a/packages/types/src/__tests__/provider-model-id.test.ts +++ b/packages/types/src/__tests__/provider-model-id.test.ts @@ -21,7 +21,6 @@ const expectedModelIdKeys = [ "opencodeGoModelId", "kenariModelId", "nanoGptModelId", - "ioIntelligenceModelId", "zooGatewayModelId", ] as const diff --git a/packages/types/src/global-settings.ts b/packages/types/src/global-settings.ts index 2bd5573039..ef812b01bb 100644 --- a/packages/types/src/global-settings.ts +++ b/packages/types/src/global-settings.ts @@ -385,7 +385,6 @@ export const SECRET_STATE_KEYS = [ "vercelAiGatewayApiKey", "opencodeGoApiKey", "kenariApiKey", - "ioIntelligenceApiKey", "nanoGptApiKey", "basetenApiKey", ] as const diff --git a/packages/types/src/provider-identifiers.ts b/packages/types/src/provider-identifiers.ts index 605e7d24d2..55bbac0ae2 100644 --- a/packages/types/src/provider-identifiers.ts +++ b/packages/types/src/provider-identifiers.ts @@ -15,7 +15,6 @@ export const providerIdentifiers = { opencodeGo: "opencode-go", kenari: "kenari", nanogpt: "nanogpt", - ioIntelligence: "io-intelligence", ollama: "ollama", lmstudio: "lmstudio", vscodeLm: "vscode-lm", @@ -54,6 +53,7 @@ export const retiredProviderIdentifiers = { featherless: "featherless", groq: "groq", huggingface: "huggingface", + ioIntelligence: "io-intelligence", roo: "roo", } as const diff --git a/packages/types/src/provider-settings.ts b/packages/types/src/provider-settings.ts index a61a0321af..6bb8c07c1c 100644 --- a/packages/types/src/provider-settings.ts +++ b/packages/types/src/provider-settings.ts @@ -100,7 +100,6 @@ export const dynamicProviders = [ providerIdentifiers.opencodeGo, providerIdentifiers.kenari, providerIdentifiers.nanogpt, - providerIdentifiers.ioIntelligence, providerIdentifiers.kimiCode, providerIdentifiers.friendli, ] as const @@ -316,7 +315,6 @@ export const modelIdKeys = [ "opencodeGoModelId", "kenariModelId", "nanoGptModelId", - "ioIntelligenceModelId", "zooGatewayModelId", ] as const satisfies readonly ModelIdKey[] @@ -558,11 +556,6 @@ export const MODELS_BY_PROVIDER: Record< }, [providerIdentifiers.opencodeGo]: { id: providerIdentifiers.opencodeGo, label: "Opencode Go", models: [] }, [providerIdentifiers.kenari]: { id: providerIdentifiers.kenari, label: "Kenari", models: [] }, - [providerIdentifiers.ioIntelligence]: { - id: providerIdentifiers.ioIntelligence, - label: "IO Intelligence", - models: [], - }, [providerIdentifiers.nanogpt]: { id: providerIdentifiers.nanogpt, label: "NanoGPT", models: [] }, [providerIdentifiers.zooGateway]: { id: providerIdentifiers.zooGateway, label: "Zoo Gateway", models: [] }, diff --git a/packages/types/src/providers/index.ts b/packages/types/src/providers/index.ts index 63c1585fdf..b5d42a0edb 100644 --- a/packages/types/src/providers/index.ts +++ b/packages/types/src/providers/index.ts @@ -30,7 +30,6 @@ export * from "./xai.js" export * from "./vercel-ai-gateway.js" export * from "./opencode-go.js" export * from "./kenari.js" -export * from "./io-intelligence.js" export * from "./nanogpt.js" export * from "./kimi-code.js" export * from "./zai.js" @@ -49,7 +48,6 @@ import { fireworksProviderDefinition } from "./fireworks.js" import { friendliProviderDefinition } from "./friendli.js" import { geminiProviderDefinition } from "./gemini.js" import { geminiCliProviderDefinition } from "./gemini-cli.js" -import { ioIntelligenceProviderDefinition } from "./io-intelligence.js" import { kenariProviderDefinition } from "./kenari.js" import { kimiCodeProviderDefinition } from "./kimi-code.js" import { litellmProviderDefinition } from "./litellm.js" @@ -114,7 +112,6 @@ export const providerDefinitionList = [ opencodeGoProviderDefinition, kenariProviderDefinition, nanoGptProviderDefinition, - ioIntelligenceProviderDefinition, zooGatewayProviderDefinition, basetenProviderDefinition, ] as const satisfies readonly ProviderDefinition[] diff --git a/packages/types/src/providers/io-intelligence.ts b/packages/types/src/providers/io-intelligence.ts deleted file mode 100644 index 74fe2e7b46..0000000000 --- a/packages/types/src/providers/io-intelligence.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { z } from "zod" - -import { type ModelInfo } from "../model.js" -import { providerIdentifiers } from "../provider-identifiers.js" -import { baseProviderSettingsShape, createModelIdAccessor, createProviderDefinition } from "./common.js" - -export const IO_INTELLIGENCE_BASE_URL = "https://api.intelligence.io.solutions/api/v1" - -export const ioIntelligenceDefaultModelId = "meta-llama/Llama-3.3-70B-Instruct" - -export const ioIntelligenceDefaultModelInfo: ModelInfo = { - maxTokens: 8192, - contextWindow: 128_000, - supportsImages: false, - supportsPromptCache: false, - description: "IO Intelligence model. The full model catalog is resolved dynamically from the /models endpoint.", -} - -const IO_INTELLIGENCE_MODEL_ID_FIELD = "ioIntelligenceModelId" - -export const ioIntelligenceProviderDefinition = createProviderDefinition({ - apiProvider: providerIdentifiers.ioIntelligence, - modelIdKey: IO_INTELLIGENCE_MODEL_ID_FIELD, - getModelId: createModelIdAccessor(IO_INTELLIGENCE_MODEL_ID_FIELD), - getDefaultModelId: () => ioIntelligenceDefaultModelId, - schema: { - ...baseProviderSettingsShape, - ioIntelligenceApiKey: z.string().optional(), - [IO_INTELLIGENCE_MODEL_ID_FIELD]: z.string().optional(), - }, -}) diff --git a/src/api/__tests__/index.spec.ts b/src/api/__tests__/index.spec.ts index 7601641511..525e46a096 100644 --- a/src/api/__tests__/index.spec.ts +++ b/src/api/__tests__/index.spec.ts @@ -56,7 +56,6 @@ import { FireworksHandler, FriendliHandler, GeminiHandler, - IOIntelligenceHandler, KenariHandler, KimiCodeHandler, LiteLLMHandler, @@ -120,7 +119,6 @@ const expectedHandlers = { [providerIdentifiers.vercelAiGateway]: VercelAiGatewayHandler, [providerIdentifiers.opencodeGo]: OpencodeGoHandler, [providerIdentifiers.kenari]: KenariHandler, - [providerIdentifiers.ioIntelligence]: IOIntelligenceHandler, [providerIdentifiers.nanogpt]: NanoGptHandler, [providerIdentifiers.zooGateway]: ZooGatewayHandler, [providerIdentifiers.minimax]: MiniMaxHandler, diff --git a/src/api/index.ts b/src/api/index.ts index e737ebd4bd..3d4138cbce 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -45,7 +45,6 @@ import { VercelAiGatewayHandler, OpencodeGoHandler, KenariHandler, - IOIntelligenceHandler, NanoGptHandler, ZooGatewayHandler, MiniMaxHandler, @@ -272,8 +271,6 @@ export function buildApiHandler(configuration: ProviderSettings): ApiHandler { return new OpencodeGoHandler(options) case providerIdentifiers.kenari: return new KenariHandler(options) - case providerIdentifiers.ioIntelligence: - return new IOIntelligenceHandler(options) case providerIdentifiers.nanogpt: return new NanoGptHandler(options) case providerIdentifiers.zooGateway: diff --git a/src/api/providers/__tests__/io-intelligence.spec.ts b/src/api/providers/__tests__/io-intelligence.spec.ts deleted file mode 100644 index 084dbc64b3..0000000000 --- a/src/api/providers/__tests__/io-intelligence.spec.ts +++ /dev/null @@ -1,435 +0,0 @@ -vi.mock("vscode", () => ({ - workspace: { getConfiguration: () => ({ get: (_key: string, defaultValue?: unknown) => defaultValue }) }, -})) - -import { Anthropic } from "@anthropic-ai/sdk" -import OpenAI from "openai" - -import { ioIntelligenceDefaultModelId, providerIdentifiers } from "@roo-code/types" - -import { buildApiHandler } from "../../index" -import { asyncStreamFrom, collectStream } from "../../../test-utils/stream" -import { clearAllMocks } from "../../../test-utils/reset" -import { IOIntelligenceHandler } from "../io-intelligence" -import { getModels } from "../fetchers/modelCache" - -vi.mock("openai") -vi.mock("../fetchers/modelCache", () => ({ - getModels: vi.fn().mockResolvedValue({ - "meta-llama/Llama-3.3-70B-Instruct": { - maxTokens: 8192, - contextWindow: 128000, - supportsImages: false, - supportsPromptCache: false, - }, - }), - getModelsFromCache: vi.fn(), - refreshModels: vi.fn().mockResolvedValue({}), -})) - -const mockCreate = vi.fn() -vi.mocked(OpenAI).mockImplementation(function () { - return { chat: { completions: { create: mockCreate } } } as unknown as OpenAI -}) - -const messages: Anthropic.Messages.MessageParam[] = [{ role: "user", content: "Hello" }] - -/** Flattens every argument of every console.error call into one searchable string. */ -const loggedText = (spy: { mock: { calls: unknown[][] } }) => - spy.mock.calls - .flat() - .map((arg) => (typeof arg === "string" ? arg : JSON.stringify(arg))) - .join("\n") - -describe("IOIntelligenceHandler", () => { - beforeEach(() => { - clearAllMocks() - vi.mocked(getModels).mockResolvedValue({ - "meta-llama/Llama-3.3-70B-Instruct": { - maxTokens: 8192, - contextWindow: 128000, - supportsImages: false, - supportsPromptCache: false, - }, - }) - mockCreate.mockResolvedValue(asyncStreamFrom([])) - }) - - it("is constructed by the backend provider registry", () => { - expect(buildApiHandler({ apiProvider: providerIdentifiers.ioIntelligence })).toBeInstanceOf( - IOIntelligenceHandler, - ) - }) - - it("resolves the default model when none is configured", async () => { - const handler = new IOIntelligenceHandler({}) - await collectStream(handler.createMessage("system", messages)) - expect(mockCreate).toHaveBeenCalledWith( - expect.objectContaining({ model: ioIntelligenceDefaultModelId }), - expect.objectContaining({ signal: undefined }), - ) - }) - - it("uses the configured model id and streams text, reasoning, and tool calls", async () => { - mockCreate.mockResolvedValue( - asyncStreamFrom([ - { choices: [{ delta: { content: "answer" } }] }, - { choices: [{ delta: { reasoning_content: "thinking" } }] }, - { - choices: [ - { - delta: { - tool_calls: [ - { index: 0, id: "call-1", function: { name: "read_file", arguments: '{"path":' } }, - ], - }, - }, - ], - }, - ]), - ) - const chunks = await collectStream( - new IOIntelligenceHandler({ - ioIntelligenceModelId: "deepseek-ai/DeepSeek-V3.2", - }).createMessage("sys", messages), - ) - expect(mockCreate).toHaveBeenCalledWith( - expect.objectContaining({ model: "deepseek-ai/DeepSeek-V3.2" }), - expect.objectContaining({ signal: undefined }), - ) - expect(chunks).toEqual([ - { type: "text", text: "answer" }, - { type: "reasoning", text: "thinking" }, - { type: "tool_call_partial", index: 0, id: "call-1", name: "read_file", arguments: '{"path":' }, - ]) - }) - - it("forwards native tools, usage streaming, max_tokens, and cancellation", async () => { - const signal = new AbortController().signal - const tools: OpenAI.Chat.ChatCompletionTool[] = [ - { type: "function", function: { name: "read_file", description: "Read", parameters: { type: "object" } } }, - ] - const handler = new IOIntelligenceHandler({ - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - modelTemperature: 0.7, - }) - await collectStream( - handler.createMessage("sys", messages, { - taskId: "task", - tools, - tool_choice: "required", - parallelToolCalls: false, - abortSignal: signal, - }), - ) - expect(mockCreate).toHaveBeenCalledWith( - expect.objectContaining({ - model: "meta-llama/Llama-3.3-70B-Instruct", - messages: [ - { role: "system", content: "sys" }, - { role: "user", content: "Hello" }, - ], - stream: true, - stream_options: { include_usage: true }, - max_tokens: 8192, - temperature: 0.7, - tools: [ - expect.objectContaining({ - type: "function", - function: expect.objectContaining({ name: "read_file", description: "Read" }), - }), - ], - tool_choice: "required", - parallel_tool_calls: false, - }), - { signal }, - ) - expect(mockCreate.mock.calls[0][0]).not.toHaveProperty("max_completion_tokens") - }) - - it("maps usage from the final chunk", async () => { - mockCreate.mockResolvedValue( - asyncStreamFrom([ - { - choices: [], - usage: { - prompt_tokens: 20, - completion_tokens: 10, - prompt_tokens_details: { cached_tokens: 5 }, - }, - }, - ]), - ) - expect( - await collectStream( - new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }).createMessage( - "sys", - messages, - ), - ), - ).toEqual([ - { - type: "usage", - inputTokens: 20, - outputTokens: 10, - cacheReadTokens: 5, - }, - ]) - }) - - it("preserves a zero cache-read count instead of coercing it away", async () => { - mockCreate.mockResolvedValue( - asyncStreamFrom([ - { - choices: [], - usage: { - prompt_tokens: 20, - completion_tokens: 10, - prompt_tokens_details: { cached_tokens: 0 }, - }, - }, - ]), - ) - expect( - await collectStream( - new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }).createMessage( - "sys", - messages, - ), - ), - ).toEqual([ - { - type: "usage", - inputTokens: 20, - outputTokens: 10, - cacheReadTokens: 0, - }, - ]) - }) - - it("redacts the API key from streaming errors and from the logged error", async () => { - const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {}) - try { - mockCreate.mockRejectedValue(new Error("upstream rejected secret-key")) - const handler = new IOIntelligenceHandler({ - ioIntelligenceApiKey: "secret-key", - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - }) - await expect(collectStream(handler.createMessage("sys", messages))).rejects.toMatchObject({ - message: "IO Intelligence streaming error: upstream rejected [REDACTED]", - }) - // The error handler logs message + stack before the transformer runs, - // so the key must already be gone from both. - expect(consoleErrorSpy).toHaveBeenCalledWith( - "[IO Intelligence] API error:", - expect.objectContaining({ - message: "upstream rejected [REDACTED]", - stack: expect.stringContaining("[REDACTED]"), - }), - ) - expect(loggedText(consoleErrorSpy)).not.toContain("secret-key") - } finally { - consoleErrorSpy.mockRestore() - } - }) - - it("redacts the API key from the SDK's raw error metadata before it is logged", async () => { - const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {}) - try { - // The OpenAI SDK attaches the upstream body as `error.metadata.raw`, - // which the error handler prefers over `message` when logging. - mockCreate.mockRejectedValue( - Object.assign(new Error("Request failed"), { - error: { metadata: { raw: '{"detail":"invalid key secret-key"}' } }, - }), - ) - const handler = new IOIntelligenceHandler({ - ioIntelligenceApiKey: "secret-key", - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - }) - await expect(collectStream(handler.createMessage("sys", messages))).rejects.toMatchObject({ - message: 'IO Intelligence streaming error: {"detail":"invalid key [REDACTED]"}', - }) - expect(consoleErrorSpy).toHaveBeenCalledWith( - "[IO Intelligence] API error:", - expect.objectContaining({ message: '{"detail":"invalid key [REDACTED]"}' }), - ) - expect(loggedText(consoleErrorSpy)).not.toContain("secret-key") - } finally { - consoleErrorSpy.mockRestore() - } - }) - - it("serializes and redacts an object-valued raw error body and keeps the status", async () => { - const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {}) - try { - mockCreate.mockRejectedValue( - Object.assign(new Error("Request failed"), { - status: 401, - error: { metadata: { raw: { detail: "invalid key secret-key" } } }, - }), - ) - const handler = new IOIntelligenceHandler({ - ioIntelligenceApiKey: "secret-key", - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - }) - await expect(collectStream(handler.createMessage("sys", messages))).rejects.toMatchObject({ - message: 'IO Intelligence streaming error: {"detail":"invalid key [REDACTED]"}', - status: 401, - }) - expect(consoleErrorSpy).toHaveBeenCalledWith( - "[IO Intelligence] API error:", - expect.objectContaining({ message: '{"detail":"invalid key [REDACTED]"}', status: 401 }), - ) - expect(loggedText(consoleErrorSpy)).not.toContain("secret-key") - } finally { - consoleErrorSpy.mockRestore() - } - }) - - it("redacts the API key from non-Error rejections and their log line", async () => { - const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {}) - try { - mockCreate.mockRejectedValue("upstream rejected secret-key") - const handler = new IOIntelligenceHandler({ - ioIntelligenceApiKey: "secret-key", - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - }) - await expect(collectStream(handler.createMessage("sys", messages))).rejects.toMatchObject({ - message: "IO Intelligence streaming error: upstream rejected [REDACTED]", - }) - expect(consoleErrorSpy).toHaveBeenCalledWith( - "[IO Intelligence] Non-Error exception:", - "upstream rejected [REDACTED]", - ) - expect(loggedText(consoleErrorSpy)).not.toContain("secret-key") - } finally { - consoleErrorSpy.mockRestore() - } - }) - - it("completePrompt wraps upstream errors without a configured key", async () => { - const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {}) - try { - mockCreate.mockRejectedValue(new Error("boom")) - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - await expect(handler.completePrompt("ping")).rejects.toMatchObject({ - message: "IO Intelligence completion error: boom", - }) - } finally { - consoleErrorSpy.mockRestore() - } - }) - - it("completePrompt sends the prompt as a single user message with the model's max_tokens", async () => { - mockCreate.mockResolvedValue({ - choices: [{ message: { role: "assistant", content: "ok" } }], - }) - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - expect(await handler.completePrompt("ping")).toBe("ok") - expect(mockCreate).toHaveBeenCalledWith( - { - model: "meta-llama/Llama-3.3-70B-Instruct", - messages: [{ role: "user", content: "ping" }], - max_tokens: 8192, - stream: false, - }, - undefined, - ) - }) - - it("completePrompt returns an empty string when the response has no choices", async () => { - mockCreate.mockResolvedValue({ choices: [] }) - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - expect(await handler.completePrompt("ping")).toBe("") - }) - - it("completePrompt without options forwards no request options", async () => { - mockCreate.mockResolvedValue({ - choices: [{ message: { role: "assistant", content: "ok" } }], - }) - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - expect(await handler.completePrompt("ping")).toBe("ok") - // The OpenAI SDK rejects a present-but-undefined `timeout` key, so a bare - // call must not pass request options at all. - expect(mockCreate.mock.calls[0][1]).toBeUndefined() - }) - - it("completePrompt forwards abort and timeout options when provided", async () => { - mockCreate.mockResolvedValue({ - choices: [{ message: { role: "assistant", content: "ok" } }], - }) - const signal = new AbortController().signal - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - await handler.completePrompt("ping", { abortSignal: signal, timeoutMs: 5_000 }) - expect(mockCreate).toHaveBeenCalledWith(expect.objectContaining({ stream: false }), { signal, timeout: 5_000 }) - }) - - it.each([ - { label: "a whole-number", input: 3000, forwarded: 3000 }, - { label: "a fractional", input: 12.5, forwarded: 13 }, - { label: "an over-cap", input: 2_147_483_648, forwarded: 2_147_483_647 }, - ])("completePrompt forwards $label timeoutMs as $forwarded", async ({ input, forwarded }) => { - mockCreate.mockResolvedValue({ choices: [{ message: { role: "assistant", content: "ok" } }] }) - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - await handler.completePrompt("ping", { timeoutMs: input }) - expect(mockCreate.mock.calls[0][1]).toEqual({ timeout: forwarded }) - }) - - it.each([0, -5, Number.NaN, Number.POSITIVE_INFINITY])( - "completePrompt does not forward an unusable timeoutMs (%s)", - async (timeoutMs) => { - mockCreate.mockResolvedValue({ choices: [{ message: { role: "assistant", content: "ok" } }] }) - const handler = new IOIntelligenceHandler({ ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct" }) - await handler.completePrompt("ping", { timeoutMs }) - expect(mockCreate.mock.calls[0][1]).toBeUndefined() - }, - ) - - it("does not send the OpenAI Compatible custom headers to the fixed endpoint", () => { - new IOIntelligenceHandler({ - ioIntelligenceApiKey: "test-key", - openAiHeaders: { "X-Custom-Header": "leaked" }, - }) - expect(vi.mocked(OpenAI)).toHaveBeenCalledTimes(1) - const clientOptions = vi.mocked(OpenAI).mock.calls[0][0] - expect(clientOptions?.defaultHeaders).not.toHaveProperty("X-Custom-Header") - }) - - it("omits temperature for a model that does not support it", async () => { - vi.mocked(getModels).mockResolvedValue({ - "openai/o3-mini": { - maxTokens: 8192, - contextWindow: 128000, - supportsImages: false, - supportsPromptCache: false, - }, - }) - const handler = new IOIntelligenceHandler({ - ioIntelligenceModelId: "openai/o3-mini", - modelTemperature: 0.7, - }) - - await collectStream(handler.createMessage("system", messages)) - expect(mockCreate).toHaveBeenCalledTimes(1) - expect(mockCreate.mock.calls[0][0]).not.toHaveProperty("temperature") - - mockCreate.mockClear() - mockCreate.mockResolvedValue({ choices: [{ message: { role: "assistant", content: "ok" } }] }) - expect(await handler.completePrompt("ping")).toBe("ok") - expect(mockCreate).toHaveBeenCalledTimes(1) - expect(mockCreate.mock.calls[0][0]).not.toHaveProperty("temperature") - }) - - it("completePrompt forwards the configured temperature", async () => { - mockCreate.mockResolvedValue({ - choices: [{ message: { role: "assistant", content: "ok" } }], - }) - const handler = new IOIntelligenceHandler({ - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - modelTemperature: 0.7, - }) - expect(await handler.completePrompt("ping")).toBe("ok") - expect(mockCreate).toHaveBeenCalledWith(expect.objectContaining({ stream: false, temperature: 0.7 }), undefined) - }) -}) diff --git a/src/api/providers/__tests__/model-catalog-adapters.spec.ts b/src/api/providers/__tests__/model-catalog-adapters.spec.ts index 58c4c2dcbf..6122479114 100644 --- a/src/api/providers/__tests__/model-catalog-adapters.spec.ts +++ b/src/api/providers/__tests__/model-catalog-adapters.spec.ts @@ -11,7 +11,6 @@ import type { ApiHandler, ModelCacheScope } from "../../index" const fetchers = vi.hoisted(() => ({ getDeepSeekModels: vi.fn(), - getIOIntelligenceModels: vi.fn(), getKenariModels: vi.fn(), getKimiCodeModels: vi.fn(), getLiteLLMModels: vi.fn(), @@ -46,10 +45,6 @@ vi.mock("../fetchers/deepseek", async (importOriginal) => ({ ...(await importOriginal()), getDeepSeekModels: fetchers.getDeepSeekModels, })) -vi.mock("../fetchers/io-intelligence", async (importOriginal) => ({ - ...(await importOriginal()), - getIOIntelligenceModels: fetchers.getIOIntelligenceModels, -})) vi.mock("../fetchers/kenari", async (importOriginal) => ({ ...(await importOriginal()), getKenariModels: fetchers.getKenariModels, @@ -109,7 +104,6 @@ vi.mock("../fetchers/zoo-gateway", async (importOriginal) => ({ import { AnthropicHandler } from "../anthropic" import { DeepSeekHandler } from "../deepseek" -import { IOIntelligenceHandler } from "../io-intelligence" import { KenariHandler } from "../kenari" import { KimiCodeHandler } from "../kimi-code" import { LiteLLMHandler } from "../lite-llm" @@ -155,15 +149,6 @@ const cases: AdapterCase[] = [ forwardsSignal: true, prewarms: false, }, - { - name: "IO Intelligence", - create: () => new IOIntelligenceHandler({ ioIntelligenceApiKey: API_KEY }), - fetcher: "getIOIntelligenceModels", - scope: { urlScoped: false, keyScoped: true, authScoped: false }, - expectedArgs: [API_KEY], - forwardsSignal: true, - prewarms: false, - }, { name: "Kenari", create: () => new KenariHandler({ kenariApiKey: API_KEY }), diff --git a/src/api/providers/fetchers/__tests__/io-intelligence.spec.ts b/src/api/providers/fetchers/__tests__/io-intelligence.spec.ts deleted file mode 100644 index 6069cde779..0000000000 --- a/src/api/providers/fetchers/__tests__/io-intelligence.spec.ts +++ /dev/null @@ -1,199 +0,0 @@ -import axios from "axios" - -import { IO_INTELLIGENCE_BASE_URL, ioIntelligenceDefaultModelInfo } from "@roo-code/types" - -import { getIOIntelligenceModels, parseIoIntelligenceModel } from "../io-intelligence" - -vi.mock("axios") - -describe("IO Intelligence model fetcher", () => { - beforeEach(() => vi.clearAllMocks()) - - it("requests the catalog with optional Bearer authorization", async () => { - vi.mocked(axios.get).mockResolvedValue({ data: { data: [] } }) - await getIOIntelligenceModels("key-a") - expect(axios.get).toHaveBeenCalledWith(`${IO_INTELLIGENCE_BASE_URL}/models`, { - headers: { Authorization: "Bearer key-a" }, - timeout: 10_000, - signal: undefined, - }) - }) - - it("supports unauthenticated catalog requests", async () => { - vi.mocked(axios.get).mockResolvedValue({ data: { data: [] } }) - await getIOIntelligenceModels() - expect(axios.get).toHaveBeenCalledWith(`${IO_INTELLIGENCE_BASE_URL}/models`, { - headers: undefined, - timeout: 10_000, - signal: undefined, - }) - }) - - it("forwards the caller's abort signal to the request", async () => { - vi.mocked(axios.get).mockResolvedValue({ data: { data: [] } }) - const controller = new AbortController() - - await getIOIntelligenceModels("test-key", { signal: controller.signal }) - - expect(axios.get).toHaveBeenCalledWith(`${IO_INTELLIGENCE_BASE_URL}/models`, { - headers: { Authorization: "Bearer test-key" }, - timeout: 10_000, - signal: controller.signal, - }) - }) - - it("rejects with an AbortError when the signal aborts the pending request", async () => { - const controller = new AbortController() - vi.mocked(axios.get).mockImplementation((_url, config) => { - // Mirror the HTTP client: a pending request rejects when its signal fires. - return new Promise((_resolve, reject) => { - config?.signal?.addEventListener?.("abort", () => reject(new Error("canceled")), { once: true }) - }) - }) - - const fetchPromise = getIOIntelligenceModels("k", { signal: controller.signal }) - controller.abort() - - await expect(fetchPromise).rejects.toMatchObject({ name: "AbortError" }) - }) - - it("maps detailed metadata and exact per-million pricing for multiple models", async () => { - vi.mocked(axios.get).mockResolvedValue({ - data: { - unknown_top_level: true, - data: [ - { - id: "vision-model", - name: "Vision Model", - created: 1_789_049_414, - owned_by: "io-intelligence", - max_model_len: null, - context_window: 262_144, - max_tokens: 131_072, - supports_tools: true, - supports_reasoning: true, - supports_prompt_cache: true, - input_modalities: ["text", "image"], - input_token_price: 0.000000306, - output_token_price: 0.000001224, - cache_read_token_price: 0.000000153, - unknown: "allowed", - }, - { id: "text-model", input_modalities: ["text"] }, - ], - }, - }) - - const models = await getIOIntelligenceModels() - expect(Object.keys(models)).toEqual(["vision-model", "text-model"]) - expect(models["vision-model"]).toEqual({ - contextWindow: 262_144, - maxTokens: 131_072, - supportsImages: true, - supportsPromptCache: true, - displayName: "Vision Model", - inputPrice: 0.306, - outputPrice: 1.224, - cacheReadsPrice: 0.153, - }) - expect(models["text-model"].supportsImages).toBe(false) - }) - - it("skips malformed records and models explicitly lacking tool support", async () => { - vi.mocked(axios.get).mockResolvedValue({ - data: { - data: [{ id: "eligible" }, { missing: "id" }, { id: "chat-only", supports_tools: false }], - }, - }) - const warning = vi.spyOn(console, "warn").mockImplementation(() => undefined) - expect(await getIOIntelligenceModels()).toEqual({ - eligible: { - contextWindow: ioIntelligenceDefaultModelInfo.contextWindow, - maxTokens: ioIntelligenceDefaultModelInfo.maxTokens, - supportsImages: false, - supportsPromptCache: false, - }, - }) - expect(warning).toHaveBeenCalledOnce() - warning.mockRestore() - }) - - it("keeps a hostile catalog id as an own entry instead of polluting the prototype chain", async () => { - vi.mocked(axios.get).mockResolvedValue({ - data: { data: [{ id: "__proto__", max_tokens: 1 }, { id: "constructor" }] }, - }) - const models = await getIOIntelligenceModels() - expect(Object.getPrototypeOf(models)).toBeNull() - expect(Object.keys(models)).toEqual(["__proto__", "constructor"]) - expect(models["__proto__"]).toMatchObject({ maxTokens: 1 }) - expect(({} as Record).maxTokens).toBeUndefined() - }) - - it("keeps models with null token metadata and prefers context_window over max_model_len", () => { - expect( - parseIoIntelligenceModel({ id: "both", max_model_len: 65_536, context_window: 262_144 }).contextWindow, - ).toBe(262_144) - - const info = parseIoIntelligenceModel({ - id: "legacy-entry", - max_model_len: 65_536, - context_window: null, - max_tokens: null, - }) - expect(info.contextWindow).toBe(65_536) - expect(info.maxTokens).toBe(ioIntelligenceDefaultModelInfo.maxTokens) - }) - - it.each([{ data: null }, [], null])("returns no models for invalid top-level data %#", async (data) => { - vi.mocked(axios.get).mockResolvedValue({ data }) - const warning = vi.spyOn(console, "warn").mockImplementation(() => undefined) - expect(await getIOIntelligenceModels()).toEqual({}) - warning.mockRestore() - }) - - it.each([new Error("network unavailable"), "network unavailable"])( - "returns no models on network failure", - async (error) => { - vi.mocked(axios.get).mockRejectedValue(error) - const consoleError = vi.spyOn(console, "error").mockImplementation(() => undefined) - expect(await getIOIntelligenceModels()).toEqual({}) - consoleError.mockRestore() - }, - ) - - it("rejects negative numeric metadata without leaking the API key in errors", async () => { - vi.mocked(axios.get) - .mockResolvedValueOnce({ - data: { - data: [ - { id: "valid-free", input_token_price: 0, output_token_price: 0 }, - { id: "invalid-price", input_token_price: -1 }, - ], - }, - }) - .mockRejectedValueOnce(new Error("upstream rejected secret-key")) - const warning = vi.spyOn(console, "warn").mockImplementation(() => undefined) - const consoleError = vi.spyOn(console, "error").mockImplementation(() => undefined) - - expect(await getIOIntelligenceModels("secret-key")).toEqual({ - "valid-free": expect.objectContaining({ inputPrice: 0, outputPrice: 0 }), - }) - expect(await getIOIntelligenceModels("secret-key")).toEqual({}) - expect(consoleError).toHaveBeenLastCalledWith( - "Error fetching IO Intelligence models: upstream rejected [REDACTED]", - ) - - warning.mockRestore() - consoleError.mockRestore() - }) - - it("does not invent absent optional metadata", () => { - const info = parseIoIntelligenceModel({ id: "minimal" }) - expect(info).toEqual({ - contextWindow: ioIntelligenceDefaultModelInfo.contextWindow, - maxTokens: ioIntelligenceDefaultModelInfo.maxTokens, - supportsImages: false, - supportsPromptCache: false, - }) - }) -}) diff --git a/src/api/providers/fetchers/__tests__/modelCache.spec.ts b/src/api/providers/fetchers/__tests__/modelCache.spec.ts index 3081b5f3eb..e9818cb709 100644 --- a/src/api/providers/fetchers/__tests__/modelCache.spec.ts +++ b/src/api/providers/fetchers/__tests__/modelCache.spec.ts @@ -77,7 +77,6 @@ const OPENROUTER_SCOPE: ModelCacheScope = { urlScoped: false, keyScoped: false, const LITELLM_SCOPE: ModelCacheScope = { urlScoped: true, keyScoped: true, authScoped: false } const REQUESTY_SCOPE: ModelCacheScope = { urlScoped: true, keyScoped: true, authScoped: false } const NANOGPT_SCOPE: ModelCacheScope = { urlScoped: false, keyScoped: true, authScoped: false } -const IOINTELLIGENCE_SCOPE: ModelCacheScope = { urlScoped: false, keyScoped: true, authScoped: false } const ZOO_SCOPE: ModelCacheScope = { urlScoped: true, keyScoped: true, authScoped: true } const MOONSHOT_SCOPE: ModelCacheScope = { urlScoped: true, keyScoped: true, authScoped: false } @@ -85,7 +84,6 @@ const openRouterHandler = makeHandler(OPENROUTER_SCOPE, vi.fn()) const zooGatewayHandler = makeHandler(ZOO_SCOPE, vi.fn()) const DUMMY_REQUESTY_KEY = "requesty-key-for-testing" -const DUMMY_IOINTELLIGENCE_KEY = "io-intelligence-key-for-testing" describe("getModels with new GetModelsOptions", () => { beforeEach(() => { @@ -231,24 +229,6 @@ describe("getModels with new GetModelsOptions", () => { expect(result).toEqual(mockModels) }) - it("dispatches IO Intelligence with an optional API key", async () => { - const mockModels = { - "meta-llama/Llama-3.3-70B-Instruct": { - maxTokens: 8192, - contextWindow: 128000, - supportsPromptCache: false, - }, - } - const fetchModels = vi.fn().mockResolvedValue(mockModels) - const handler = makeHandler(IOINTELLIGENCE_SCOPE, fetchModels) - - const options = { provider: providerIdentifiers.ioIntelligence, apiKey: DUMMY_IOINTELLIGENCE_KEY } as const - const result = await getModels(options, handler) - - expect(fetchModels).toHaveBeenCalledWith(options, expect.any(AbortSignal)) - expect(result).toEqual(mockModels) - }) - it("handles errors and re-throws them", async () => { const expectedError = new Error("LiteLLM connection failed") const fetchModels = vi.fn().mockRejectedValue(expectedError) @@ -1258,33 +1238,6 @@ describe("NanoGPT key-scoped cache isolation", () => { }) }) -describe("IO Intelligence key-scoped cache isolation", () => { - const ioIntelligenceModels = { - "meta-llama/Llama-3.3-70B-Instruct": { maxTokens: 8_192, contextWindow: 128_000, supportsPromptCache: false }, - } - - let handler: ApiHandler - - beforeEach(() => { - vi.clearAllMocks() - handler = makeHandler(IOINTELLIGENCE_SCOPE, vi.fn().mockResolvedValue(ioIntelligenceModels)) - }) - - it("separates public, key A, and key B cache identities without exposing raw keys", async () => { - const mockCache = vi.mocked(new (vi.mocked(NodeCache))()) - mockCache.get.mockReturnValue(undefined) - - await getModels({ provider: providerIdentifiers.ioIntelligence }, handler) - await getModels({ provider: providerIdentifiers.ioIntelligence, apiKey: "ionet-key-a" }, handler) - await getModels({ provider: providerIdentifiers.ioIntelligence, apiKey: "ionet-key-b" }, handler) - - const cacheKeys = mockCache.set.mock.calls.map(([key]) => key as string) - expect(new Set(cacheKeys).size).toBe(3) - expect(cacheKeys).toContain("io-intelligence") - expect(cacheKeys.every((key) => !key.includes("ionet-key-a") && !key.includes("ionet-key-b"))).toBe(true) - }) -}) - describe("compound cache key derivation across scoping dimensions", () => { // Exercises every branch of getCacheKey via the public getModels() entry point. // litellm is url-scoped AND key-scoped; openrouter is neither, so it hits the bare diff --git a/src/api/providers/fetchers/io-intelligence.ts b/src/api/providers/fetchers/io-intelligence.ts deleted file mode 100644 index 2be495818b..0000000000 --- a/src/api/providers/fetchers/io-intelligence.ts +++ /dev/null @@ -1,106 +0,0 @@ -import axios from "axios" -import { z } from "zod" - -import { - IO_INTELLIGENCE_BASE_URL, - ioIntelligenceDefaultModelInfo, - type ModelInfo, - type ModelRecord, -} from "@roo-code/types" - -import { throwIfAborted } from "../utils/abort-signal" - -const ioIntelligenceModelSchema = z.object({ - id: z.string().min(1), - name: z.string().optional(), - max_model_len: z.number().int().positive().nullish(), - context_window: z.number().int().positive().nullish(), - max_tokens: z.number().int().positive().nullish(), - supports_tools: z.boolean().optional(), - supports_prompt_cache: z.boolean().optional(), - input_modalities: z.array(z.string()).optional(), - input_token_price: z.number().nonnegative().optional(), - output_token_price: z.number().nonnegative().optional(), - cache_read_token_price: z.number().nonnegative().optional(), -}) - -export type IOIntelligenceModel = z.infer - -function getSafeErrorMessage(error: unknown, apiKey?: string): string { - const message = error instanceof Error ? error.message : String(error) - return apiKey ? message.replaceAll(apiKey, "[REDACTED]") : message -} - -const ioIntelligenceModelsResponseSchema = z.object({ - object: z.string().optional(), - data: z.array(z.unknown()), -}) - -export const parseIoIntelligenceModel = (model: IOIntelligenceModel): ModelInfo => ({ - maxTokens: model.max_tokens ?? ioIntelligenceDefaultModelInfo.maxTokens, - contextWindow: model.context_window ?? model.max_model_len ?? ioIntelligenceDefaultModelInfo.contextWindow, - supportsImages: model.input_modalities?.includes("image") ?? false, - supportsPromptCache: model.supports_prompt_cache ?? false, - ...(model.input_token_price !== undefined ? { inputPrice: model.input_token_price * 1_000_000 } : {}), - ...(model.output_token_price !== undefined ? { outputPrice: model.output_token_price * 1_000_000 } : {}), - ...(model.cache_read_token_price !== undefined - ? { cacheReadsPrice: model.cache_read_token_price * 1_000_000 } - : {}), - // The catalog has no free-text description. Its name and id are remote - // strings and ModelInfo.description is rendered as Markdown, so neither is - // copied there; the name is only surfaced as the plain-text displayName. - ...(model.name !== undefined ? { displayName: model.name } : {}), -}) - -/** - * Fetches the public IO Intelligence (io.net) model catalog. - * - * The catalog can be listed without an API key, while a Bearer key scopes the - * visible models for the account (io.net exposes per-tier access). Prices are - * published per token and normalized to per-million-token units. - * - * @param apiKey - Optional Bearer token that scopes the visible catalog. - * @param opts - Optional per-request controls; `signal` cancels the in-flight request. - */ -export async function getIOIntelligenceModels(apiKey?: string, opts?: { signal?: AbortSignal }): Promise { - try { - const response = await axios.get(`${IO_INTELLIGENCE_BASE_URL}/models`, { - headers: apiKey ? { Authorization: `Bearer ${apiKey}` } : undefined, - timeout: 10_000, - signal: opts?.signal, - }) - const responseResult = ioIntelligenceModelsResponseSchema.safeParse(response.data) - if (!responseResult.success) { - console.warn("IO Intelligence models response did not match the expected top-level schema") - return {} - } - - // Use null-prototype object to prevent prototype pollution - const models: ModelRecord = Object.create(null) - for (const rawModel of responseResult.data.data) { - const modelResult = ioIntelligenceModelSchema.safeParse(rawModel) - if (!modelResult.success) { - console.warn("Skipping invalid IO Intelligence model entry") - continue - } - - // Zoo Code is agentic-first: io.net marks a few catalog models as not - // supporting tools. An explicit false is authoritative; an omitted flag - // remains unknown and therefore eligible (mirrors the NanoGPT fetcher). - if (modelResult.data.supports_tools === false) { - continue - } - - models[modelResult.data.id] = parseIoIntelligenceModel(modelResult.data) - } - - return models - } catch (error) { - // Surface cancellation as a rejection: logging and returning here would - // present an aborted fetch to callers as a successful (empty) catalog. - throwIfAborted(opts?.signal) - - console.error(`Error fetching IO Intelligence models: ${getSafeErrorMessage(error, apiKey)}`) - return {} - } -} diff --git a/src/api/providers/fetchers/modelCache.ts b/src/api/providers/fetchers/modelCache.ts index 19ba059da5..a6bd60ec4c 100644 --- a/src/api/providers/fetchers/modelCache.ts +++ b/src/api/providers/fetchers/modelCache.ts @@ -501,10 +501,6 @@ export async function initializeModelCacheRefresh(buildHandler: (provider: Route provider: providerIdentifiers.nanogpt, options: { provider: providerIdentifiers.nanogpt }, }, - { - provider: providerIdentifiers.ioIntelligence, - options: { provider: providerIdentifiers.ioIntelligence }, - }, ] // Refresh each provider in background (fire and forget) diff --git a/src/api/providers/index.ts b/src/api/providers/index.ts index e9beb183e2..33d90b1c16 100644 --- a/src/api/providers/index.ts +++ b/src/api/providers/index.ts @@ -30,7 +30,6 @@ export { FriendliHandler } from "./friendli" export { VercelAiGatewayHandler } from "./vercel-ai-gateway" export { OpencodeGoHandler } from "./opencode-go" export { KenariHandler } from "./kenari" -export { IOIntelligenceHandler } from "./io-intelligence" export { NanoGptHandler } from "./nanogpt" export { ZooGatewayHandler } from "./zoo-gateway" export { MiniMaxHandler } from "./minimax" diff --git a/src/api/providers/io-intelligence.ts b/src/api/providers/io-intelligence.ts deleted file mode 100644 index f5cd7470a0..0000000000 --- a/src/api/providers/io-intelligence.ts +++ /dev/null @@ -1,221 +0,0 @@ -import { Anthropic } from "@anthropic-ai/sdk" -import OpenAI from "openai" - -import { - IO_INTELLIGENCE_BASE_URL, - ioIntelligenceDefaultModelId, - ioIntelligenceDefaultModelInfo, - providerIdentifiers, - type ModelRecord, -} from "@roo-code/types" - -import type { ApiHandlerOptions, GetModelsOptions } from "../../shared/api" - -import type { ApiStream } from "../transform/stream" -import { convertToOpenAiMessages } from "../transform/openai-format" -import type { - ApiHandlerCreateMessageMetadata, - CompletePromptOptions, - ModelCacheScope, - SingleCompletionHandler, -} from "../index" -import { RouterProvider } from "./router-provider" -import { getIOIntelligenceModels } from "./fetchers/io-intelligence" -import { handleProviderError } from "./utils/error-handler" -import { extractReasoningFromDelta } from "./utils/extract-reasoning" -import { hasUsableTimeout, toSdkTimeoutMs } from "./utils/abort-signal" - -/** - * IO Intelligence (io.net) provider. - * - * OpenAI-compatible Chat Completions endpoint: - * https://api.intelligence.io.solutions/api/v1/chat/completions - * - * Model ids are Hugging Face-style `org/name` identifiers and are resolved - * dynamically from the public /models endpoint. Supports text generation, - * reasoning content (DeepSeek/GLM style), tool calls, and non-streaming - * prompt completion. - */ -export class IOIntelligenceHandler extends RouterProvider implements SingleCompletionHandler { - /** Creates a new handler bound to the user's API key and selected model. */ - constructor(options: ApiHandlerOptions) { - super({ - // The endpoint is fixed, so the custom headers configured for the - // OpenAI Compatible provider must not be sent to it. - options: { ...options, openAiHeaders: undefined }, - name: providerIdentifiers.ioIntelligence, - baseURL: IO_INTELLIGENCE_BASE_URL, - apiKey: options.ioIntelligenceApiKey, - modelId: options.ioIntelligenceModelId, - defaultModelId: ioIntelligenceDefaultModelId, - defaultModelInfo: ioIntelligenceDefaultModelInfo, - }) - } - - override getModelCacheScope(): ModelCacheScope { - // Public catalog, but a key can narrow the visible model set. - return { urlScoped: false, keyScoped: true, authScoped: false } - } - - async fetchModels(options: GetModelsOptions, signal?: AbortSignal): Promise { - const fetchOpts: [] | [{ signal: AbortSignal }] = signal ? [{ signal }] : [] - return getIOIntelligenceModels(options.apiKey, ...fetchOpts) - } - - private createSafeError(operation: string, error: unknown): Error { - const apiKey = this.options.ioIntelligenceApiKey - const redact = (text: string) => (apiKey ? text.replaceAll(apiKey, "[REDACTED]") : text) - - // handleProviderError logs the message, stack and the SDK's raw error - // metadata before it applies the transformer, so the key has to be - // scrubbed from the error itself first. - if (error instanceof Error) { - error.message = redact(error.message) - if (error.stack) { - error.stack = redact(error.stack) - } - // handleProviderError calls string methods on this field, so an - // object-valued upstream body is serialized before it is redacted. - const metadata = (error as { error?: { metadata?: { raw?: unknown } } }).error?.metadata - if (metadata && metadata.raw !== undefined && metadata.raw !== null) { - const raw = metadata.raw - metadata.raw = redact(typeof raw === "string" ? raw : (JSON.stringify(raw) ?? String(raw))) - } - } - const safeError = error instanceof Error ? error : redact(String(error)) - - return handleProviderError(safeError, "IO Intelligence", { - messagePrefix: operation, - // The transformer input can also come from `error.error.metadata.raw`. - messageTransformer: (message) => `IO Intelligence ${operation} error: ${redact(message)}`, - }) - } - - /** - * Streams a chat completion response, yielding typed chunks for text, - * reasoning, partial tool calls, and token usage. - */ - override async *createMessage( - systemPrompt: string, - messages: Anthropic.Messages.MessageParam[], - metadata?: ApiHandlerCreateMessageMetadata, - ): ApiStream { - const { id: modelId, info } = await this.fetchModel() - - const openAiMessages: OpenAI.Chat.ChatCompletionMessageParam[] = [ - { role: "system", content: systemPrompt }, - ...convertToOpenAiMessages(messages), - ] - - const body: OpenAI.Chat.ChatCompletionCreateParams = { - model: modelId, - messages: openAiMessages, - max_tokens: info.maxTokens, - stream: true, - stream_options: { include_usage: true }, - tools: this.convertToolsForOpenAI(metadata?.tools), - tool_choice: metadata?.tool_choice, - parallel_tool_calls: metadata?.parallelToolCalls ?? true, - } - - if ( - this.options.modelTemperature !== undefined && - info.supportsTemperature !== false && - this.supportsTemperature(modelId) - ) { - body.temperature = this.options.modelTemperature - } - - try { - const completion = await this.client.chat.completions.create(body, { signal: metadata?.abortSignal }) - - for await (const chunk of completion) { - const delta = chunk.choices[0]?.delta - - // Reasoning models (DeepSeek R1, GLM) stream reasoning via - // reasoning_content with an OpenRouter-style `reasoning` fallback. - const reasoningText = extractReasoningFromDelta(delta) - if (reasoningText) { - yield { type: "reasoning", text: reasoningText } - } - - if (delta?.content) { - yield { type: "text", text: delta.content } - } - - // Emit raw tool call chunks - NativeToolCallParser handles state management. - if (delta?.tool_calls) { - for (const toolCall of delta.tool_calls) { - yield { - type: "tool_call_partial", - index: toolCall.index, - id: toolCall.id, - name: toolCall.function?.name, - arguments: toolCall.function?.arguments, - } - } - } - - if (chunk.usage) { - yield { - type: "usage", - inputTokens: chunk.usage.prompt_tokens || 0, - outputTokens: chunk.usage.completion_tokens || 0, - cacheReadTokens: chunk.usage.prompt_tokens_details?.cached_tokens ?? undefined, - } - } - } - } catch (error) { - throw this.createSafeError("streaming", error) - } - } - - /** - * Performs a non-streaming chat completion and returns the full response text. - * - * @param prompt - The user prompt to send as a single user message. - * @returns The model's reply text, or an empty string if no content is returned. - * @throws Error with an IO Intelligence prefix if the request fails. - */ - async completePrompt(prompt: string, options?: CompletePromptOptions): Promise { - const { id: modelId, info } = await this.fetchModel() - - try { - const requestOptions: OpenAI.Chat.ChatCompletionCreateParams = { - model: modelId, - messages: [{ role: "user", content: prompt }], - max_tokens: info.maxTokens, - stream: false, - } - - if ( - this.options.modelTemperature !== undefined && - info.supportsTemperature !== false && - this.supportsTemperature(modelId) - ) { - requestOptions.temperature = this.options.modelTemperature - } - - // The OpenAI SDK validates a present-but-undefined `timeout` key, so - // request options are only forwarded when they carry a real value. - const completionOptions: OpenAI.RequestOptions = {} - if (options?.abortSignal !== undefined) { - completionOptions.signal = options.abortSignal - } - const timeoutMs = options?.timeoutMs - if (hasUsableTimeout(timeoutMs)) { - completionOptions.timeout = toSdkTimeoutMs(timeoutMs) - } - const hasCompletionOptions = - completionOptions.signal !== undefined || completionOptions.timeout !== undefined - - const response = await this.client.chat.completions.create( - requestOptions, - hasCompletionOptions ? completionOptions : undefined, - ) - return response.choices[0]?.message.content || "" - } catch (error) { - throw this.createSafeError("completion", error) - } - } -} diff --git a/src/assets/marketplace/mcps.yml b/src/assets/marketplace/mcps.yml index 929d7034fa..85876e07b6 100644 --- a/src/assets/marketplace/mcps.yml +++ b/src/assets/marketplace/mcps.yml @@ -33,59 +33,6 @@ items: "type": "streamable-http", "url": "https://api.anysearch.com/mcp" } - - id: apify - name: Apify Actors - description: - Enables AI assistants to interact with Apify's web scraping and automation actors, providing access to - tools for data extraction, web searching, social media analysis, and more. - author: apify - url: https://github.com/apify/actors-mcp-server - tags: - - web-scraping - - data-extraction - - automation - - actor-management - - apify-platform - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@apify/actors-mcp-server"], - "env": { - "APIFY_TOKEN": "{{APIFY_TOKEN}}" - } - } - - name: NPX with Specific Actors - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@apify/actors-mcp-server", "--actors", "{{ACTOR_LIST}}"], - "env": { - "APIFY_TOKEN": "{{APIFY_TOKEN}}" - } - } - parameters: - - name: Actor List - key: ACTOR_LIST - placeholder: lukaskrivka/google-maps-with-contact-details,apify/instagram-scraper - - name: Remote MCP - SSE - content: | - { - "type": "sse", - "url": "https://actors-mcp-server.apify.actor/sse", - "env": { - "APIFY_TOKEN": "{{APIFY_TOKEN}}" - } - } - parameters: - - name: Apify API Token - key: APIFY_TOKEN - placeholder: your_apify_api_token - id: atlassian name: Atlassian description: @@ -179,117 +126,6 @@ items: - name: Jira API Token key: JIRA_API_TOKEN placeholder: your_jira_api_token - - id: aws-kb-retrieval-server - name: AWS Knowledge Base - description: - Retrieves information from AWS Knowledge Base using Bedrock Agent Runtime, supporting RAG-based queries - with customizable result counts. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/aws-kb-retrieval-server - tags: - - aws - - bedrock - - rag - - knowledge-retrieval - - search - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-aws-kb-retrieval"], - "env": { - "AWS_ACCESS_KEY_ID": "{{AWS_ACCESS_KEY_ID}}", - "AWS_SECRET_ACCESS_KEY": "{{AWS_SECRET_ACCESS_KEY}}", - "AWS_REGION": "{{AWS_REGION}}" - } - } - - name: Docker - prerequisites: - - Docker - content: > - { - "command": "docker", - "args": ["run", "-i", "--rm", "-e", "AWS_ACCESS_KEY_ID", "-e", "AWS_SECRET_ACCESS_KEY", "-e", "AWS_REGION", "mcp/aws-kb-retrieval-server"], - "env": { - "AWS_ACCESS_KEY_ID": "{{AWS_ACCESS_KEY_ID}}", - "AWS_SECRET_ACCESS_KEY": "{{AWS_SECRET_ACCESS_KEY}}", - "AWS_REGION": "{{AWS_REGION}}" - } - } - parameters: - - name: AWS Access Key ID - key: AWS_ACCESS_KEY_ID - placeholder: your_aws_access_key_id - - name: AWS Secret Access Key - key: AWS_SECRET_ACCESS_KEY - placeholder: your_aws_secret_access_key - - name: AWS Region - key: AWS_REGION - placeholder: us-east-1 - - id: axiom - name: Axiom - description: - Query and analyze data using Axiom Processing Language (APL), enabling AI agents to interact with Axiom - datasets through natural language. - author: axiomhq - url: https://github.com/axiomhq/mcp-server-axiom - tags: - - data-query - - log-analysis - - apl - - datasets - - analytics - content: - - name: Go Binary - content: | - { - "command": "{{AXIOM_BINARY_PATH}}/axiom-mcp", - "args": ["--config", "{{AXIOM_CONFIG_PATH}}"] - } - parameters: - - name: Axiom Config Path - key: AXIOM_CONFIG_PATH - placeholder: /path/to/config.txt - - name: Go Binary with Environment Variables - content: | - { - "command": "{{AXIOM_BINARY_PATH}}/axiom-mcp", - "env": { - "AXIOM_TOKEN": "{{AXIOM_TOKEN}}", - "AXIOM_URL": "{{AXIOM_URL}}", - "AXIOM_ORG_ID": "{{AXIOM_ORG_ID}}" - } - } - - name: Go Binary with Command Line Flags - content: | - { - "command": "{{AXIOM_BINARY_PATH}}/axiom-mcp", - "args": [ - "-token", "{{AXIOM_TOKEN}}", - "-url", "{{AXIOM_URL}}", - "-query-rate", "1", - "-query-burst", "1", - "-datasets-rate", "1", - "-datasets-burst", "1" - ] - } - parameters: - - name: Axiom Binary Path - key: AXIOM_BINARY_PATH - placeholder: /path/to/axiom-mcp - - name: Axiom Token - key: AXIOM_TOKEN - placeholder: xaat-your-token - - name: Axiom URL - key: AXIOM_URL - placeholder: https://api.axiom.co - - name: Axiom Org ID - key: AXIOM_ORG_ID - placeholder: your-org-id - optional: true - id: azure-devops name: Azure DevOps description: Official Microsoft MCP server for Azure DevOps integration, bringing comprehensive Azure DevOps @@ -329,315 +165,6 @@ items: - name: Azure DevOps Organization key: AZURE_DEVOPS_ORG placeholder: contoso - - id: brave-search - name: Brave Search - description: Integrates Brave Search API to provide comprehensive web and local search capabilities with smart - filtering, pagination, and automatic fallbacks. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/brave-search - tags: - - search-engine - - local-search - - web-search - - brave-api - - content-discovery - prerequisites: - - Brave Search account - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-brave-search"], - "env": { - "BRAVE_API_KEY": "{{BRAVE_API_KEY}}" - } - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "-e", "BRAVE_API_KEY", "mcp/brave-search"], - "env": { - "BRAVE_API_KEY": "{{BRAVE_API_KEY}}" - } - } - parameters: - - name: Brave API Key - key: BRAVE_API_KEY - placeholder: your_brave_api_key_here - - id: browserbase - name: Browserbase - description: - Cloud browser automation server enabling LLMs to interact with web pages, take screenshots, extract data, - and execute JavaScript using Browserbase and Puppeteer. - author: browserbase - url: https://github.com/browserbase/mcp-server-browserbase - tags: - - web-automation - - puppeteer - - screenshot-capture - - data-extraction - - javascript-execution - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@browserbasehq/mcp"], - "env": { - "BROWSERBASE_API_KEY": "{{BROWSERBASE_API_KEY}}", - "BROWSERBASE_PROJECT_ID": "{{BROWSERBASE_PROJECT_ID}}" - } - } - - name: NPX with Proxies - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@browserbasehq/mcp", "--proxies"], - "env": { - "BROWSERBASE_API_KEY": "{{BROWSERBASE_API_KEY}}", - "BROWSERBASE_PROJECT_ID": "{{BROWSERBASE_PROJECT_ID}}" - } - } - - name: NPX with Advanced Stealth - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@browserbasehq/mcp", "--advancedStealth"], - "env": { - "BROWSERBASE_API_KEY": "{{BROWSERBASE_API_KEY}}", - "BROWSERBASE_PROJECT_ID": "{{BROWSERBASE_PROJECT_ID}}" - } - } - - name: NPX with Custom Context - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@browserbasehq/mcp", "--contextId", "{{BROWSERBASE_CONTEXT_ID}}"], - "env": { - "BROWSERBASE_API_KEY": "{{BROWSERBASE_API_KEY}}", - "BROWSERBASE_PROJECT_ID": "{{BROWSERBASE_PROJECT_ID}}" - } - } - parameters: - - name: Browserbase Context ID - key: BROWSERBASE_CONTEXT_ID - placeholder: your_browserbase_context_id - parameters: - - name: Browserbase API Key - key: BROWSERBASE_API_KEY - placeholder: your_browserbase_api_key - - name: Browserbase Project ID - key: BROWSERBASE_PROJECT_ID - placeholder: your_browserbase_project_id - - id: clickup - name: ClickUp - description: - Comprehensive ClickUp MCP server for project management integration with AI through Model Context Protocol. - Supports task management, time tracking, workspace organization, document management, member management, and tag - operations with 36 available tools for complete ClickUp automation. - author: taazkareem - url: https://github.com/TaazKareem/clickup-mcp-server - tags: - - clickup - - project-management - - task-management - - time-tracking - - productivity - - automation - - workflow - - team-collaboration - - workspace - - api-integration - prerequisites: - - ClickUp account - - ClickUp API key - content: - - name: NPX - prerequisites: - - Node.js - content: > - { - "command": "npx", - "args": ["-y", "@taazkareem/clickup-mcp-server@0.8.4", "--hash", "sha512:TuWPCubHFrRNbghj34th+QFdOqwGljs0QP55s+d73JhsFVoKaXFuS4c5bHat8qwV9UyF6hAeX87UP0SmeH/QRg=="], - "env": { - "CLICKUP_API_KEY": "{{CLICKUP_API_KEY}}", - "CLICKUP_TEAM_ID": "{{CLICKUP_TEAM_ID}}", - "DOCUMENT_SUPPORT": "{{DOCUMENT_SUPPORT}}" - } - } - parameters: - - name: ClickUp API Key - key: CLICKUP_API_KEY - placeholder: pk_your_clickup_api_key - - name: ClickUp Team ID - key: CLICKUP_TEAM_ID - placeholder: your_team_id - - name: Document Support - key: DOCUMENT_SUPPORT - placeholder: "true" - optional: true - - id: cloudflare - name: Cloudflare - description: - Manages Cloudflare resources including Workers, KV stores, R2 storage, D1 databases, and analytics through - natural language interactions. - author: cloudflare - url: https://github.com/cloudflare/mcp-server-cloudflare - tags: - - cloudflare - - serverless - - edge-computing - - cloud-storage - - database-management - content: - - name: Remote MCP - Observability - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["mcp-remote", "https://observability.mcp.cloudflare.com/sse"] - } - - name: Remote MCP - Workers Bindings - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["mcp-remote", "https://bindings.mcp.cloudflare.com/sse"] - } - - name: Remote MCP - Documentation - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["mcp-remote", "https://docs.mcp.cloudflare.com/sse"] - } - - name: Remote MCP - Workers Builds - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["mcp-remote", "https://builds.mcp.cloudflare.com/sse"] - } - - name: Remote MCP - Radar - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["mcp-remote", "https://radar.mcp.cloudflare.com/sse"] - } - - name: Remote MCP - Browser Rendering - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["mcp-remote", "https://browser.mcp.cloudflare.com/sse"] - } - parameters: - - name: Cloudflare API Token - key: CLOUDFLARE_API_TOKEN - placeholder: your_cloudflare_api_token_here - - id: codegen - name: Codegen - description: - Enables parsing codebases and executing codemods through standardized model inference, supporting various - LLM providers via integration with the Codegen SDK. - author: codegen-sh - url: https://github.com/codegen-sh/codegen-sdk/tree/develop/codegen-examples/examples/codegen-mcp-server - tags: - - code-generation - - codemod - - code-parsing - - sdk-integration - - llm-tools - prerequisites: - - uv - - Python 3.12+ - content: - - name: UVX - prerequisites: - - Python and uv - content: > - { - "command": "uvx", - "args": [ - "--from", - "git+https://github.com/codegen-sh/codegen-sdk.git#egg=codegen-mcp-server&subdirectory=codegen-examples/examples/codegen-mcp-server", - "codegen-mcp-server" - ] - } - - name: Direct Execution - prerequisites: - - Python - - uv - content: > - { - "command": "uvx", - "args": ["--from", "git+https://github.com/codegen-sh/codegen-sdk.git#egg=codegen-mcp-server&subdirectory=codegen-examples/examples/codegen-mcp-server", "codegen-mcp-server"] - } - parameters: - - name: Prerequisites - key: PREREQUISITES - placeholder: Requires uv and Python 3.12+ - - id: composer-trade - name: Composer - description: - Official Composer MCP server that enables creation of automated investing strategies, backtesting, strategy - discovery, portfolio monitoring, and live trading through the Composer platform. - author: invest-composer - url: https://github.com/invest-composer/composer-trade-mcp - tags: - - trading - - investing - - backtesting - - portfolio-management - - financial-automation - - strategy-creation - - market-analysis - - composer-api - - algorithmic-trading - - risk-management - content: > - { - "command": "uvx", - "args": ["composer-trade-mcp==0.1.4", "--hash", "sha256:37d8fcfd6ddc9c8155633f755159f3fcb1a63e7acc2a32513613341a851c84e2"], - "env": { - "COMPOSER_API_KEY": "{{COMPOSER_API_KEY}}", - "COMPOSER_SECRET_KEY": "{{COMPOSER_SECRET_KEY}}" - } - } - parameters: - - name: Composer API Key - key: COMPOSER_API_KEY - placeholder: your_composer_api_key - optional: true - - name: Composer Secret Key - key: COMPOSER_SECRET_KEY - placeholder: your_composer_secret_key - optional: true - prerequisites: - - Python and uv - - Composer.trade account (optional for backtesting) - - Composer.trade subscription (required for live trading) - id: context7 name: Context7 description: @@ -782,87 +309,36 @@ items: - name: dbt Host key: DBT_HOST placeholder: cloud.getdbt.com - - id: e2b - name: Code Interpreter + - id: esignatures + name: eSignatures description: - Adds secure code execution capabilities to Claude Desktop using E2B Sandbox, supporting both JavaScript and - Python environments. - author: e2b-dev - url: https://github.com/e2b-dev/mcp-server + Manages digital contract workflows including creation, sending, and template management for electronic + signatures through the eSignatures platform. + author: esignaturescom + url: https://github.com/esignaturescom/mcp-server-esignatures tags: - - code-execution - - sandbox - - javascript - - python - - claude-integration + - digital-signatures + - contracts + - document-management + - templates + - collaboration content: - - name: NPX + - name: UVX prerequisites: - - Node.js + - Python + - uv content: | { - "command": "npx", - "args": ["-y", "@e2b/mcp-server"], + "command": "uvx", + "args": ["mcp-server-esignatures"], "env": { - "E2B_API_KEY": "{{E2B_API_KEY}}" + "ESIGNATURES_SECRET_TOKEN": "{{ESIGNATURES_SECRET_TOKEN}}" } } - - name: Smithery Installation + - name: UV Development prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@smithery/cli", "install", "e2b", "--client", "claude"] - } - - name: Local Development - content: | - { - "command": "node", - "args": ["{{E2B_PATH}}/packages/js/dist/index.js"], - "env": { - "E2B_API_KEY": "{{E2B_API_KEY}}" - } - } - parameters: - - name: E2B Path - key: E2B_PATH - placeholder: /path/to/e2b-mcp-server - optional: true - parameters: - - name: E2B API Key - key: E2B_API_KEY - placeholder: your_e2b_api_key - - id: esignatures - name: eSignatures - description: - Manages digital contract workflows including creation, sending, and template management for electronic - signatures through the eSignatures platform. - author: esignaturescom - url: https://github.com/esignaturescom/mcp-server-esignatures - tags: - - digital-signatures - - contracts - - document-management - - templates - - collaboration - content: - - name: UVX - prerequisites: - - Python - - uv - content: | - { - "command": "uvx", - "args": ["mcp-server-esignatures"], - "env": { - "ESIGNATURES_SECRET_TOKEN": "{{ESIGNATURES_SECRET_TOKEN}}" - } - } - - name: UV Development - prerequisites: - - Python - - uv + - Python + - uv content: | { "command": "uv", @@ -1042,76 +518,6 @@ items: key: FIREBASE_ONLY placeholder: auth,firestore,storage optional: true - - id: fireproof - name: Fireproof - description: A JSON document store server providing CRUD operations and field-based sorting queries, powered by - Fireproof database for seamless integration with AI systems. - author: fireproof-storage - url: https://github.com/fireproof-storage/mcp-database-server - tags: - - document-store - - json - - crud - - database - - storage - content: - - name: Node.js - content: | - { - "command": "node", - "args": ["{{FIREPROOF_PATH}}/build/index.js"] - } - - name: NPM Development - content: | - { - "command": "npm", - "args": ["start"], - "cwd": "{{FIREPROOF_PATH}}" - } - parameters: - - name: Fireproof MCP Path - key: FIREPROOF_PATH - placeholder: /path/to/fireproof-mcp - optional: true - - id: gdrive - name: Google Drive - description: - Enables searching, listing, and reading files from Google Drive, with automatic export of Google Workspace - files to common formats like Markdown, CSV, and PNG. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/gdrive - tags: - - google-drive - - file-management - - document-storage - - workspace - - file-search - prerequisites: - - Google account with Drive API access - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-gdrive"], - "env": { - "GDRIVE_CREDENTIALS_PATH": "{{GDRIVE_CREDENTIALS_PATH}}" - } - } - - name: Docker - prerequisites: - - Docker - content: > - { - "command": "docker", - "args": ["run", "-i", "--rm", "-v", "mcp-gdrive:/gdrive-server", "-e", "GDRIVE_CREDENTIALS_PATH=/gdrive-server/credentials.json", "mcp/gdrive"] - } - parameters: - - name: Google Drive Credentials Path - key: GDRIVE_CREDENTIALS_PATH - placeholder: /path/to/.gdrive-server-credentials.json - id: genkit name: Genkit Integration description: @@ -1240,174 +646,6 @@ items: - name: Repo key: REPO placeholder: typescript - - id: github - name: GitHub - description: GitHub's official MCP Server that provides seamless integration with GitHub APIs, enabling advanced - automation and interaction capabilities for developers and tools. - author: github - url: https://github.com/github/github-mcp-server - tags: - - github - - git - - repository-management - - issue-tracking - - pull-requests - - code-scanning - - collaboration - - api-integration - prerequisites: - - Node.js - - GitHub account - - Classic GitHub Personal Access Token (generate at https://github.com/settings/tokens/new) - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-github"], - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "{{GITHUB_PERSONAL_ACCESS_TOKEN}}" - } - } - parameters: - - name: GitHub Personal Access Token - key: GITHUB_PERSONAL_ACCESS_TOKEN - placeholder: "YOUR_GITHUB_PAT (classic PAT from https://github.com/settings/tokens/new)" - - id: gitlab - name: GitLab - description: - Enables comprehensive GitLab project management including file operations, issue tracking, merge requests, - and repository management through the GitLab API. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers/tree/main/src/gitlab - tags: - - gitlab - - git - - repository-management - - collaboration - - ci-cd - prerequisites: - - GitLab account - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-gitlab"], - "env": { - "GITLAB_PERSONAL_ACCESS_TOKEN": "{{GITLAB_PERSONAL_ACCESS_TOKEN}}", - "GITLAB_API_URL": "{{GITLAB_API_URL}}" - } - } - - name: Python/Pip - prerequisites: - - Python - content: | - { - "command": "python", - "args": ["-m", "mcp_server_gitlab"], - "env": { - "GITLAB_PERSONAL_ACCESS_TOKEN": "{{GITLAB_PERSONAL_ACCESS_TOKEN}}", - "GITLAB_API_URL": "{{GITLAB_API_URL}}" - } - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "mcp/gitlab"], - "env": { - "GITLAB_PERSONAL_ACCESS_TOKEN": "{{GITLAB_PERSONAL_ACCESS_TOKEN}}", - "GITLAB_API_URL": "{{GITLAB_API_URL}}" - } - } - parameters: - - name: GitLab Personal Access Token - key: GITLAB_PERSONAL_ACCESS_TOKEN - placeholder: your_gitlab_personal_access_token - - name: GitLab API URL - key: GITLAB_API_URL - placeholder: https://gitlab.com/api/v4 - - id: google-maps - name: Google Maps - description: Provides comprehensive access to Google Maps services including geocoding, place search, directions, - distance calculations, and elevation data through the Google Maps API. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers/tree/main/src/google-maps - tags: - - maps - - geocoding - - navigation - - places-api - - location-data - prerequisites: - - Google Cloud account with Maps API enabled - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-google-maps"], - "env": { - "GOOGLE_MAPS_API_KEY": "{{GOOGLE_MAPS_API_KEY}}" - } - } - - name: Python/Pip - prerequisites: - - Python - content: | - { - "command": "python", - "args": ["-m", "mcp_server_google_maps"], - "env": { - "GOOGLE_MAPS_API_KEY": "{{GOOGLE_MAPS_API_KEY}}" - } - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "mcp/google-maps"], - "env": { - "GOOGLE_MAPS_API_KEY": "{{GOOGLE_MAPS_API_KEY}}" - } - } - parameters: - - name: Google Maps API Key - key: GOOGLE_MAPS_API_KEY - placeholder: your_google_maps_api_key - - id: google-maps-platform-code-assist - name: Google Maps Platform Code Assist - description: - Official Google Maps Platform MCP for AI-powered code assistance. Provides tools to generate client-side - and server-side code for Maps, Routes, and Places APIs, helping developers build geospatial applications faster. - author: googlemaps - url: https://github.com/googlemaps/platform-ai - tags: - - google-maps - - code-generation - - geospatial - - maps - - routes - - places - - api-integration - - ai-assistant - - official - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@googlemaps/code-assist-mcp@0.2.0"] - } - id: google-workspace name: Google Workspace description: @@ -1602,51 +840,6 @@ items: "args": ["artisan", "boost:mcp"] } parameters: [] - - id: linear - name: Linear - description: - Facilitates project management with the Linear API, enabling issue tracking, project organization, and team - management through comprehensive tools for creating, updating, and managing work items. - author: cline - url: https://github.com/cline/linear-mcp - tags: - - project-management - - issue-tracking - - team-collaboration - - linear-api - - workflow - content: - - name: Node.js - prerequisites: - - Node.js - content: | - { - "command": "node", - "args": ["{{LINEAR_PATH}}/build/index.js"], - "env": { - "LINEAR_API_KEY": "{{LINEAR_API_KEY}}" - } - } - - name: NPM Development - prerequisites: - - Node.js - content: | - { - "command": "npm", - "args": ["start"], - "cwd": "{{LINEAR_PATH}}", - "env": { - "LINEAR_API_KEY": "{{LINEAR_API_KEY}}" - } - } - parameters: - - name: Linear API Key - key: LINEAR_API_KEY - placeholder: your_linear_api_key - - name: Linear MCP Path - key: LINEAR_PATH - placeholder: /path/to/linear-mcp - optional: true - id: mailtea name: Mailtea description: @@ -1712,50 +905,6 @@ items: - name: Memory File Path key: MEMORY_FILE_PATH placeholder: /path/to/custom/memory.json - - id: metoro - name: Kubernetes Observer - description: - Enables interaction with Kubernetes clusters through Metoro's observability platform, providing eBPF-based - telemetry and monitoring capabilities via natural language queries. - author: metoro-io - url: https://github.com/metoro-io/metoro-mcp-server - tags: - - kubernetes - - observability - - ebpf - - telemetry - - microservices - content: - - name: Go Binary - content: | - { - "command": "{{METORO_BINARY_PATH}}/metoro-mcp-server", - "args": [], - "env": { - "METORO_AUTH_TOKEN": "{{METORO_AUTH_TOKEN}}", - "METORO_API_URL": "{{METORO_API_URL}}" - } - } - - name: Demo Cluster - content: > - { - "command": "{{METORO_BINARY_PATH}}/metoro-mcp-server", - "args": [], - "env": { - "METORO_AUTH_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoiOThlZDU1M2QtYzY4ZC00MDRhLWFhZjItNDM2ODllNWJiMGUzIiwiZW1haWwiOiJ0ZXN0QGNocmlzYmF0dGFyYmVlLmNvbSIsImV4cCI6MTgyMTI0NzIzN30.7G6alDpcZh_OThYj293Jce5rjeOBqAhOlANR_Fl5auw", - "METORO_API_URL": "https://demo.us-east.metoro.io" - } - } - parameters: - - name: Metoro Binary Path - key: METORO_BINARY_PATH - placeholder: /path/to/metoro-mcp-server - - name: Metoro Auth Token - key: METORO_AUTH_TOKEN - placeholder: your_metoro_auth_token - - name: Metoro API URL - key: METORO_API_URL - placeholder: https://us-east.metoro.io - id: microsoft-learn name: Microsoft Learn description: Official Microsoft Learn MCP server that provides access to Microsoft Learn content, including @@ -1776,70 +925,6 @@ items: "type": "streamable-http", "url": "https://learn.microsoft.com/api/mcp" } - - id: motherduck - name: MotherDuck - description: Enables database operations with MotherDuck and local DuckDB, providing tools for connection - initialization, schema reading, and query execution. - author: motherduckdb - url: https://github.com/motherduckdb/mcp-server-motherduck - tags: - - duckdb - - motherduck - - sql - - database-management - - query-execution - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-motherduck", "--db-path", "md:", "--motherduck-token", "{{MOTHERDUCK_TOKEN}}"] - } - - name: UVX with Local DuckDB - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-motherduck", "--db-path", "{{DB_PATH}}"] - } - parameters: - - name: Database Path - key: DB_PATH - placeholder: /path/to/your/local.db - - name: UVX with In-Memory Database - prerequisites: - - Python - - uv - content: | - { - "command": "uvx", - "args": ["mcp-server-motherduck", "--db-path", ":memory:"] - } - - name: UVX with Read-Only Mode - prerequisites: - - Python - - uv - content: | - { - "command": "uvx", - "args": ["mcp-server-motherduck", "--db-path", "{{DB_PATH}}", "--read-only"] - } - - name: UVX with SaaS Mode - prerequisites: - - Python - - uv - content: > - { - "command": "uvx", - "args": ["mcp-server-motherduck", "--db-path", "md:", "--motherduck-token", "{{MOTHERDUCK_TOKEN}}", "--saas-mode"] - } - parameters: - - name: MotherDuck Token - key: MOTHERDUCK_TOKEN - placeholder: your_motherduck_token_here - id: n8n-mcp name: n8n-MCP description: @@ -1936,112 +1021,13 @@ items: - name: n8n API Key key: N8N_API_KEY placeholder: your-api-key - - id: needle - name: Needle Search + - id: nia + name: Nia description: - Enables document management and natural language search capabilities through the Needle platform, allowing - users to organize, store, and retrieve documents using Claude's language model. - author: needle-ai - url: https://github.com/needle-ai/needle-mcp - tags: - - document-management - - search - - knowledge-base - - needle-api - - content-organization - content: - - name: Smithery Installation - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@smithery/cli", "install", "needle-mcp", "--client", "claude"] - } - - name: UV with Local Development - content: | - { - "command": "uv", - "args": ["--directory", "{{NEEDLE_PATH}}", "run", "needle-mcp"], - "env": { - "NEEDLE_API_KEY": "{{NEEDLE_API_KEY}}" - } - } - parameters: - - name: Needle Path - key: NEEDLE_PATH - placeholder: /path/to/needle-mcp - optional: true - parameters: - - name: Needle API Key - key: NEEDLE_API_KEY - placeholder: your_needle_api_key - - id: neon - name: Neon Database - description: - Enables natural language interaction with Neon PostgreSQL databases, supporting project management, schema - migrations, SQL queries, and database operations through the Neon API. - author: neondatabase - url: https://github.com/neondatabase/mcp-server-neon - tags: - - postgresql - - database-management - - migrations - - sql - - neon-api - content: - - name: Remote MCP - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "mcp-remote", "https://mcp.neon.tech/sse"] - } - - name: NPX with API Key - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@neondatabase/mcp-server-neon", "start", "{{NEON_API_KEY}}"] - } - - name: Smithery Installation - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@smithery/cli", "install", "neon", "--client", "claude"] - } - - name: Windows CMD - prerequisites: - - Node.js - content: | - { - "command": "cmd", - "args": ["/c", "npx", "-y", "@neondatabase/mcp-server-neon", "start", "{{NEON_API_KEY}}"] - } - - name: Windows WSL - prerequisites: - - Node.js - content: | - { - "command": "wsl", - "args": ["npx", "-y", "@neondatabase/mcp-server-neon", "start", "{{NEON_API_KEY}}"] - } - parameters: - - name: Neon API Key - key: NEON_API_KEY - placeholder: your_neon_api_key - optional: true - - id: nia - name: Nia - description: - Nia is an API and MCP layer that gives agents continuously updated context from libraries, research papers, - and docs, so they don't hallucinate and you skip manual ingestion. - author: Nozomio Labs - url: https://docs.trynia.ai + Nia is an API and MCP layer that gives agents continuously updated context from libraries, research papers, + and docs, so they don't hallucinate and you skip manual ingestion. + author: Nozomio Labs + url: https://docs.trynia.ai tags: - documentation - knowledge-base @@ -2066,80 +1052,6 @@ items: - name: Nia API Key key: NIA_API_KEY placeholder: your_nia_api_key_here - - id: notion - name: Notion - description: Official Notion MCP Server that provides seamless integration with Notion APIs, enabling advanced - automation and interaction capabilities for managing pages, databases, comments, and content within Notion - workspaces. - author: makenotion - url: https://github.com/makenotion/notion-mcp-server - tags: - - notion - - productivity - - note-taking - - database-management - - content-management - - collaboration - - workspace - - api-integration - prerequisites: - - Notion account with integration access - content: - - name: NPX - prerequisites: - - Node.js - content: > - { - "command": "npx", - "args": ["-y", "@notionhq/notion-mcp-server"], - "env": { - "OPENAPI_MCP_HEADERS": "{\"Authorization\": \"Bearer {{NOTION_API_KEY}}\", \"Notion-Version\": \"2022-06-28\"}" - } - } - - name: Docker Hub Image - prerequisites: - - Docker - content: > - { - "command": "docker", - "args": [ - "run", - "--rm", - "-i", - "-e", "OPENAPI_MCP_HEADERS", - "mcp/notion" - ], - "env": { - "OPENAPI_MCP_HEADERS": "{\"Authorization\": \"Bearer {{NOTION_API_KEY}}\", \"Notion-Version\": \"2022-06-28\"}" - } - } - - name: Docker Local Build - prerequisites: - - Docker - content: > - { - "command": "docker", - "args": [ - "run", - "--rm", - "-i", - "-e", - "OPENAPI_MCP_HEADERS={\"Authorization\": \"Bearer {{NOTION_API_KEY}}\", \"Notion-Version\": \"2022-06-28\"}", - "notion-mcp-server" - ] - } - - name: Smithery Installation - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@smithery/cli", "install", "@makenotion/notion-mcp-server", "--client", "claude"] - } - parameters: - - name: Notion API Key - key: NOTION_API_KEY - placeholder: ntn_your_notion_integration_token - id: oxylabs name: Oxylabs Scraper description: @@ -2258,442 +1170,6 @@ items: - name: Storage State Path key: STORAGE_STATE_PATH placeholder: /path/to/storage.json - - id: postgres - name: PostgreSQL Reader - description: - Provides read-only access to PostgreSQL databases, allowing LLMs to inspect database schemas and execute - read-only queries within protected transactions. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/postgres - tags: - - postgresql - - database-queries - - schema-inspection - - read-only - - sql - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-postgres", "{{POSTGRESQL_URL}}"] - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "mcp/postgres", "{{POSTGRESQL_URL}}"] - } - parameters: - - name: PostgreSQL URL - key: POSTGRESQL_URL - placeholder: postgresql://user:password@localhost:5432/mydb - - id: postgrest - name: Postgrest - description: - Enables database operations on PostgreSQL through PostgREST, supporting SQL-to-REST conversion and direct - API requests for querying and modifying data. - author: supabase-community - url: https://github.com/supabase-community/mcp-supabase/tree/HEAD/packages/mcp-server-postgrest - tags: - - postgresql - - postgrest - - database-api - - sql - - supabase - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": [ - "-y", - "@supabase/mcp-server-postgrest@0.0.11", - "--apiUrl", - "{{POSTGREST_API_URL}}", - "--apiKey", - "{{POSTGREST_API_KEY}}", - "--schema", - "{{POSTGREST_SCHEMA}}" - ] - } - - name: NPX with Supabase - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": [ - "-y", - "@supabase/mcp-server-postgrest@0.0.11", - "--apiUrl", - "https://{{SUPABASE_PROJECT_REF}}.supabase.co/rest/v1", - "--apiKey", - "{{SUPABASE_ANON_KEY}}", - "--schema", - "public" - ] - } - parameters: - - name: Supabase Project Reference - key: SUPABASE_PROJECT_REF - placeholder: your-project-ref - - name: Supabase Anon Key - key: SUPABASE_ANON_KEY - placeholder: your_supabase_anon_key - - name: Local Development - content: | - { - "command": "node", - "args": ["{{POSTGREST_PATH}}/dist/index.js"], - "env": { - "POSTGREST_API_URL": "{{POSTGREST_API_URL}}", - "POSTGREST_API_KEY": "{{POSTGREST_API_KEY}}", - "POSTGREST_SCHEMA": "{{POSTGREST_SCHEMA}}" - } - } - parameters: - - name: PostgREST MCP Path - key: POSTGREST_PATH - placeholder: /path/to/mcp-server-postgrest - optional: true - parameters: - - name: PostgREST API URL - key: POSTGREST_API_URL - placeholder: https://your-project-ref.supabase.co/rest/v1 - - name: PostgREST API Key - key: POSTGREST_API_KEY - placeholder: your_postgrest_api_key - optional: true - - name: PostgREST Schema - key: POSTGREST_SCHEMA - placeholder: public - - id: puppeteer - name: Puppeteer - description: - Provides browser automation capabilities using Puppeteer, enabling web page interaction, screenshots, and - JavaScript execution in a real browser environment. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/puppeteer - tags: - - web-automation - - screenshots - - browser-control - - javascript - - testing - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-puppeteer"] - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "mcp/puppeteer"] - } - - id: qdrant - name: Qdrant - description: - A semantic memory layer enabling storage and retrieval of vector-based memories using the Qdrant vector - search engine, with support for both cloud and local deployments. - author: qdrant - url: https://github.com/qdrant/mcp-server-qdrant - tags: - - vector-search - - semantic-memory - - embeddings - - storage - - retrieval - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-qdrant"], - "env": { - "QDRANT_URL": "{{QDRANT_URL}}", - "QDRANT_API_KEY": "{{QDRANT_API_KEY}}", - "COLLECTION_NAME": "{{COLLECTION_NAME}}", - "EMBEDDING_MODEL": "{{EMBEDDING_MODEL}}" - } - } - - name: UVX with Local Database - prerequisites: - - Python - - uv - content: | - { - "command": "uvx", - "args": ["mcp-server-qdrant"], - "env": { - "QDRANT_LOCAL_PATH": "{{QDRANT_LOCAL_PATH}}", - "COLLECTION_NAME": "{{COLLECTION_NAME}}", - "EMBEDDING_MODEL": "{{EMBEDDING_MODEL}}" - } - } - parameters: - - name: Qdrant Local Path - key: QDRANT_LOCAL_PATH - placeholder: /path/to/qdrant/database - - name: UVX with SSE Transport - prerequisites: - - Python - - uv - content: | - { - "command": "uvx", - "args": ["mcp-server-qdrant", "--transport", "sse"], - "env": { - "QDRANT_URL": "{{QDRANT_URL}}", - "QDRANT_API_KEY": "{{QDRANT_API_KEY}}", - "COLLECTION_NAME": "{{COLLECTION_NAME}}", - "FASTMCP_PORT": "{{FASTMCP_PORT}}" - } - } - parameters: - - name: FastMCP Port - key: FASTMCP_PORT - placeholder: "8000" - - name: Docker - prerequisites: - - Docker - content: > - { - "command": "docker", - "args": ["run", "-p", "8000:8000", "-e", "QDRANT_URL", "-e", "QDRANT_API_KEY", "-e", "COLLECTION_NAME", "mcp-server-qdrant"], - "env": { - "QDRANT_URL": "{{QDRANT_URL}}", - "QDRANT_API_KEY": "{{QDRANT_API_KEY}}", - "COLLECTION_NAME": "{{COLLECTION_NAME}}" - } - } - - name: Smithery Installation - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@smithery/cli", "install", "mcp-server-qdrant", "--client", "claude"] - } - parameters: - - name: Qdrant URL - key: QDRANT_URL - placeholder: https://xyz-example.eu-central.aws.cloud.qdrant.io:6333 - - name: Qdrant API Key - key: QDRANT_API_KEY - placeholder: your_qdrant_api_key - - name: Collection Name - key: COLLECTION_NAME - placeholder: your-collection-name - - name: Embedding Model - key: EMBEDDING_MODEL - placeholder: sentence-transformers/all-MiniLM-L6-v2 - optional: true - - id: raygun - name: Raygun - description: Provides comprehensive access to Raygun's error tracking, crash reporting, and real user monitoring - features through API integration, enabling management of applications, errors, deployments, and performance - metrics. - author: MindscapeHQ - url: https://github.com/MindscapeHQ/mcp-server-raygun - tags: - - error-tracking - - crash-reporting - - performance-monitoring - - debugging - - application-monitoring - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@raygun.io/mcp-server-raygun"], - "env": { - "RAYGUN_PAT_TOKEN": "{{RAYGUN_PAT_TOKEN}}" - } - } - - name: Node.js - content: | - { - "command": "node", - "args": ["{{RAYGUN_PATH}}/build/index.js"], - "env": { - "RAYGUN_PAT_TOKEN": "{{RAYGUN_PAT_TOKEN}}", - "SOURCEMAP_ALLOWED_DIRS": "{{SOURCEMAP_ALLOWED_DIRS}}" - } - } - parameters: - - name: Source Map Allowed Directories - key: SOURCEMAP_ALLOWED_DIRS - placeholder: /path/to/sourcemaps,/another/path - - name: Raygun MCP Path - key: RAYGUN_PATH - placeholder: /path/to/mcp-server-raygun - parameters: - - name: Raygun PAT Token - key: RAYGUN_PAT_TOKEN - placeholder: your_raygun_pat_token - - id: redis - name: Redis - description: - Provides access to Redis key-value stores, enabling operations like setting, getting, deleting, and listing - keys with optional expiration time support. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers/tree/main/src/redis - tags: - - redis - - key-value-store - - caching - - data-storage - - database-operations - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-redis", "--url", "{{REDIS_URL}}"] - } - - name: Python/Pip - prerequisites: - - Python - content: | - { - "command": "python", - "args": ["-m", "mcp_server_redis", "--url", "{{REDIS_URL}}"] - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "mcp/redis", "--url", "{{REDIS_URL}}"] - } - - name: UVX with Authentication - prerequisites: - - Python - - uv - content: > - { - "command": "uvx", - "args": ["mcp-server-redis", "--url", "{{REDIS_URL}}", "--username", "{{REDIS_USERNAME}}", "--password", "{{REDIS_PASSWORD}}"] - } - parameters: - - name: Redis Username - key: REDIS_USERNAME - placeholder: your_redis_username - - name: Redis Password - key: REDIS_PASSWORD - placeholder: your_redis_password - - name: Python/Pip with Authentication - prerequisites: - - Python - content: > - { - "command": "python", - "args": ["-m", "mcp_server_redis", "--url", "{{REDIS_URL}}", "--username", "{{REDIS_USERNAME}}", "--password", "{{REDIS_PASSWORD}}"] - } - parameters: - - name: Redis Username - key: REDIS_USERNAME - placeholder: your_redis_username - - name: Redis Password - key: REDIS_PASSWORD - placeholder: your_redis_password - parameters: - - name: Redis URL - key: REDIS_URL - placeholder: redis://localhost:6379 - - id: riza - name: Riza - description: - Provides a secure code interpreter for executing LLM-generated code, with features for creating, saving, - managing, and executing code tools in an isolated environment. - author: riza-io - url: https://github.com/riza-io/riza-mcp - tags: - - code-execution - - sandbox - - code-interpreter - - tool-management - - security - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["@riza-io/riza-mcp"], - "env": { - "RIZA_API_KEY": "{{RIZA_API_KEY}}" - } - } - parameters: - - name: Riza API Key - key: RIZA_API_KEY - placeholder: your_riza_api_key - - id: sentry - name: Sentry - description: - Retrieves and analyzes error reports, stacktraces, and debugging information from Sentry.io, enabling AI - assistants to inspect and understand application issues. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/sentry - tags: - - error-tracking - - debugging - - stacktraces - - issue-monitoring - - application-monitoring - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-sentry", "--auth-token", "{{SENTRY_AUTH_TOKEN}}"] - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "-i", "--rm", "mcp/sentry", "--auth-token", "{{SENTRY_AUTH_TOKEN}}"] - } - - name: Python/Pip - prerequisites: - - Python - content: | - { - "command": "python", - "args": ["-m", "mcp_server_sentry", "--auth-token", "{{SENTRY_AUTH_TOKEN}}"] - } - parameters: - - name: Sentry Auth Token - key: SENTRY_AUTH_TOKEN - placeholder: your_sentry_auth_token_here - id: sequentialthinking name: Sequential Thinking description: @@ -2724,170 +1200,6 @@ items: "command": "docker", "args": ["run", "--rm", "-i", "mcp/sequentialthinking"] } - - id: slack - name: Slack - description: - Enables AI assistants to interact with Slack workspaces, providing tools for messaging, channel management, - reactions, user profiles, and thread management. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/slack - tags: - - slack - - messaging - - team-collaboration - - chat - - workspace-management - prerequisites: - - Slack workspace with bot permissions - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-slack"], - "env": { - "SLACK_BOT_TOKEN": "{{SLACK_BOT_TOKEN}}", - "SLACK_TEAM_ID": "{{SLACK_TEAM_ID}}", - "SLACK_CHANNEL_IDS": "{{SLACK_CHANNEL_IDS}}" - } - } - - name: Docker - prerequisites: - - Docker - content: > - { - "command": "docker", - "args": ["run", "-i", "--rm", "-e", "SLACK_BOT_TOKEN", "-e", "SLACK_TEAM_ID", "-e", "SLACK_CHANNEL_IDS", "mcp/slack"], - "env": { - "SLACK_BOT_TOKEN": "{{SLACK_BOT_TOKEN}}", - "SLACK_TEAM_ID": "{{SLACK_TEAM_ID}}", - "SLACK_CHANNEL_IDS": "{{SLACK_CHANNEL_IDS}}" - } - } - parameters: - - name: Slack Bot Token - key: SLACK_BOT_TOKEN - placeholder: YOUR_SLACK_BOT_TOKEN - - name: Slack Team ID - key: SLACK_TEAM_ID - placeholder: T01234567 - - name: Slack Channel IDs - key: SLACK_CHANNEL_IDS - placeholder: C01234567,C76543210 - optional: true - - id: smartsheet - name: Smartsheet - description: - A Model Context Protocol (MCP) server for interacting with the Smartsheet API. This server provides tools - for searching, retrieving, and updating Smartsheet sheets through the MCP protocol. Please follow the installation - instructions at https://github.com/smartsheet-platform/smar-mcp before using this server. - author: smartsheet-platform - url: https://github.com/smartsheet-platform/smar-mcp - tags: - - smartsheet - - project-management - - collaboration - - api-integration - - automation - - sheets - content: - - name: Local Development - prerequisites: - - Node.js - - npm - - Git - content: | - { - "command": "npm", - "args": ["start"], - "cwd": "{{SMARTSHEET_MCP_PATH}}", - "env": { - "SMARTSHEET_API_KEY": "{{SMARTSHEET_API_KEY}}" - } - } - parameters: - - name: Smartsheet API Key - key: SMARTSHEET_API_KEY - placeholder: your_smartsheet_api_token - - name: Smartsheet MCP Path - key: SMARTSHEET_MCP_PATH - placeholder: /path/to/smar-mcp - optional: true - - id: sqlite - name: SQLite - description: - Provides database interaction and business intelligence capabilities through SQLite, enabling SQL queries, - data analysis, and automated business insight generation. - author: modelcontextprotocol - url: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/sqlite - tags: - - sql - - data-analysis - - business-intelligence - - database-management - - sqlite - content: - - name: UVX - prerequisites: - - Python and uv - content: | - { - "command": "uvx", - "args": ["mcp-server-sqlite", "--db-path", "{{DB_PATH}}"] - } - - name: Docker - prerequisites: - - Docker - content: | - { - "command": "docker", - "args": ["run", "--rm", "-i", "-v", "mcp-sqlite:/mcp", "mcp/sqlite", "--db-path", "{{DB_PATH}}"] - } - parameters: - - name: Database Path - key: DB_PATH - placeholder: /path/to/database.db - - id: stripe - name: Stripe - description: - Enables AI agents to interact with Stripe APIs, supporting operations like customer management, payment - processing, product creation, and invoice handling through function calling. - author: stripe - url: https://github.com/stripe/agent-toolkit - tags: - - payments - - billing - - invoicing - - stripe-api - - financial-services - prerequisites: - - Stripe account - content: - - name: NPX - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@stripe/mcp", "--tools=all", "--api-key={{STRIPE_SECRET_KEY}}"] - } - - name: NPX with Environment Variable - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@stripe/mcp", "--tools=all"], - "env": { - "STRIPE_SECRET_KEY": "{{STRIPE_SECRET_KEY}}" - } - } - parameters: - - name: Stripe Secret Key - key: STRIPE_SECRET_KEY - placeholder: sk_test_your_stripe_secret_key - id: supabase name: Supabase description: The official Supabase MCP server connects your AI tools to Supabase to perform tasks like launching @@ -3046,115 +1358,6 @@ items: "type": "streamable-http", "url": "https://tradehand.com/api/mcp" } - - id: verodat - name: Verodat - description: - Enables AI systems to interact with Verodat's data management platform, providing capabilities for dataset - creation, querying, and AI-powered analysis across workspaces and accounts. - author: Verodat - url: https://github.com/Verodat/verodat-mcp-server - tags: - - data-management - - dataset-operations - - workspace-management - - data-validation - - ai-integration - content: - - name: Smithery Installation - prerequisites: - - Node.js - content: | - { - "command": "npx", - "args": ["-y", "@smithery/cli", "install", "@Verodat/verodat-mcp-server", "--client", "claude"] - } - - name: Node.js - Consume Tools - content: | - { - "command": "node", - "args": ["{{VERODAT_PATH}}/build/src/consume.js"], - "env": { - "VERODAT_AI_API_KEY": "{{VERODAT_AI_API_KEY}}", - "VERODAT_API_BASE_URL": "{{VERODAT_API_BASE_URL}}" - } - } - - name: Node.js - Design Tools - content: | - { - "command": "node", - "args": ["{{VERODAT_PATH}}/build/src/design.js"], - "env": { - "VERODAT_AI_API_KEY": "{{VERODAT_AI_API_KEY}}", - "VERODAT_API_BASE_URL": "{{VERODAT_API_BASE_URL}}" - } - } - - name: Node.js - Manage Tools - content: | - { - "command": "node", - "args": ["{{VERODAT_PATH}}/build/src/manage.js"], - "env": { - "VERODAT_AI_API_KEY": "{{VERODAT_AI_API_KEY}}", - "VERODAT_API_BASE_URL": "{{VERODAT_API_BASE_URL}}" - } - } - parameters: - - name: Verodat AI API Key - key: VERODAT_AI_API_KEY - placeholder: your_verodat_ai_api_key - - name: Verodat API Base URL - key: VERODAT_API_BASE_URL - placeholder: https://verodat.io/api/v3 - - name: Verodat MCP Path - key: VERODAT_PATH - placeholder: /path/to/verodat-mcp-server - optional: true - - id: watsonx - name: WatsonX Flows - description: - Enables integration with watsonx.ai Flows Engine, providing tools for Google Books and Wikipedia searches - through a TypeScript-based MCP server implementation. - author: IBM - url: https://github.com/IBM/wxflows/tree/main/examples/mcp/javascript - tags: - - watsonx - - flows-engine - - tool-integration - - search-tools - - ibm-cloud - content: - - name: Node.js - content: | - { - "command": "node", - "args": ["{{WXFLOWS_PATH}}/build/index.js"], - "env": { - "WXFLOWS_APIKEY": "{{WXFLOWS_APIKEY}}", - "WXFLOWS_ENDPOINT": "{{WXFLOWS_ENDPOINT}}" - } - } - - name: NPM Development - content: | - { - "command": "npm", - "args": ["start"], - "cwd": "{{WXFLOWS_PATH}}", - "env": { - "WXFLOWS_APIKEY": "{{WXFLOWS_APIKEY}}", - "WXFLOWS_ENDPOINT": "{{WXFLOWS_ENDPOINT}}" - } - } - parameters: - - name: WatsonX API Key - key: WXFLOWS_APIKEY - placeholder: your_wxflows_api_key - - name: WatsonX Endpoint - key: WXFLOWS_ENDPOINT - placeholder: your_wxflows_endpoint - - name: WatsonX Flows Path - key: WXFLOWS_PATH - placeholder: /path/to/wxflows/examples/mcp/javascript - optional: true - id: youtube name: YouTube Subtitles description: Downloads and extracts YouTube video subtitles using yt-dlp, enabling AI assistants to analyze and diff --git a/src/core/config/__tests__/ContextProxy.spec.ts b/src/core/config/__tests__/ContextProxy.spec.ts index 5d78e16351..4766f87112 100644 --- a/src/core/config/__tests__/ContextProxy.spec.ts +++ b/src/core/config/__tests__/ContextProxy.spec.ts @@ -739,25 +739,6 @@ describe("ContextProxy", () => { }) describe("setProviderSettings", () => { - it("stores and returns the complete IO Intelligence configuration across secret and global state", async () => { - await proxy.setProviderSettings({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "ionet-secret", - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - }) - - expect(mockSecrets.store).toHaveBeenCalledWith("ioIntelligenceApiKey", "ionet-secret") - expect(mockGlobalState.update).toHaveBeenCalledWith( - "ioIntelligenceModelId", - "meta-llama/Llama-3.3-70B-Instruct", - ) - expect(proxy.getProviderSettings()).toMatchObject({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "ionet-secret", - ioIntelligenceModelId: "meta-llama/Llama-3.3-70B-Instruct", - }) - }) - it("stores and returns the complete NanoGPT configuration across secret and global state", async () => { await proxy.setProviderSettings({ apiProvider: providerIdentifiers.nanogpt, diff --git a/src/core/webview/__tests__/ClineProvider.spec.ts b/src/core/webview/__tests__/ClineProvider.spec.ts index f0f8c26ef0..b77792e15b 100644 --- a/src/core/webview/__tests__/ClineProvider.spec.ts +++ b/src/core/webview/__tests__/ClineProvider.spec.ts @@ -7185,7 +7185,6 @@ describe("ClineProvider - Router Models", () => { moonshot: {}, "opencode-go": mockModels, kenari: mockModels, - "io-intelligence": mockModels, nanogpt: mockModels, "kimi-code": {}, friendli: mockModels, @@ -7222,7 +7221,6 @@ describe("ClineProvider - Router Models", () => { .mockRejectedValueOnce(new Error("LiteLLM connection failed")) // litellm fail .mockResolvedValueOnce(mockModels) // opencode-go (public endpoint) .mockResolvedValueOnce(mockModels) // kenari (public endpoint) - .mockResolvedValueOnce(mockModels) // io-intelligence (public endpoint) .mockResolvedValueOnce(mockModels) // nanogpt (public endpoint) .mockResolvedValueOnce(mockModels) // friendli (public endpoint) @@ -7245,7 +7243,6 @@ describe("ClineProvider - Router Models", () => { moonshot: {}, "opencode-go": mockModels, kenari: mockModels, - "io-intelligence": mockModels, nanogpt: mockModels, "kimi-code": {}, friendli: mockModels, @@ -7352,7 +7349,6 @@ describe("ClineProvider - Router Models", () => { moonshot: {}, "opencode-go": mockModels, kenari: mockModels, - "io-intelligence": mockModels, nanogpt: mockModels, "kimi-code": {}, friendli: mockModels, diff --git a/src/core/webview/__tests__/webviewMessageHandler.routerModels.spec.ts b/src/core/webview/__tests__/webviewMessageHandler.routerModels.spec.ts index 2107a85a9c..b7da723414 100644 --- a/src/core/webview/__tests__/webviewMessageHandler.routerModels.spec.ts +++ b/src/core/webview/__tests__/webviewMessageHandler.routerModels.spec.ts @@ -134,8 +134,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { return { "requesty/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.vercelAiGateway: return { "vercel/model": { contextWindow: 8192, supportsPromptCache: false } } - case providerIdentifiers.ioIntelligence: - return { "io/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.litellm: return { "litellm/model": { contextWindow: 8192, supportsPromptCache: false } } default: @@ -206,8 +204,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { return { "requesty/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.vercelAiGateway: return { "vercel/model": { contextWindow: 8192, supportsPromptCache: false } } - case providerIdentifiers.ioIntelligence: - return { "io/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.litellm: return { "litellm/model": { contextWindow: 8192, supportsPromptCache: false } } default: @@ -259,8 +255,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { return { "requesty/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.vercelAiGateway: return { "vercel/model": { contextWindow: 8192, supportsPromptCache: false } } - case providerIdentifiers.ioIntelligence: - return { "io/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.litellm: return { "litellm/model": { contextWindow: 8192, supportsPromptCache: false } } default: @@ -511,103 +505,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { expect(getModelsMock).toHaveBeenCalledWith(deepSeekOptions, handlerForProvider(providerIdentifiers.deepseek)) }) - // One catalog per IO Intelligence key, so a fetch made with the wrong key publishes the wrong catalog. - const ioIntelligenceCatalogs: Record< - string, - Record - > = { - "stored-io-key": { "io/stored-key-model": { contextWindow: 8192, supportsPromptCache: false } }, - "unsaved-io-key": { "io/unsaved-key-model": { contextWindow: 8192, supportsPromptCache: false } }, - "": { "io/public-model": { contextWindow: 8192, supportsPromptCache: false } }, - } - - const mockIoIntelligenceCatalogsByKey = () => { - const baseGetModels = getModelsMock.getMockImplementation() - getModelsMock.mockImplementation(async (options) => - options?.provider === providerIdentifiers.ioIntelligence - ? ioIntelligenceCatalogs[options.apiKey] - : baseGetModels?.(options), - ) - } - - const expectPublishedIoIntelligenceCatalog = (apiKey: string) => { - expect(mockProvider.postMessageToWebview).toHaveBeenCalledWith( - expect.objectContaining({ - type: RouterModelsMessageType.routerModels, - routerModels: expect.objectContaining({ - [providerIdentifiers.ioIntelligence]: ioIntelligenceCatalogs[apiKey], - }), - }), - ) - } - - it("fetches IO Intelligence models with the stored key and does not flush the cache", async () => { - mockProvider.getState.mockResolvedValue({ - apiConfiguration: { ioIntelligenceApiKey: "stored-io-key" }, - }) - mockIoIntelligenceCatalogsByKey() - - await webviewMessageHandler(mockProvider, { - type: RouterModelsMessageType.requestRouterModels, - }) - - const ioFlushCalls = flushModelsMock.mock.calls.filter( - (c) => c[0]?.provider === providerIdentifiers.ioIntelligence, - ) - expect(ioFlushCalls.length).toBe(0) - - const ioCalls = getModelsMock.mock.calls.filter((c) => c[0]?.provider === providerIdentifiers.ioIntelligence) - expect(ioCalls.length).toBe(1) - expect(ioCalls[0][0]).toEqual({ provider: providerIdentifiers.ioIntelligence, apiKey: "stored-io-key" }) - expectPublishedIoIntelligenceCatalog("stored-io-key") - }) - - it("flushes IO Intelligence models with an unsaved key from message values instead of the stored key", async () => { - mockProvider.getState.mockResolvedValue({ - apiConfiguration: { ioIntelligenceApiKey: "stored-io-key" }, - }) - mockIoIntelligenceCatalogsByKey() - - await webviewMessageHandler(mockProvider, { - type: RouterModelsMessageType.requestRouterModels, - values: { ioIntelligenceApiKey: "unsaved-io-key" }, - }) - - const ioFlushCalls = flushModelsMock.mock.calls.filter( - (c) => c[0]?.provider === providerIdentifiers.ioIntelligence, - ) - expect(ioFlushCalls.length).toBe(1) - expect(ioFlushCalls[0][0]).toEqual({ provider: providerIdentifiers.ioIntelligence, apiKey: "unsaved-io-key" }) - - const ioCalls = getModelsMock.mock.calls.filter((c) => c[0]?.provider === providerIdentifiers.ioIntelligence) - expect(ioCalls.length).toBe(1) - expect(ioCalls[0][0]).toEqual({ provider: providerIdentifiers.ioIntelligence, apiKey: "unsaved-io-key" }) - expectPublishedIoIntelligenceCatalog("unsaved-io-key") - }) - - it("treats an explicitly empty unsaved IO Intelligence key as the public catalog, not the stored key", async () => { - mockProvider.getState.mockResolvedValue({ - apiConfiguration: { ioIntelligenceApiKey: "stored-io-key" }, - }) - mockIoIntelligenceCatalogsByKey() - - await webviewMessageHandler(mockProvider, { - type: RouterModelsMessageType.requestRouterModels, - values: { ioIntelligenceApiKey: "" }, - }) - - const ioFlushCalls = flushModelsMock.mock.calls.filter( - (c) => c[0]?.provider === providerIdentifiers.ioIntelligence, - ) - expect(ioFlushCalls.length).toBe(1) - expect(ioFlushCalls[0][0]).toEqual({ provider: providerIdentifiers.ioIntelligence, apiKey: "" }) - - const ioCalls = getModelsMock.mock.calls.filter((c) => c[0]?.provider === providerIdentifiers.ioIntelligence) - expect(ioCalls.length).toBe(1) - expect(ioCalls[0][0]).toEqual({ provider: providerIdentifiers.ioIntelligence, apiKey: "" }) - expectPublishedIoIntelligenceCatalog("") - }) - it("fetches Moonshot models when stored Moonshot credentials exist", async () => { mockProvider.getState.mockResolvedValue({ apiConfiguration: { @@ -628,8 +525,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { return { "requesty/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.vercelAiGateway: return { "vercel/model": { contextWindow: 8192, supportsPromptCache: false } } - case providerIdentifiers.ioIntelligence: - return { "io/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.litellm: return { "litellm/model": { contextWindow: 8192, supportsPromptCache: false } } default: @@ -720,8 +615,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { return { "requesty/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.vercelAiGateway: return { "vercel/model": { contextWindow: 8192, supportsPromptCache: false } } - case providerIdentifiers.ioIntelligence: - return { "io/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.litellm: return { "litellm/model": { contextWindow: 8192, supportsPromptCache: false } } default: @@ -773,8 +666,6 @@ describe("webviewMessageHandler - requestRouterModels provider filter", () => { return { "requesty/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.vercelAiGateway: return { "vercel/model": { contextWindow: 8192, supportsPromptCache: false } } - case providerIdentifiers.ioIntelligence: - return { "io/model": { contextWindow: 8192, supportsPromptCache: false } } case providerIdentifiers.litellm: return { "litellm/model": { contextWindow: 8192, supportsPromptCache: false } } default: diff --git a/src/core/webview/__tests__/webviewMessageHandler.spec.ts b/src/core/webview/__tests__/webviewMessageHandler.spec.ts index d49a9f9c1a..e1cc7dc844 100644 --- a/src/core/webview/__tests__/webviewMessageHandler.spec.ts +++ b/src/core/webview/__tests__/webviewMessageHandler.spec.ts @@ -1186,11 +1186,6 @@ describe("webviewMessageHandler - requestRouterModels", () => { expect.objectContaining({ provider: providerIdentifiers.kenari }), expect.anything(), ) - // IO Intelligence's /models catalog is public and may optionally be scoped by a key. - expect(mockGetModels).toHaveBeenCalledWith( - { provider: providerIdentifiers.ioIntelligence, apiKey: undefined }, - expect.anything(), - ) // NanoGPT's detailed catalog is public and may optionally be scoped by a key. expect(mockGetModels).toHaveBeenCalledWith( { provider: providerIdentifiers.nanogpt, apiKey: undefined }, @@ -1214,7 +1209,6 @@ describe("webviewMessageHandler - requestRouterModels", () => { moonshot: {}, "opencode-go": mockModels, kenari: mockModels, - "io-intelligence": mockModels, nanogpt: mockModels, "kimi-code": {}, friendli: mockModels, @@ -1514,7 +1508,6 @@ describe("webviewMessageHandler - requestRouterModels", () => { moonshot: {}, "opencode-go": mockModels, kenari: mockModels, - "io-intelligence": mockModels, nanogpt: mockModels, "kimi-code": {}, friendli: mockModels, @@ -1543,7 +1536,6 @@ describe("webviewMessageHandler - requestRouterModels", () => { .mockRejectedValueOnce(new Error("LiteLLM connection failed")) // litellm .mockResolvedValueOnce(mockModels) // opencode-go .mockResolvedValueOnce(mockModels) // kenari - .mockResolvedValueOnce(mockModels) // io-intelligence .mockResolvedValueOnce(mockModels) // nanogpt await webviewMessageHandler(mockClineProvider, { @@ -1582,7 +1574,6 @@ describe("webviewMessageHandler - requestRouterModels", () => { moonshot: {}, "opencode-go": mockModels, kenari: mockModels, - "io-intelligence": mockModels, nanogpt: mockModels, "kimi-code": {}, friendli: mockModels, diff --git a/src/core/webview/webviewMessageHandler.ts b/src/core/webview/webviewMessageHandler.ts index d20efcb9db..6641ff259f 100644 --- a/src/core/webview/webviewMessageHandler.ts +++ b/src/core/webview/webviewMessageHandler.ts @@ -1222,7 +1222,6 @@ export const webviewMessageHandler = async ( [providerIdentifiers.moonshot]: {}, [providerIdentifiers.opencodeGo]: {}, [providerIdentifiers.kenari]: {}, - [providerIdentifiers.ioIntelligence]: {}, [providerIdentifiers.nanogpt]: {}, [providerIdentifiers.kimiCode]: {}, [providerIdentifiers.friendli]: {}, @@ -1406,22 +1405,6 @@ export const webviewMessageHandler = async ( options: { provider: providerIdentifiers.kenari, apiKey: kenariApiKey }, }) - // IO Intelligence's /models catalog is public; an optional key can scope - // the visible model set. Prefer an explicitly supplied unsaved key. - const ioIntelligenceApiKey = message?.values?.ioIntelligenceApiKey ?? apiConfiguration.ioIntelligenceApiKey - if (message?.values?.ioIntelligenceApiKey !== undefined) { - await flushModels( - { provider: providerIdentifiers.ioIntelligence, apiKey: ioIntelligenceApiKey }, - handlerFor(apiConfiguration, providerIdentifiers.ioIntelligence), - true, - ) - } - - candidates.push({ - key: providerIdentifiers.ioIntelligence, - options: { provider: providerIdentifiers.ioIntelligence, apiKey: ioIntelligenceApiKey }, - }) - // NanoGPT's detailed catalog is public, while an optional key can expose a // different allowlist. Prefer an explicitly supplied unsaved key and use the // same key-scoped options for refresh and retrieval. diff --git a/src/shared/__tests__/ProfileValidator.spec.ts b/src/shared/__tests__/ProfileValidator.spec.ts index 6e8f404872..b2ffd46a73 100644 --- a/src/shared/__tests__/ProfileValidator.spec.ts +++ b/src/shared/__tests__/ProfileValidator.spec.ts @@ -31,7 +31,6 @@ describe("ProfileValidator", () => { ["ollama", { ollamaModelId: "model" }], ["requesty", { requestyModelId: "model" }], ["unbound", { unboundModelId: "model" }], - ["ioIntelligence", { ioIntelligenceModelId: "model" }], ["poe", { apiModelId: "model" }], ["moonshot", { apiModelId: "model" }], ["kimiCode", { apiModelId: "model" }], @@ -302,25 +301,6 @@ describe("ProfileValidator", () => { expect(ProfileValidator.isProfileAllowed(profile, allowList)).toBe(true) }) - // Test for io-intelligence provider which uses ioIntelligenceModelId - it(`should extract ioIntelligenceModelId for io-intelligence provider`, () => { - const allowList: OrganizationAllowList = { - allowAll: false, - providers: { - [providerIdentifiers.ioIntelligence]: { allowAll: false, models: ["test-model"] }, - }, - } - const profile: ProviderSettings = { - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceModelId: "test-model", - } - - expect(ProfileValidator.isProfileAllowed(profile, allowList)).toBe(true) - expect( - ProfileValidator.isProfileAllowed({ ...profile, ioIntelligenceModelId: "other-model" }, allowList), - ).toBe(false) - }) - it("should extract vsCodeLmModelSelector.id for vscode-lm provider", () => { const allowList: OrganizationAllowList = { allowAll: false, diff --git a/src/shared/api.ts b/src/shared/api.ts index 31197482ec..d65ee30ace 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -184,7 +184,6 @@ const _dynamicProviderExtras = { [providerIdentifiers.moonshot]: {} as { apiKey?: string; baseUrl?: string }, [providerIdentifiers.opencodeGo]: {} as { apiKey?: string }, [providerIdentifiers.kenari]: {} as { apiKey?: string }, - [providerIdentifiers.ioIntelligence]: {} as { apiKey?: string }, [providerIdentifiers.nanogpt]: {} as { apiKey?: string }, [providerIdentifiers.kimiCode]: {} as { apiKey?: string }, [providerIdentifiers.friendli]: {} as object, diff --git a/webview-ui/playwright/gallery/stories.tsx b/webview-ui/playwright/gallery/stories.tsx index b4959e8cca..818e69d199 100644 --- a/webview-ui/playwright/gallery/stories.tsx +++ b/webview-ui/playwright/gallery/stories.tsx @@ -290,39 +290,6 @@ export const stories: Record = { ) }, - "io-intelligence-settings": async () => { - const [{ AppProviders }, { IOIntelligence }, { providerIdentifiers }] = await Promise.all([ - import("../AppProviders"), - import("@/components/settings/providers/IOIntelligence"), - import("@roo-code/types"), - ]) - type ProviderSettings = React.ComponentProps["apiConfiguration"] - - function IOIntelligenceSettingsStory() { - const [apiConfiguration, setApiConfiguration] = useState({ - apiProvider: providerIdentifiers.ioIntelligence, - }) - return ( -
-
- - setApiConfiguration((current) => ({ ...current, [field]: value })) - } - organizationAllowList={{ allowAll: true, providers: {} }} - /> -
-
- ) - } - - return ( - - - - ) - }, "layout-clipped-text": () => (
diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx index 27c9e230b1..aff93a377b 100644 --- a/webview-ui/src/components/settings/ApiOptions.tsx +++ b/webview-ui/src/components/settings/ApiOptions.tsx @@ -86,7 +86,6 @@ import { VercelAiGateway, OpenCodeGo, Kenari, - IOIntelligence, NanoGPT, ZooGateway, MiniMax, @@ -716,17 +715,6 @@ const ApiOptions = ({ /> )} - {selectedProvider === providerIdentifiers.ioIntelligence && ( - - )} - {selectedProvider === providerIdentifiers.nanogpt && ( { VercelAiGateway: provider("provider-vercel-ai-gateway"), OpenCodeGo: provider("provider-opencode-go"), Kenari: provider("provider-kenari"), - IOIntelligence: provider("provider-io-intelligence"), NanoGPT: provider("provider-nanogpt"), ZooGateway: provider("provider-zoo-gateway"), MiniMax: provider("provider-minimax"), @@ -404,7 +403,6 @@ describe("ApiOptions interactions", () => { providerIdentifiers.vercelAiGateway, providerIdentifiers.opencodeGo, providerIdentifiers.kenari, - providerIdentifiers.ioIntelligence, providerIdentifiers.nanogpt, providerIdentifiers.zooGateway, providerIdentifiers.fireworks, diff --git a/webview-ui/src/components/settings/__tests__/ApiOptions.provider-filtering.spec.tsx b/webview-ui/src/components/settings/__tests__/ApiOptions.provider-filtering.spec.tsx index 97a0996480..90f62f5fee 100644 --- a/webview-ui/src/components/settings/__tests__/ApiOptions.provider-filtering.spec.tsx +++ b/webview-ui/src/components/settings/__tests__/ApiOptions.provider-filtering.spec.tsx @@ -292,7 +292,6 @@ describe("ApiOptions Provider Filtering", () => { expect(providerValues).toContain("ollama") expect(providerValues).toContain("lmstudio") expect(providerValues).toContain("litellm") - expect(providerValues).toContain("io-intelligence") expect(providerValues).toContain("requesty") }) diff --git a/webview-ui/src/components/settings/__tests__/ApiOptions.spec.tsx b/webview-ui/src/components/settings/__tests__/ApiOptions.spec.tsx index 9a8ed5441b..faa4cd32fc 100644 --- a/webview-ui/src/components/settings/__tests__/ApiOptions.spec.tsx +++ b/webview-ui/src/components/settings/__tests__/ApiOptions.spec.tsx @@ -517,7 +517,6 @@ describe("ApiOptions", () => { expect(optionTexts).toContain("OpenAI") expect(optionTexts).toContain("Anthropic") expect(optionTexts).toContain("NanoGPT") - expect(optionTexts).toContain("IO Intelligence") // Note: The mock doesn't implement search functionality, so we're just verifying // that the select element is rendered with the expected options diff --git a/webview-ui/src/components/settings/__tests__/ModelPicker.spec.tsx b/webview-ui/src/components/settings/__tests__/ModelPicker.spec.tsx index aca8836ae2..2dce9555e9 100644 --- a/webview-ui/src/components/settings/__tests__/ModelPicker.spec.tsx +++ b/webview-ui/src/components/settings/__tests__/ModelPicker.spec.tsx @@ -7,7 +7,6 @@ import { type Mock } from "vitest" import { bedrockDefaultModelId, - ioIntelligenceDefaultModelId, litellmDefaultModelId, type ModelInfo, type ProviderSettings, @@ -372,86 +371,6 @@ describe("ModelPicker", () => { }) }) - describe("IO Intelligence custom model selection", () => { - const ioIntelligenceModels: Record = { - "meta-llama/Llama-3.3-70B-Instruct": { description: "Catalog model", ...modelInfo }, - } - - const renderIOIntelligencePicker = (apiConfiguration: ProviderSettings, setField: SetApiConfigurationField) => - renderWithExtensionState( - , - { queryClient }, - ) - - beforeEach(() => { - mockUseRouterModels.mockReturnValue(createRouterModelsResult({ "io-intelligence": ioIntelligenceModels })) - }) - - it("keeps a custom model ID in the picker instead of reverting to the default", async () => { - // The stored id is what the handler sends requests with, so the picker - // must keep displaying it even though the fetched catalog lacks it. - const customModelId = "custom-org/custom-model" - let apiConfiguration: ProviderSettings = { apiProvider: providerIdentifiers.ioIntelligence } - const setField = vi.fn(function (field: K, value: ProviderSettings[K]) { - apiConfiguration = { ...apiConfiguration, [field]: value } - }) - - const { rerender } = await act(async () => { - return renderIOIntelligencePicker(apiConfiguration, setField) - }) - - expect(screen.getByTestId("model-picker-button")).toHaveTextContent(ioIntelligenceDefaultModelId) - - await act(async () => { - fireEvent.click(screen.getByTestId("model-picker-button")) - }) - await act(async () => { - vi.advanceTimersByTime(100) - }) - await act(async () => { - fireEvent.input(screen.getByTestId("model-input"), { target: { value: customModelId } }) - }) - await act(async () => { - vi.advanceTimersByTime(100) - }) - await act(async () => { - fireEvent.click(screen.getByTestId("use-custom-model")) - }) - await act(async () => { - vi.advanceTimersByTime(100) - }) - - expect(setField).toHaveBeenCalledWith("ioIntelligenceModelId", customModelId) - - await act(async () => { - rerender( - , - ) - }) - - expect(screen.getByTestId("model-picker-button")).toHaveTextContent(customModelId) - expect(screen.getByTestId("model-picker-button")).not.toHaveTextContent(ioIntelligenceDefaultModelId) - }) - }) - describe("Bedrock pasted ARN", () => { const appProfileArn = "arn:aws:bedrock:us-west-2:123456789012:application-inference-profile/abcd1234efgh" const bedrockModels = getStaticModelsForProvider(providerIdentifiers.bedrock) diff --git a/webview-ui/src/components/settings/__tests__/SettingsView.unsaved-changes.spec.tsx b/webview-ui/src/components/settings/__tests__/SettingsView.unsaved-changes.spec.tsx index 1bc4ab1afb..758161c148 100644 --- a/webview-ui/src/components/settings/__tests__/SettingsView.unsaved-changes.spec.tsx +++ b/webview-ui/src/components/settings/__tests__/SettingsView.unsaved-changes.spec.tsx @@ -757,85 +757,4 @@ describe("SettingsView - Unsaved Changes Detection", () => { expect(onDone).toHaveBeenCalledOnce() expect(postMessage).not.toHaveBeenCalledWith(expect.objectContaining({ type: "upsertApiConfiguration" })) }) - - it("buffers and saves the complete IO Intelligence provider configuration from cached state", async () => { - const liveApiConfiguration = { - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "original-key", - ioIntelligenceModelId: "meta-llama/original", - } - ;(useExtensionState as ReturnType).mockReturnValue({ - ...defaultExtensionState, - apiConfiguration: liveApiConfiguration, - }) - vi.mocked(ApiOptions).mockImplementation(({ apiConfiguration, setApiConfigurationField }) => ( -
- setApiConfigurationField("ioIntelligenceApiKey", event.target.value)} - /> - setApiConfigurationField("ioIntelligenceModelId", event.target.value)} - /> -
- )) - - renderWithExtensionState(, { queryClient }) - - expect(await screen.findByTestId("cached-ionet-key")).toHaveValue("original-key") - expect(screen.getByTestId("cached-ionet-model")).toHaveValue("meta-llama/original") - - fireEvent.change(screen.getByTestId("cached-ionet-key"), { target: { value: "unsaved-key" } }) - fireEvent.change(screen.getByTestId("cached-ionet-model"), { target: { value: "zai-org/next" } }) - - expect(liveApiConfiguration).toEqual({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "original-key", - ioIntelligenceModelId: "meta-llama/original", - }) - expect(postMessage).not.toHaveBeenCalledWith(expect.objectContaining({ type: "upsertApiConfiguration" })) - - fireEvent.click(screen.getByTestId("save-button")) - - expect(postMessage).toHaveBeenCalledWith({ - type: "upsertApiConfiguration", - text: "default", - apiConfiguration: { - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "unsaved-key", - ioIntelligenceModelId: "zai-org/next", - }, - }) - }) - - it("discards IO Intelligence cached edits and restores the extension values", async () => { - const onDone = vi.fn() - ;(useExtensionState as ReturnType).mockReturnValue({ - ...defaultExtensionState, - apiConfiguration: { - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "saved-key", - ioIntelligenceModelId: "meta-llama/saved", - }, - }) - vi.mocked(ApiOptions).mockImplementation(({ apiConfiguration, setApiConfigurationField }) => ( - setApiConfigurationField("ioIntelligenceApiKey", event.target.value)} - /> - )) - - renderWithExtensionState(, { queryClient }) - fireEvent.change(await screen.findByTestId("cached-ionet-key"), { target: { value: "discard-me" } }) - fireEvent.click(screen.getByText("settings:common.done")) - fireEvent.click(await screen.findByText("settings:unsavedChangesDialog.discardButton")) - - await waitFor(() => expect(screen.getByTestId("cached-ionet-key")).toHaveValue("saved-key")) - expect(onDone).toHaveBeenCalledOnce() - expect(postMessage).not.toHaveBeenCalledWith(expect.objectContaining({ type: "upsertApiConfiguration" })) - }) }) diff --git a/webview-ui/src/components/settings/constants.ts b/webview-ui/src/components/settings/constants.ts index 8590e536fe..468010ef6b 100644 --- a/webview-ui/src/components/settings/constants.ts +++ b/webview-ui/src/components/settings/constants.ts @@ -71,7 +71,6 @@ export const PROVIDERS: Array<{ value: string; label: string; proxy: boolean }> { value: providerIdentifiers.vercelAiGateway, label: "Vercel AI Gateway", proxy: false }, { value: providerIdentifiers.opencodeGo, label: "Opencode Go", proxy: false }, { value: providerIdentifiers.kenari, label: "Kenari", proxy: false }, - { value: providerIdentifiers.ioIntelligence, label: "IO Intelligence", proxy: false }, { value: providerIdentifiers.nanogpt, label: "NanoGPT", proxy: false }, { value: providerIdentifiers.zooGateway, label: "Zoo Gateway", proxy: false }, { value: providerIdentifiers.minimax, label: "MiniMax", proxy: false }, diff --git a/webview-ui/src/components/settings/providers/IOIntelligence.tsx b/webview-ui/src/components/settings/providers/IOIntelligence.tsx deleted file mode 100644 index 07a3a1d8bc..0000000000 --- a/webview-ui/src/components/settings/providers/IOIntelligence.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import { useCallback } from "react" -import { useDebounce } from "react-use" -import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react" - -import { - type OrganizationAllowList, - type ProviderSettings, - type RouterModels, - ioIntelligenceDefaultModelId, - providerIdentifiers, - RouterModelsMessageType, -} from "@roo-code/types" - -import { VSCodeButtonLink } from "@src/components/common/VSCodeButtonLink" -import { useAppTranslation } from "@src/i18n/TranslationContext" -import { vscode } from "@src/utils/vscode" - -import { ModelPicker } from "../ModelPicker" -import { inputEventTransform } from "../transforms" - -type IOIntelligenceProps = { - apiConfiguration: ProviderSettings - setApiConfigurationField: (field: K, value: ProviderSettings[K]) => void - routerModels?: RouterModels - organizationAllowList: OrganizationAllowList - modelValidationError?: string - simplifySettings?: boolean -} - -export const IOIntelligence = ({ - apiConfiguration, - setApiConfigurationField, - routerModels, - organizationAllowList, - modelValidationError, - simplifySettings, -}: IOIntelligenceProps) => { - const { t } = useAppTranslation() - - const handleInputChange = useCallback( - ( - field: K, - transform: (event: E) => ProviderSettings[K] = inputEventTransform, - ) => - (event: E | Event) => { - setApiConfigurationField(field, transform(event as E)) - }, - [setApiConfigurationField], - ) - - // Debounced model refresh, only executed 250ms after the user stops - // typing the key (same cadence as the provider refreshes in ApiOptions), - // so each keystroke does not trigger a catalog request. - useDebounce( - () => { - vscode.postMessage({ - type: RouterModelsMessageType.requestRouterModels, - values: { - provider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: apiConfiguration.ioIntelligenceApiKey, - }, - }) - }, - 250, - [apiConfiguration.ioIntelligenceApiKey], - ) - - return ( - <> - - - -
- {t("settings:providers.apiKeyStorageNotice")} -
- {!apiConfiguration.ioIntelligenceApiKey && ( - - {t("settings:providers.ioIntelligence.getApiKey")} - - )} - - - - ) -} diff --git a/webview-ui/src/components/settings/providers/__tests__/IOIntelligence.spec.tsx b/webview-ui/src/components/settings/providers/__tests__/IOIntelligence.spec.tsx deleted file mode 100644 index 954fd92c8d..0000000000 --- a/webview-ui/src/components/settings/providers/__tests__/IOIntelligence.spec.tsx +++ /dev/null @@ -1,182 +0,0 @@ -import { act, fireEvent, render, screen } from "@testing-library/react" - -import { - type OrganizationAllowList, - type ProviderSettings, - type RouterModels, - ioIntelligenceDefaultModelId, - providerIdentifiers, - RouterModelsMessageType, -} from "@roo-code/types" - -import { IOIntelligence } from "../IOIntelligence" - -const { postMessageMock } = vi.hoisted(() => ({ postMessageMock: vi.fn() })) - -vi.mock("@src/utils/vscode", () => ({ vscode: { postMessage: postMessageMock } })) - -vi.mock("@src/i18n/TranslationContext", () => ({ - useAppTranslation: () => ({ t: (key: string) => key }), -})) - -vi.mock("@vscode/webview-ui-toolkit/react", () => ({ - VSCodeTextField: ({ - children, - value, - onInput, - type, - }: React.ComponentProps<"input"> & { children: React.ReactNode }) => ( -
- {children} - -
- ), -})) - -vi.mock("@src/components/common/VSCodeButtonLink", () => ({ - VSCodeButtonLink: ({ children, href }: React.ComponentProps<"a">) => ( - - {children} - - ), -})) - -vi.mock("../../ModelPicker", () => ({ - ModelPicker: ({ - defaultModelId, - models, - modelIdKey, - serviceName, - }: { - defaultModelId: string - models: object - modelIdKey: string - serviceName: string - }) => ( -
- ), -})) - -describe("IOIntelligence", () => { - const organizationAllowList: OrganizationAllowList = { allowAll: true, providers: {} } - const setApiConfigurationField = vi.fn() - const routerModels: RouterModels = { - openrouter: {}, - "vercel-ai-gateway": {}, - "zoo-gateway": {}, - litellm: {}, - requesty: {}, - unbound: {}, - poe: {}, - deepseek: {}, - moonshot: {}, - "opencode-go": {}, - kenari: {}, - nanogpt: {}, - "io-intelligence": { - "meta-llama/Llama-3.3-70B-Instruct": { contextWindow: 128000, maxTokens: 8192, supportsPromptCache: false }, - }, - "kimi-code": {}, - friendli: {}, - ollama: {}, - lmstudio: {}, - } - - const renderComponent = (apiConfiguration: ProviderSettings = {}) => - render( - , - ) - - beforeEach(() => vi.clearAllMocks()) - - afterEach(() => vi.useRealTimers()) - - it("renders the secret key input, CTA, and dynamic model picker", () => { - renderComponent({ ioIntelligenceApiKey: "stored" }) - - expect(screen.getByTestId("ionet-api-key")).toHaveAttribute("type", "password") - expect(screen.getByText("settings:providers.ioIntelligence.apiKey")).toBeInTheDocument() - expect(screen.queryByTestId("ionet-get-key")).not.toBeInTheDocument() - expect(screen.getByTestId("model-picker")).toHaveAttribute( - "data-default-model-id", - ioIntelligenceDefaultModelId, - ) - expect(screen.getByTestId("model-picker")).toHaveAttribute("data-model-id-key", "ioIntelligenceModelId") - expect(screen.getByTestId("model-picker")).toHaveAttribute("data-model-count", "1") - expect(screen.getByText("settings:providers.apiKeyStorageNotice")).toBeInTheDocument() - }) - - it("shows the get-key CTA only when no key is configured", () => { - renderComponent({}) - - expect(screen.getByTestId("ionet-get-key")).toHaveAttribute("href", "https://ai.io.net/ai/api-keys") - expect(screen.getByText("settings:providers.ioIntelligence.getApiKey")).toBeInTheDocument() - }) - - it("updates the cached key with exact values", () => { - renderComponent({ ioIntelligenceApiKey: "" }) - - fireEvent.input(screen.getByTestId("ionet-api-key"), { target: { value: "new-secret" } }) - - expect(setApiConfigurationField).toHaveBeenCalledWith("ioIntelligenceApiKey", "new-secret") - }) - - it("refreshes models with the unsaved cached key 250ms after it stops changing", () => { - vi.useFakeTimers() - const rerenderWithKey = (rerender: ReturnType["rerender"], ioIntelligenceApiKey: string) => - rerender( - , - ) - - const { rerender } = renderComponent({ ioIntelligenceApiKey: "first-key" }) - - act(() => vi.advanceTimersByTime(249)) - expect(postMessageMock).not.toHaveBeenCalled() - act(() => vi.advanceTimersByTime(1)) - expect(postMessageMock).toHaveBeenCalledTimes(1) - expect(postMessageMock).toHaveBeenLastCalledWith({ - type: RouterModelsMessageType.requestRouterModels, - values: { provider: providerIdentifiers.ioIntelligence, ioIntelligenceApiKey: "first-key" }, - }) - - // Each edit restarts the timer, so intermediate values never reach the host. - rerenderWithKey(rerender, "unsaved-") - act(() => vi.advanceTimersByTime(200)) - rerenderWithKey(rerender, "unsaved-key") - act(() => vi.advanceTimersByTime(249)) - expect(postMessageMock).toHaveBeenCalledTimes(1) - - act(() => vi.advanceTimersByTime(1)) - expect(postMessageMock).toHaveBeenCalledTimes(2) - expect(postMessageMock).toHaveBeenLastCalledWith({ - type: RouterModelsMessageType.requestRouterModels, - values: { provider: providerIdentifiers.ioIntelligence, ioIntelligenceApiKey: "unsaved-key" }, - }) - }) - - it("drops a pending model refresh when it unmounts", () => { - vi.useFakeTimers() - const { unmount } = renderComponent({ ioIntelligenceApiKey: "first-key" }) - - unmount() - act(() => vi.advanceTimersByTime(250)) - - expect(postMessageMock).not.toHaveBeenCalled() - }) -}) diff --git a/webview-ui/src/components/settings/providers/__tests__/IOIntelligence.visual.tsx b/webview-ui/src/components/settings/providers/__tests__/IOIntelligence.visual.tsx deleted file mode 100644 index f845abe39e..0000000000 --- a/webview-ui/src/components/settings/providers/__tests__/IOIntelligence.visual.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { expect, test } from "../../../../../playwright/coverage-fixture" -import { mountedStory } from "../../../../../playwright/mounted-story" - -test("renders the IO Intelligence settings for an unconfigured profile", async ({ mount, page }) => { - await page.setViewportSize({ width: 480, height: 480 }) - const component = mountedStory(await mount("io-intelligence-settings")) - const story = component.getByTestId("io-intelligence-settings-story") - - await expect(story).toHaveScreenshot("io-intelligence-settings.png") -}) diff --git a/webview-ui/src/components/settings/providers/__tests__/NanoGPT.spec.tsx b/webview-ui/src/components/settings/providers/__tests__/NanoGPT.spec.tsx index a78ab39a1b..bdc76a0add 100644 --- a/webview-ui/src/components/settings/providers/__tests__/NanoGPT.spec.tsx +++ b/webview-ui/src/components/settings/providers/__tests__/NanoGPT.spec.tsx @@ -103,7 +103,6 @@ describe("NanoGPT", () => { "opencode-go": {}, kenari: {}, nanogpt: { "openai/test": { contextWindow: 1, maxTokens: 1, supportsPromptCache: false } }, - "io-intelligence": {}, "kimi-code": {}, friendli: {}, ollama: {}, diff --git a/webview-ui/src/components/settings/providers/__tests__/__screenshots__/io-intelligence-settings.png b/webview-ui/src/components/settings/providers/__tests__/__screenshots__/io-intelligence-settings.png deleted file mode 100644 index af3b207382..0000000000 Binary files a/webview-ui/src/components/settings/providers/__tests__/__screenshots__/io-intelligence-settings.png and /dev/null differ diff --git a/webview-ui/src/components/settings/providers/index.ts b/webview-ui/src/components/settings/providers/index.ts index ee583e563e..12ea4cd786 100644 --- a/webview-ui/src/components/settings/providers/index.ts +++ b/webview-ui/src/components/settings/providers/index.ts @@ -26,7 +26,6 @@ export { Friendli } from "./Friendli" export { VercelAiGateway } from "./VercelAiGateway" export { OpenCodeGo } from "./OpenCodeGo" export { Kenari } from "./Kenari" -export { IOIntelligence } from "./IOIntelligence" export { NanoGPT } from "./NanoGPT" export { ZooGateway } from "./ZooGateway" export { MiniMax } from "./MiniMax" diff --git a/webview-ui/src/components/settings/utils/__tests__/providerModelConfig.spec.ts b/webview-ui/src/components/settings/utils/__tests__/providerModelConfig.spec.ts index ee0c1103d1..5ee319ada1 100644 --- a/webview-ui/src/components/settings/utils/__tests__/providerModelConfig.spec.ts +++ b/webview-ui/src/components/settings/utils/__tests__/providerModelConfig.spec.ts @@ -2,7 +2,6 @@ import { type RouterModels, anthropicDefaultModelId, friendliModels, - ioIntelligenceDefaultModelId, mainlandZAiDefaultModelId, nanoGptDefaultModelId, providerIdentifiers, @@ -187,13 +186,6 @@ describe("providerModelConfig", () => { default: nanoGptDefaultModelId, }) }) - - it("returns IO Intelligence's dynamic model field and fallback", () => { - expect(getProviderModelConfig(providerIdentifiers.ioIntelligence)).toEqual({ - field: "ioIntelligenceModelId", - default: ioIntelligenceDefaultModelId, - }) - }) }) describe("getProviderDocsSlug", () => { diff --git a/webview-ui/src/components/settings/utils/providerModelConfig.ts b/webview-ui/src/components/settings/utils/providerModelConfig.ts index 474755e124..c70a36a90d 100644 --- a/webview-ui/src/components/settings/utils/providerModelConfig.ts +++ b/webview-ui/src/components/settings/utils/providerModelConfig.ts @@ -28,7 +28,6 @@ import { vercelAiGatewayDefaultModelId, opencodeGoDefaultModelId, kenariDefaultModelId, - ioIntelligenceDefaultModelId, nanoGptDefaultModelId, zooGatewayDefaultModelId, getZAiModels, @@ -144,10 +143,6 @@ const PROVIDER_MODEL_CONFIG: Partial> }, [providerIdentifiers.opencodeGo]: { field: "opencodeGoModelId", default: opencodeGoDefaultModelId }, [providerIdentifiers.kenari]: { field: "kenariModelId", default: kenariDefaultModelId }, - [providerIdentifiers.ioIntelligence]: { - field: "ioIntelligenceModelId", - default: ioIntelligenceDefaultModelId, - }, [providerIdentifiers.nanogpt]: { field: "nanoGptModelId", default: nanoGptDefaultModelId }, [providerIdentifiers.zooGateway]: { field: "zooGatewayModelId", default: zooGatewayDefaultModelId }, [providerIdentifiers.openai]: { field: "openAiModelId" }, diff --git a/webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts b/webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts index db0ac6d7b1..5721213679 100644 --- a/webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts +++ b/webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts @@ -18,8 +18,6 @@ import { BEDROCK_MAX_TOKENS, bedrockModels, litellmDefaultModelInfo, - ioIntelligenceDefaultModelId, - ioIntelligenceDefaultModelInfo, kenariDefaultModelId, kenariDefaultModelInfo, nanoGptDefaultModelId, @@ -1289,102 +1287,6 @@ describe("useSelectedModel", () => { }) }) - describe("io-intelligence provider", () => { - it("uses dynamic metadata for the configured IO Intelligence model", () => { - const dynamicInfo: ModelInfo = { - maxTokens: 8_192, - contextWindow: 131_072, - supportsPromptCache: true, - description: "Dynamic IO Intelligence model", - } - mockUseRouterModels.mockReturnValue( - createRouterModelsResult({ "io-intelligence": { "zai-org/GLM-4.6": dynamicInfo } }), - ) - mockUseOpenRouterModelProviders.mockReturnValue(createOpenRouterModelProvidersResult({})) - - const { result } = renderHook( - () => - useSelectedModel({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceModelId: "zai-org/GLM-4.6", - }), - { wrapper: createWrapper() }, - ) - - expect(result.current.id).toBe("zai-org/GLM-4.6") - expect(result.current.info).toEqual(dynamicInfo) - }) - - it("uses IO Intelligence's shared fallback when its dynamic catalog is empty", () => { - mockUseRouterModels.mockReturnValue(createRouterModelsResult({ "io-intelligence": {} })) - mockUseOpenRouterModelProviders.mockReturnValue(createOpenRouterModelProvidersResult({})) - - const { result } = renderHook( - () => - useSelectedModel({ - apiProvider: providerIdentifiers.ioIntelligence, - // ioIntelligenceModelId intentionally omitted - }), - { wrapper: createWrapper() }, - ) - - expect(result.current.id).toBe(ioIntelligenceDefaultModelId) - expect(result.current.info).toEqual(ioIntelligenceDefaultModelInfo) - }) - - it("preserves a configured model ID that is absent from the fetched catalog", () => { - mockUseRouterModels.mockReturnValue( - createRouterModelsResult({ - "io-intelligence": { - "meta-llama/Llama-3.3-70B-Instruct": { - maxTokens: 8_192, - contextWindow: 131_072, - supportsPromptCache: false, - }, - }, - }), - ) - mockUseOpenRouterModelProviders.mockReturnValue(createOpenRouterModelProvidersResult({})) - - const { result } = renderHook( - () => - useSelectedModel({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceModelId: "custom-org/custom-model", - }), - { wrapper: createWrapper() }, - ) - - // The stored id is what requests are sent with, so the picker must show it - // rather than the default; only the metadata falls back. - expect(result.current.id).toBe("custom-org/custom-model") - expect(result.current.info).toEqual(ioIntelligenceDefaultModelInfo) - }) - - it("preserves the configured model ID when the catalog fetch errors", () => { - // A cold /models failure settles the router query with no data. The - // hook must still resolve and keep the configured ID (the handler - // sends requests with it) instead of resetting to the provider default. - mockUseRouterModels.mockReturnValue( - createRouterModelsResult(undefined, { isLoading: false, isError: true }), - ) - mockUseOpenRouterModelProviders.mockReturnValue(createOpenRouterModelProvidersResult({})) - - const { result } = renderHook( - () => - useSelectedModel({ - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceModelId: "zai-org/GLM-4.6", - }), - { wrapper: createWrapper() }, - ) - - expect(result.current.id).toBe("zai-org/GLM-4.6") - expect(result.current.info).toEqual(ioIntelligenceDefaultModelInfo) - expect(result.current.isError).toBe(true) - }) - }) - describe("openai provider", () => { beforeEach(() => { mockUseRouterModels.mockReturnValue(createRouterModelsResult({ openrouter: {}, requesty: {}, litellm: {} })) diff --git a/webview-ui/src/components/ui/hooks/useSelectedModel.ts b/webview-ui/src/components/ui/hooks/useSelectedModel.ts index 939dbb14ab..76cf42a68b 100644 --- a/webview-ui/src/components/ui/hooks/useSelectedModel.ts +++ b/webview-ui/src/components/ui/hooks/useSelectedModel.ts @@ -30,7 +30,6 @@ import { lMStudioDefaultModelInfo, opencodeGoDefaultModelInfo, kenariDefaultModelInfo, - ioIntelligenceDefaultModelInfo, nanoGptDefaultModelInfo, BEDROCK_1M_CONTEXT_MODEL_IDS, BEDROCK_DEFAULT_CONTEXT, @@ -126,17 +125,16 @@ export const useSelectedModel = (apiConfiguration: ProviderSettings) => { const needLmStudio = typeof lmStudioModelId !== "undefined" const needOllama = typeof ollamaModelId !== "undefined" - // LiteLLM and IO Intelligence may legitimately have no entry in the router - // payload (partial listing, failed fetch, renamed deployment) even though - // the configured ID is a valid selection, so they only need the fetch to - // settle. Other dynamic providers require a populated provider entry - // before the selection is resolved. + // LiteLLM may legitimately have no entry in the router payload (partial + // listing, failed fetch, renamed deployment) even though the configured ID + // is a valid selection, so it only needs the fetch to settle. Other + // dynamic providers require a populated provider entry before the + // selection is resolved. const hasValidRouterData = needRouterModels && dynamicProvider ? dynamicProvider === providerIdentifiers.friendli ? true // static friendliModels cover the window before /v1/models data arrives - : dynamicProvider === providerIdentifiers.litellm || - dynamicProvider === providerIdentifiers.ioIntelligence + : dynamicProvider === providerIdentifiers.litellm ? !routerModels.isLoading : routerModels.data && routerModels.data[dynamicProvider] !== undefined && @@ -571,15 +569,6 @@ function getSelectedModel({ const info = routerModels[providerIdentifiers.kenari]?.[id] ?? kenariDefaultModelInfo return { id, info } } - case providerIdentifiers.ioIntelligence: { - // A configured id is the user's explicit selection (ModelPicker's - // "Use custom model" path stores ids absent from the fetched catalog) - // and the handler sends requests with it, so keep it instead of - // displaying a default model that requests do not use. - const id = apiConfiguration.ioIntelligenceModelId || defaultModelId - const info = routerModels[providerIdentifiers.ioIntelligence]?.[id] ?? ioIntelligenceDefaultModelInfo - return { id, info } - } case providerIdentifiers.nanogpt: { const id = getValidatedModelId( apiConfiguration.nanoGptModelId, diff --git a/webview-ui/src/i18n/locales/ca/settings.json b/webview-ui/src/i18n/locales/ca/settings.json index d4dd13fe37..69301ec55c 100644 --- a/webview-ui/src/i18n/locales/ca/settings.json +++ b/webview-ui/src/i18n/locales/ca/settings.json @@ -392,12 +392,6 @@ "getOpencodeGoApiKey": "Obtenir clau API de Opencode Go", "kenariApiKey": "Clau API de Kenari", "getKenariApiKey": "Obtenir clau API de Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Clau API de IO Intelligence", - "getApiKey": "Obtenir clau API de IO Intelligence", - "model": "Model" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Clau API de NanoGPT", diff --git a/webview-ui/src/i18n/locales/de/settings.json b/webview-ui/src/i18n/locales/de/settings.json index fbb8cce371..77398b930f 100644 --- a/webview-ui/src/i18n/locales/de/settings.json +++ b/webview-ui/src/i18n/locales/de/settings.json @@ -391,12 +391,6 @@ "getOpencodeGoApiKey": "Opencode Go API-Schlüssel erhalten", "kenariApiKey": "Kenari API-Schlüssel", "getKenariApiKey": "Kenari API-Schlüssel erhalten", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API-Schlüssel", - "getApiKey": "IO Intelligence API-Schlüssel holen", - "model": "Modell" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API-Schlüssel", diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json index 7194b038a8..6d119a1e89 100644 --- a/webview-ui/src/i18n/locales/en/settings.json +++ b/webview-ui/src/i18n/locales/en/settings.json @@ -464,12 +464,6 @@ "getOpencodeGoApiKey": "Get Opencode Go API Key", "kenariApiKey": "Kenari API Key", "getKenariApiKey": "Get Kenari API Key", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API Key", - "getApiKey": "Get IO Intelligence API Key", - "model": "Model" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API Key", diff --git a/webview-ui/src/i18n/locales/es/settings.json b/webview-ui/src/i18n/locales/es/settings.json index 30f7d63b00..126fcdf40d 100644 --- a/webview-ui/src/i18n/locales/es/settings.json +++ b/webview-ui/src/i18n/locales/es/settings.json @@ -392,12 +392,6 @@ "getOpencodeGoApiKey": "Obtener clave API de Opencode Go", "kenariApiKey": "Clave API de Kenari", "getKenariApiKey": "Obtener clave API de Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Clave API de IO Intelligence", - "getApiKey": "Obtener clave API de IO Intelligence", - "model": "Modelo" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Clave API de NanoGPT", diff --git a/webview-ui/src/i18n/locales/fr/settings.json b/webview-ui/src/i18n/locales/fr/settings.json index ca9f33a709..f9333bfb7c 100644 --- a/webview-ui/src/i18n/locales/fr/settings.json +++ b/webview-ui/src/i18n/locales/fr/settings.json @@ -392,12 +392,6 @@ "getOpencodeGoApiKey": "Obtenir la clé API Opencode Go", "kenariApiKey": "Clé API Kenari", "getKenariApiKey": "Obtenir la clé API Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Clé API IO Intelligence", - "getApiKey": "Obtenir une clé API IO Intelligence", - "model": "Modèle" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Clé API NanoGPT", diff --git a/webview-ui/src/i18n/locales/hi/settings.json b/webview-ui/src/i18n/locales/hi/settings.json index 8cc1f845a3..3c73714015 100644 --- a/webview-ui/src/i18n/locales/hi/settings.json +++ b/webview-ui/src/i18n/locales/hi/settings.json @@ -391,12 +391,6 @@ "getOpencodeGoApiKey": "Opencode Go API कुंजी प्राप्त करें", "kenariApiKey": "Kenari API कुंजी", "getKenariApiKey": "Kenari API कुंजी प्राप्त करें", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API कुंजी", - "getApiKey": "IO Intelligence API कुंजी प्राप्त करें", - "model": "मॉडल" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API कुंजी", diff --git a/webview-ui/src/i18n/locales/id/settings.json b/webview-ui/src/i18n/locales/id/settings.json index 15dddffaca..5f441f1a47 100644 --- a/webview-ui/src/i18n/locales/id/settings.json +++ b/webview-ui/src/i18n/locales/id/settings.json @@ -390,12 +390,6 @@ "getOpencodeGoApiKey": "Dapatkan Opencode Go API Key", "kenariApiKey": "Kenari API Key", "getKenariApiKey": "Dapatkan Kenari API Key", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Kunci API IO Intelligence", - "getApiKey": "Dapatkan Kunci API IO Intelligence", - "model": "Model" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API Key", diff --git a/webview-ui/src/i18n/locales/it/settings.json b/webview-ui/src/i18n/locales/it/settings.json index 4e3eb81726..bf839c4314 100644 --- a/webview-ui/src/i18n/locales/it/settings.json +++ b/webview-ui/src/i18n/locales/it/settings.json @@ -392,12 +392,6 @@ "getOpencodeGoApiKey": "Ottieni chiave API Opencode Go", "kenariApiKey": "Chiave API Kenari", "getKenariApiKey": "Ottieni chiave API Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Chiave API IO Intelligence", - "getApiKey": "Ottieni chiave API IO Intelligence", - "model": "Modello" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Chiave API NanoGPT", diff --git a/webview-ui/src/i18n/locales/ja/settings.json b/webview-ui/src/i18n/locales/ja/settings.json index a981ca4bca..c425e6ac07 100644 --- a/webview-ui/src/i18n/locales/ja/settings.json +++ b/webview-ui/src/i18n/locales/ja/settings.json @@ -390,12 +390,6 @@ "getOpencodeGoApiKey": "Opencode Go APIキーを取得", "kenariApiKey": "Kenari APIキー", "getKenariApiKey": "Kenari APIキーを取得", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence APIキー", - "getApiKey": "IO Intelligence APIキーを取得", - "model": "モデル" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT APIキー", diff --git a/webview-ui/src/i18n/locales/ko/settings.json b/webview-ui/src/i18n/locales/ko/settings.json index e5dae565cd..5ac86a03db 100644 --- a/webview-ui/src/i18n/locales/ko/settings.json +++ b/webview-ui/src/i18n/locales/ko/settings.json @@ -390,12 +390,6 @@ "getOpencodeGoApiKey": "Opencode Go API 키 받기", "kenariApiKey": "Kenari API 키", "getKenariApiKey": "Kenari API 키 받기", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API 키", - "getApiKey": "IO Intelligence API 키 받기", - "model": "모델" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API 키", diff --git a/webview-ui/src/i18n/locales/nl/settings.json b/webview-ui/src/i18n/locales/nl/settings.json index 2df368c2e3..e677731e4d 100644 --- a/webview-ui/src/i18n/locales/nl/settings.json +++ b/webview-ui/src/i18n/locales/nl/settings.json @@ -391,12 +391,6 @@ "getOpencodeGoApiKey": "Opencode Go API-sleutel ophalen", "kenariApiKey": "Kenari API-sleutel", "getKenariApiKey": "Kenari API-sleutel ophalen", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API-sleutel", - "getApiKey": "IO Intelligence API-sleutel ophalen", - "model": "Model" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API-sleutel", diff --git a/webview-ui/src/i18n/locales/pl/settings.json b/webview-ui/src/i18n/locales/pl/settings.json index a58932f6fb..3a6bb834a7 100644 --- a/webview-ui/src/i18n/locales/pl/settings.json +++ b/webview-ui/src/i18n/locales/pl/settings.json @@ -393,12 +393,6 @@ "getOpencodeGoApiKey": "Uzyskaj klucz API Opencode Go", "kenariApiKey": "Klucz API Kenari", "getKenariApiKey": "Uzyskaj klucz API Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Klucz API IO Intelligence", - "getApiKey": "Uzyskaj klucz API IO Intelligence", - "model": "Model" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Klucz API NanoGPT", diff --git a/webview-ui/src/i18n/locales/pt-BR/settings.json b/webview-ui/src/i18n/locales/pt-BR/settings.json index f715ab4e77..537271bb52 100644 --- a/webview-ui/src/i18n/locales/pt-BR/settings.json +++ b/webview-ui/src/i18n/locales/pt-BR/settings.json @@ -392,12 +392,6 @@ "getOpencodeGoApiKey": "Obter chave API do Opencode Go", "kenariApiKey": "Chave API do Kenari", "getKenariApiKey": "Obter chave API do Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Chave de API do IO Intelligence", - "getApiKey": "Obter chave de API do IO Intelligence", - "model": "Modelo" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Chave API do NanoGPT", diff --git a/webview-ui/src/i18n/locales/ru/settings.json b/webview-ui/src/i18n/locales/ru/settings.json index aa4d5488bd..1e9ecf2287 100644 --- a/webview-ui/src/i18n/locales/ru/settings.json +++ b/webview-ui/src/i18n/locales/ru/settings.json @@ -393,12 +393,6 @@ "getOpencodeGoApiKey": "Получить ключ API Opencode Go", "kenariApiKey": "Ключ API Kenari", "getKenariApiKey": "Получить ключ API Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "API-ключ IO Intelligence", - "getApiKey": "Получить API-ключ IO Intelligence", - "model": "Модель" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Ключ API NanoGPT", diff --git a/webview-ui/src/i18n/locales/tr/settings.json b/webview-ui/src/i18n/locales/tr/settings.json index ef835a4925..3a794dcf0f 100644 --- a/webview-ui/src/i18n/locales/tr/settings.json +++ b/webview-ui/src/i18n/locales/tr/settings.json @@ -391,12 +391,6 @@ "getOpencodeGoApiKey": "Opencode Go API Anahtarı Al", "kenariApiKey": "Kenari API Anahtarı", "getKenariApiKey": "Kenari API Anahtarı Al", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API Anahtarı", - "getApiKey": "IO Intelligence API Anahtarı Al", - "model": "Model" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API Anahtarı", diff --git a/webview-ui/src/i18n/locales/vi/settings.json b/webview-ui/src/i18n/locales/vi/settings.json index e77b8acca5..5555e408d8 100644 --- a/webview-ui/src/i18n/locales/vi/settings.json +++ b/webview-ui/src/i18n/locales/vi/settings.json @@ -390,12 +390,6 @@ "getOpencodeGoApiKey": "Lấy khóa API Opencode Go", "kenariApiKey": "Khóa API Kenari", "getKenariApiKey": "Lấy khóa API Kenari", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "Khóa API IO Intelligence", - "getApiKey": "Lấy khóa API IO Intelligence", - "model": "Mô hình" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "Khóa API NanoGPT", diff --git a/webview-ui/src/i18n/locales/zh-CN/settings.json b/webview-ui/src/i18n/locales/zh-CN/settings.json index cd706d4875..c6f97f02bc 100644 --- a/webview-ui/src/i18n/locales/zh-CN/settings.json +++ b/webview-ui/src/i18n/locales/zh-CN/settings.json @@ -390,12 +390,6 @@ "getOpencodeGoApiKey": "获取 Opencode Go API 密钥", "kenariApiKey": "Kenari API 密钥", "getKenariApiKey": "获取 Kenari API 密钥", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API 密钥", - "getApiKey": "获取 IO Intelligence API 密钥", - "model": "模型" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API 密钥", diff --git a/webview-ui/src/i18n/locales/zh-TW/settings.json b/webview-ui/src/i18n/locales/zh-TW/settings.json index 199ec0d5a8..d1efa72146 100644 --- a/webview-ui/src/i18n/locales/zh-TW/settings.json +++ b/webview-ui/src/i18n/locales/zh-TW/settings.json @@ -417,12 +417,6 @@ "getOpencodeGoApiKey": "取得 Opencode Go API 金鑰", "kenariApiKey": "Kenari API 金鑰", "getKenariApiKey": "取得 Kenari API 金鑰", - "ioIntelligence": { - "provider": "IO Intelligence", - "apiKey": "IO Intelligence API 金鑰", - "getApiKey": "取得 IO Intelligence API 金鑰", - "model": "模型" - }, "nanoGpt": { "provider": "NanoGPT", "apiKey": "NanoGPT API 金鑰", diff --git a/webview-ui/src/utils/__tests__/validate.spec.ts b/webview-ui/src/utils/__tests__/validate.spec.ts index 1d52f5b481..816d0cefc5 100644 --- a/webview-ui/src/utils/__tests__/validate.spec.ts +++ b/webview-ui/src/utils/__tests__/validate.spec.ts @@ -49,7 +49,6 @@ describe("Model Validation Functions", () => { requesty: {}, unbound: {}, litellm: {}, - "io-intelligence": {}, ollama: {}, lmstudio: {}, "vercel-ai-gateway": {}, @@ -471,27 +470,6 @@ describe("Model Validation Functions", () => { }) }) - describe("IO Intelligence validation", () => { - it("returns an apiKey error when the IO Intelligence API key is unset", () => { - const config: ProviderSettings = { - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceModelId: "zai-org/GLM-4.6", - } - - expect(validateApiConfiguration(config, t, mockRouterModels)).toBe("settings:validation.apiKey") - }) - - it("accepts an IO Intelligence API key and selected model", () => { - const config: ProviderSettings = { - apiProvider: providerIdentifiers.ioIntelligence, - ioIntelligenceApiKey: "valid-key", - ioIntelligenceModelId: "zai-org/GLM-4.6", - } - - expect(validateApiConfiguration(config, t, mockRouterModels)).toBeUndefined() - }) - }) - describe("NanoGPT validation", () => { it("returns an apiKey error when the NanoGPT API key is missing", () => { const config: ProviderSettings = { diff --git a/webview-ui/src/utils/validate.ts b/webview-ui/src/utils/validate.ts index 3e84a03c83..aa34fa4e8d 100644 --- a/webview-ui/src/utils/validate.ts +++ b/webview-ui/src/utils/validate.ts @@ -191,11 +191,6 @@ function validateModelsAndKeysProvided( return t("settings:validation.apiKey") } break - case providerIdentifiers.ioIntelligence: - if (!apiConfiguration.ioIntelligenceApiKey) { - return t("settings:validation.apiKey") - } - break case providerIdentifiers.nanogpt: if (!apiConfiguration.nanoGptApiKey) { return t("settings:validation.apiKey")