Skip to content

Allen-He/open-mcp-client

 
 

Repository files navigation

Open MCP Client

CopilotKit-Banner

demospreadsheet.1.mp4

Getting Started

Set Up Environment Variables

Create a .env file at the root of your project:

touch .env

Add the following to .env:

LANGSMITH_API_KEY=lsv2_...
OPENAI_API_KEY=sk-...

Next, navigate to the agent folder and create another .env file:

cd agent
touch .env

Add the following inside agent/.env:

OPENAI_API_KEY=sk-...
LANGSMITH_API_KEY=lsv2_...

Set Up Poetry:

Install pyenv

brew install pyenv

Configure ~/.zshrc file to initialize environment variables

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init --path)"' >> ~/.zshrc

Install and switch to [email protected] by using pyenv

pyenv install 3.11.9
pyenv local 3.11.9

Poetry manages dependencies for the agent service. Install it with:

pyenv exec pip install poetry

Verify the installation by running:

pyenv exec poetry --version

Development

For easier debugging, run the frontend and agent in separate terminals:

# Terminal 1 - Frontend
pnpm run dev-frontend

# Terminal 2 - Agent
pnpm run dev-agent

Alternatively, launch both services together:

pnpm run dev

Visit http://localhost:3000 in your browser to view the application.

Architecture

The codebase is organized into two primary components:

  • Frontend - Handles the user interface.
  • Agent - Manages the core functionality.

License

Distributed under the MIT License. See LICENSE for more info.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.1%
  • CSS 8.1%
  • Python 6.5%
  • JavaScript 1.3%