openai-mcp-client

MCP.Pizza Chef: leartbeqiraj1

The openai-mcp-client is a Model Context Protocol client designed to interact with GitHub MCP servers, enabling AI-driven queries and automation on GitHub repositories. It integrates with OpenAI to allow natural language commands for repository management, commit analysis, issue creation, and code updates. This client simplifies complex GitHub workflows by leveraging AI to perform multi-step tasks programmatically.

Use This MCP client To

Query GitHub repository commit counts via natural language Create and manage GitHub repositories using AI commands Push code and updates to GitHub repositories programmatically Create and manage GitHub issues through AI-driven workflows Integrate GitHub data with OpenAI for enhanced automation Automate multi-step GitHub tasks from simple natural language prompts

README

openai-mcp-client

  • Install mcp server for GitHub:
npm install -g @modelcontextprotocol/server-github

You need to configure two variables:

  1. Generate a GitHub Personal Access Token
  2. Get path to the MCP server executable (used for StdioClientTransport command):
which mcp-server-github

You can run the app on simple mode, which will call a single tool from GitHub MCP Server:

node client.js

Or you can integrate it with OpenAI and it allows you to interact with your GitHub profile through AI-powered queries. Examples below:

Example 1:

node client-with-openai.js "How many commits does my openai-mcp-client repo have that is under my username leartbeqiraj1?"

Example 2:

node client-with-openai.js "Please do the following: * make a simple html page. * create a repository called 'openai-created-this-repo'. * Push the html page to the 'openai-created-this-repo' repository. * Add a little css to the html page and then push it up. * Make an issue suggesting we add some more content on the html page. *  Now make a branch called feature and make that fix and push the change. *  Make a pull request against main with these changes."

openai-mcp-client FAQ

How do I install the openai-mcp-client?
Install the GitHub MCP server globally using npm and configure the client with a GitHub Personal Access Token and the MCP server executable path.
Can I use the openai-mcp-client without OpenAI integration?
Yes, you can run the client in simple mode to call a single tool from the GitHub MCP server without AI integration.
What environment variables are required for configuration?
You need to set a GitHub Personal Access Token and specify the path to the MCP server executable for StdioClientTransport.
How does the client interact with GitHub repositories?
It sends AI-powered natural language queries to the MCP server, which performs GitHub operations like commits, repository creation, and issue management.
Is the openai-mcp-client limited to OpenAI models?
No, while examples use OpenAI, the client can be adapted to work with other LLM providers like Claude and Gemini.
Can the client handle multi-step GitHub workflows?
Yes, it supports complex commands such as creating repositories, pushing code, and managing issues in a single prompt.
What programming environment is required?
The client runs on Node.js and requires npm for package management.
How do I run example commands?
Use node to run client-with-openai.js with your natural language query as an argument.