Rana-X/wilson-jr-mcp
If you are the rightful owner of wilson-jr-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Wilson Jr MCP Server is a Model Context Protocol server designed to provide 15 freight coordination tools for the Wilson AI agent.
Wilson Jr MCP Server
Model Context Protocol server providing 15 freight coordination tools for Wilson AI agent.
Features
- ✅ HTTP transport for production deployment
- ✅ 15 MCP tools for freight management
- ✅ PostgreSQL database integration
- ✅ Resend email API integration
- ✅ Health check endpoint
- ✅ Server-Sent Events support
Tools Available
Shipment Management (4 tools)
create_shipment- Create new shipment recordget_shipment- Get shipment details by IDupdate_shipment- Update shipment fieldslist_shipments- List shipments with optional filtering
Quote Management (3 tools)
add_quote- Add carrier quoteget_quotes- Get quotes for shipmentselect_quote- Mark quote as selected
Email Management (6 tools)
add_email- Add email recordget_emails- Get emails for shipmentget_unprocessed_emails- Get unprocessed emailsmark_email_processed- Mark email as processedfind_open_shipment_by_customer- Find customer's open shipmentsend_email- Send email via Resend API
Chat Management (2 tools)
add_chat_message- Add chat messageget_chat_history- Get chat history
Quick Start
1. Install Dependencies
npm install
2. Configure Environment
Copy .env.example to .env and fill in your values:
cp .env.example .env
Required variables:
DATABASE_URL- PostgreSQL connection stringRESEND_API_KEY- Resend API keyFROM_EMAIL- Default from emailRFQ_EMAIL- RFQ email addressSUPPORT_EMAIL- Support email address
3. Build
npm run build
4. Run Locally
HTTP mode (production):
npm start
STDIO mode (local testing):
npm run stdio
Deployment to Dedalus Labs
Prerequisites
- GitHub account
- Dedalus Labs account (https://dedaluslabs.ai)
- API key from Dedalus dashboard
Deployment Steps
- Create GitHub Repository
# Initialize git (if not already)
git init
# Add files
git add .
# Commit
git commit -m "Initial MCP server deployment"
# Create repo on GitHub and push
git remote add origin https://github.com/YOUR_USERNAME/wilson-mcp-server.git
git push -u origin main
- Deploy to Dedalus
- Go to https://dedaluslabs.ai
- Click "Deploy New Server" or "Create MCP Server"
- Connect GitHub repository
- Configure:
- Name:
wilson-jr(or your preferred name) - Entry Point:
src/index.ts - Runtime: Node.js/TypeScript
- Build Command:
npm run build - Start Command:
npm start
- Name:
- Set Environment Variables
In Dedalus dashboard, add:
DATABASE_URLRESEND_API_KEYFROM_EMAILRFQ_EMAILSUPPORT_EMAIL
- Deploy
Click "Deploy" and wait for build to complete (1-3 minutes).
- Get Server ID
After deployment, Dedalus will provide your server ID, e.g.:
username/wilson-jrrana-x/wilson-jr
Using the MCP Server
With Dedalus Python SDK
from dedalus_labs import AsyncDedalus, DedalusRunner
client = AsyncDedalus(api_key="your_api_key")
runner = DedalusRunner(client)
result = await runner.run(
input="Get all unprocessed emails",
model="openai/gpt-4o-mini",
mcp_servers=["username/wilson-jr"] # Your server ID
)
With Dedalus TypeScript SDK
import Dedalus from 'dedalus-labs';
const client = new Dedalus({
apiKey: process.env.DEDALUS_API_KEY
});
const response = await client.chat.create({
input: [{
role: 'user',
content: 'Use get_unprocessed_emails tool to get unprocessed emails'
}],
model: 'gpt-4o-mini',
mcp_servers: ['username/wilson-jr']
});
API Endpoints
When running locally or deployed:
-
GET /health - Health check
curl http://localhost:8080/health -
POST /mcp - MCP protocol endpoint
curl -X POST http://localhost:8080/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' -
GET /sse - Server-Sent Events
curl http://localhost:8080/sse
Development
Run in development mode with auto-reload:
npm run dev
Test with STDIO transport:
npm run stdio
Then interact via standard input/output (useful for local MCP testing).
Troubleshooting
Tools not accessible after deployment
- Verify deployment status in Dedalus dashboard
- Check build logs for errors
- Verify environment variables are set
- Check server ID is correct
- Test health endpoint:
https://your-server.dedaluslabs.ai/health
Database connection errors
- Verify
DATABASE_URLis set correctly - Check database allows connections from Dedalus IPs
- Ensure
sslmode=requireis in connection string
Email sending fails
- Verify
RESEND_API_KEYis correct - Check
FROM_EMAILdomain is verified in Resend - Review Resend dashboard for delivery status
License
MIT
Support
For issues or questions:
- Open an issue on GitHub
- Contact: support@go2irl.com