Skip to main content
Glama
IBM
by IBM
setup_studio.shโ€ข2.35 kB
#!/bin/bash # LangGraph Studio Quick Setup Script set -e echo "๐Ÿš€ LangGraph Studio Setup for IBM i Agents" echo "==========================================" # Check if we're in the right directory if [ ! -f "langgraph.json" ]; then echo "โŒ Error: langgraph.json not found" echo " Please run this script from agents/frameworks/langchain/" exit 1 fi echo "" echo "๐Ÿ“ฆ Step 1: Setting up Python environment..." # Check if virtual environment exists if [ ! -d ".venv" ] && [ ! -d "venv" ]; then echo " Creating virtual environment..." uv venv echo " โœ… Virtual environment created" fi echo " Installing dependencies..." uv pip install langgraph langchain langchain-core langchain-openai langchain-community uv pip install langchain-mcp-adapters uv pip install langgraph-checkpoint-sqlite uv pip install "langgraph-cli[inmem]" uv pip install langchain-ollama echo "โœ… Dependencies installed" echo "" echo "๐Ÿ“ Step 2: Creating directories..." mkdir -p tmp mkdir -p src/ibmi_agents/agents echo "โœ… Directories created" echo "" echo "โš™๏ธ Step 3: Environment setup..." if [ ! -f ".env" ]; then if [ -f ".env.example" ]; then cp .env.example .env echo "โœ… Created .env from .env.example" echo "โš ๏ธ IMPORTANT: Edit .env and add your OPENAI_API_KEY" else echo "โš ๏ธ Warning: .env.example not found" fi else echo "โœ… .env already exists" fi echo "" echo "๐Ÿ” Step 4: Checking IBM i MCP Server..." if curl -s -f http://127.0.0.1:3010/mcp > /dev/null 2>&1; then echo "โœ… IBM i MCP Server is running" else echo "โš ๏ธ IBM i MCP Server not detected at http://127.0.0.1:3010/mcp" echo " Start it with: npm run dev (from project root)" fi echo "" echo "โœ… Setup Complete!" echo "" echo "๐Ÿ“‹ Next Steps:" echo " 1. Edit .env and add your OPENAI_API_KEY" echo " nano .env" echo "" echo " 2. Ensure IBM i MCP Server is running:" echo " cd /path/to/ibmi-mcp-server && npm run dev" echo "" echo " 3. Start LangGraph Studio:" echo " langgraph dev" echo "" echo "๐ŸŽฏ Quick Commands:" echo " langgraph dev # Start Studio" echo " langgraph dev --debug # Start with debug logging" echo " langgraph dev --port 8080 # Use custom port" echo "" echo "๐Ÿ“š Documentation: See LANGGRAPH_STUDIO.md for details"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IBM/ibmi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server