Skip to content

commonality2u/open-mcp-client

 
 

Repository files navigation

demospreadsheet.1.mp4

Getting Started

Set Up Environment Variables:

touch .env

Add the following inside .env at the root:

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

Next, create another .env file inside the agent folder:

cd agent
touch .env

Add the following inside agent/.env:

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

Set Up Poetry:

Poetry is used for dependency management in the agent service. To install Poetry, run:

pip install poetry

To verify the installation, run:

poetry --version

Development

We recommend running the frontend and agent separately in different terminals to debug errors and logs:

# Terminal 1 - Frontend
pnpm run dev-frontend

# Terminal 2 - Agent
pnpm run dev-agent

Alternatively, you can run both services together with:

pnpm run dev

Then, open http://localhost:3000 in your browser.

Architecture

The codebase is split into two main parts:

  1. /agent folder – A LangGraph agent that connects to MCP servers and calls their tools.
  2. /app folder – A frontend application using CopilotKit for UI and state synchronization.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.2%
  • CSS 8.0%
  • Python 6.5%
  • JavaScript 1.3%