Problem: You're trying to create an instance of a prototype that doesn't exist, or you're using the wrong identifier.
Error Message:
❌ Error adding instance to Redstring store: HTTP 404: Not Found
Root Cause:
- The prototype was never created or doesn't exist in the current Redstring data
- You're using a prototype ID instead of name (or vice versa)
- The prototype name has different capitalization
Solutions:
# Create the prototype first
curl -X POST http://localhost:3001/api/bridge/actions/add-node-prototype \
-H "Content-Type: application/json" \
-d '{
"name": "Emergence",
"description": "The emergence of complex behavior from simple interactions",
"color": "#800080"
}'
# Then add the instance (using name OR ID)
curl -X POST http://localhost:3001/api/bridge/actions/add-node-instance \
-H "Content-Type: application/json" \
-d '{
"graphId": "your-graph-id",
"prototypeName": "Emergence",
"position": {"x": 200, "y": 200}
}'
# Or using the prototype ID
curl -X POST http://localhost:3001/api/bridge/actions/add-node-instance \
-H "Content-Type: application/json" \
-d '{
"graphId": "your-graph-id",
"prototypeName": "prototype-1234567890-abcdef",
"position": {"x": 200, "y": 200}
}'curl -X POST http://localhost:3001/api/bridge/actions/ai-guided-workflow \
-H "Content-Type: application/json" \
-d '{
"workflowType": "full_workflow",
"prototypeName": "Emergence",
"prototypeDescription": "The emergence of complex behavior from simple interactions",
"prototypeColor": "#800080",
"instancePositions": [
{"prototypeName": "Emergence", "x": 200, "y": 200}
]
}'# See what prototypes exist (names and IDs)
curl -s http://localhost:3001/api/bridge/state | jq '.nodePrototypes | map({name, id})'
# Or just names
curl -s http://localhost:3001/api/bridge/state | jq '.nodePrototypes | map(.name)'
# Or just IDs
curl -s http://localhost:3001/api/bridge/state | jq '.nodePrototypes | map(.id)'Problem: You're trying to add an instance but no graph is active.
Solutions:
# List available graphs
curl -s http://localhost:3001/api/bridge/state | jq '.graphs | map({id, name})'
# Open a specific graph
curl -X POST http://localhost:3001/api/bridge/actions/open-graph-tab \
-H "Content-Type: application/json" \
-d '{"graphId": "your-graph-id"}'Problem: Claude Desktop can't connect to the Redstring MCP server.
Solutions:
-
Check if MCP server is running:
ps aux | grep "redstring-mcp-server"
-
Restart the MCP server:
pkill -f "redstring-mcp-server" sleep 1 node redstring-mcp-server.js &
-
Check Claude Desktop MCP settings:
- Go to Settings → MCP Servers
- Verify the path to
redstring-mcp-server.jsis correct - Restart Claude Desktop
Problem: MCP server can't connect to the Redstring bridge.
Solutions:
-
Check if bridge server is running:
curl -s http://localhost:3001/api/bridge/state
-
Restart the bridge server:
pkill -f "server.js" sleep 1 npm run server &
-
Check bridge server logs for errors
Problem: MCP tools don't appear in Claude Desktop.
Solutions:
- Restart Claude Desktop completely
- Check MCP server connection in Claude Desktop settings
- Verify all services are running:
# Check bridge curl -s http://localhost:3001/api/bridge/state | jq '.graphs | length' # Check MCP server ps aux | grep "redstring-mcp-server"
# Test script to verify everything is working
node test-add-instance.js# Test the complete AI-guided workflow
node test-ai-workflow.js# Test prototype creation
curl -X POST http://localhost:3001/api/bridge/actions/add-node-prototype \
-H "Content-Type: application/json" \
-d '{"name":"Test","description":"Test prototype","color":"#FF0000"}'
# Test instance creation
curl -X POST http://localhost:3001/api/bridge/actions/add-node-instance \
-H "Content-Type: application/json" \
-d '{"graphId":"your-graph-id","prototypeName":"Test","position":{"x":100,"y":100}}'-
MCP Server Logs:
node redstring-mcp-server.js 2>&1 | tee mcp-server.log
-
Bridge Server Logs:
npm run server 2>&1 | tee bridge-server.log
-
Claude Desktop Logs:
- Check Claude Desktop console for MCP messages
- Look for connection errors or tool registration issues
✅ Success Indicators:
✅ Bridge: Store data updated
✅ Bridge: Prototype added successfully
✅ Bridge: Instance added successfully
✅ Redstring store bridge established
❌ Error Indicators:
❌ Bridge: Failed to add prototype
❌ Bridge: Failed to add instance
❌ Error in getGraphData
❌ Prototype 'X' not found
The add_node_instance tool now supports both prototype names and IDs:
- ✅ Prototype names:
"Charles McGill" - ✅ Prototype IDs:
"33b579d9-9d19-4c03-b802-44de24055f23" - ✅ Case-insensitive matching:
"charles mcgill"works - ✅ Better error messages: Shows available prototypes when not found
Example:
# Using name
curl -X POST http://localhost:3001/api/bridge/actions/add-node-instance \
-H "Content-Type: application/json" \
-d '{"graphId":"graph-id","prototypeName":"Charles McGill","position":{"x":100,"y":100}}'
# Using ID
curl -X POST http://localhost:3001/api/bridge/actions/add-node-instance \
-H "Content-Type: application/json" \
-d '{"graphId":"graph-id","prototypeName":"33b579d9-9d19-4c03-b802-44de24055f23","position":{"x":100,"y":100}}'The ai_guided_workflow tool handles prototype creation automatically and provides better error handling.
Always verify that prototypes and graphs exist before trying to use them.
- Individual actions: Use specific tools like
add_node_prototype - Complete workflows: Use
ai_guided_workflowwithfull_workflow - Exploration: Use
list_available_graphsandget_active_graph
Use the connection wizard to monitor service status:
node ai-connection-wizard-simple.jsIf you're still having issues:
- Check the logs for specific error messages
- Verify all services are running and connected
- Test with the provided scripts to isolate the issue
- Check the documentation in
AI_GUIDED_WORKFLOW.md - Use the system prompt to ensure Claude knows how to use the tools correctly