Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature Request: Support Gemini via OpenAI compatible API on OpenAI MCP client

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript
Domain
api, backend

Research direction

Start with index.js and the mcpx.chatCompletionCreate call from the OpenAI MCP client example, then compare the requested Gemini baseURL and model settings with the error shown in the issue. Reproduce the request using Gemini's OpenAI-compatible API and determine what must change for a successful completion; done means Gemini requests work through the client.

Written by the indexing model from the issue text.

Description

// change baseURL after exporting gemini key instead
// const openai = new OpenAI({ apiKey: OPENAI_API_KEY });

const openai = new OpenAI({
    apiKey: OPENAI_API_KEY,
    baseURL: "https://generativelanguage.googleapis.com/v1beta/openai/"
  });

// change the model
let response = await mcpx.chatCompletionCreate({
      model: "gemini-1.5-flash", // Select your preferred model
      temperature: 0,
      messages,
    });
  • but seem to be getting the following error.
    image
Dominant language
TypeScript
Stars
15
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dylibso/mcpx-openai-node

All issues in dylibso/mcpx-openai-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.