This repository contains a LangGraph agent service and a CopilotKit frontend application. The agent connects to MCP servers and utilizes their tools, while the frontend provides UI and state synchronization.
Create a .env
file in the root directory and add your LangSmith and OpenAI API keys:
LANGSMITH_API_KEY=lsv2_...
OPENAI_API_KEY=sk-...
Then, create another .env
file inside the agent
directory:
OPENAI_API_KEY=sk-...
LANGSMITH_API_KEY=lsv2_...
Poetry manages agent service dependencies. Install it using:
pip install poetry
Verify installation with:
poetry --version
For debugging, run the frontend and agent separately:
# Terminal 1 - Frontend
pnpm run dev-frontend
# Terminal 2 - Agent
pnpm run dev-agent
Alternatively, run both with:
pnpm run dev
Access the application at http://localhost:3000.
The project consists of:
/agent
folder: A LangGraph agent that interacts with MCP servers by calling their tools./app
folder: A frontend application built with CopilotKit for UI and state management.CopilotKit/open-mcp-client
March 8, 2025
March 29, 2025
TypeScript