Quick Start Guide
Get up and running with OpCon MCP Server in minutes.
Installation
- Clone the repository
git clone https://github.com/markcoleman/OpyConyMcpy.git cd OpyConyMcpy - Install dependencies
npm install - Build the project
npm run build
Configuration
Option 1: Token Authentication (Recommended)
Set environment variables:
export OPCON_BASE_URL="https://your-opcon-server:9010"
export OPCON_TOKEN="your-application-token"
Option 2: Username/Password Authentication
export OPCON_BASE_URL="https://your-opcon-server:9010"
export OPCON_USERNAME="your-username"
export OPCON_PASSWORD="your-password"
Optional: Disable TLS Verification (Development Only)
export OPCON_VERIFY_TLS="false"
Usage
Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js
Use with Claude Desktop
- Find your configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
- Add the server configuration:
{
"mcpServers": {
"opcon": {
"command": "node",
"args": ["/absolute/path/to/OpyConyMcpy/dist/index.js"],
"env": {
"OPCON_BASE_URL": "https://your-opcon-server:9010",
"OPCON_TOKEN": "your-token-here"
}
}
}
}
- Restart Claude Desktop
Your First Queries
Once configured, try these prompts in Claude:
- “List all access codes in OpCon”
- “Show me today’s daily jobs”
- “Get master schedules”
- “Check the status of machines”
Common Commands
Development
# Run in development mode with auto-reload
npm run dev
# Run tests
npm test
# Lint code
npm run lint
# Format code
npm run format
Troubleshooting
Server won’t start?
- Check Node.js version:
node --version(must be 18+) - Verify environment variables are set:
echo $OPCON_BASE_URL - Check build artifacts exist:
ls dist/
Authentication failed?
- Verify token is valid and not expired
- Check network connectivity to OpCon server
- For self-signed certificates, set
OPCON_VERIFY_TLS=false
Tools not appearing?
- Verify
swagger.jsonexists in the project root - Check server logs for parsing errors
Next Steps
- Browse the Tool Reference to see all 257 available tools
- Read the Configuration Guide for advanced setup
- Check out Examples for common usage patterns
- Review the Integration Guide for custom client integration
Support
- Issues: GitHub Issues
- Documentation: Full Documentation
- OpCon API Docs: OpCon Help