We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/mcp-canvas-lms'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
deploy-fix.shβ’2.08 KiB
#!/bin/bash
# Canvas MCP Server - Release v2.2.2
# Fixes console.log pollution causing JSON parsing errors
set -e # Exit on any error
echo "π Canvas MCP Server Release v2.2.2"
echo "=====================================\n"
# Clean and build
echo "π¨ Cleaning and building..."
npm run clean
npm run build
# Check build was successful
if [ ! -f "build/index.js" ]; then
echo "β Build failed - build/index.js not found"
exit 1
fi
echo "β Build completed successfully\n"
# Git operations
echo "π¦ Git operations..."
git add .
git status
echo "\nπ Committing changes..."
git commit -m "fix: resolve console.log stdout pollution causing JSON parsing errors
- Changed console.log to console.error in src/client.ts (request logging, error responses, retries)
- Fixed tool execution logging in src/index.ts to use stderr
- Eliminates 'Unexpected token C, [Canvas API' JSON parsing errors
- MCP protocol now receives clean JSON communication over stdio
- Version bump to 2.2.2
Fixes #issue with constant JSON parsing errors in Claude Desktop"
echo "\nπ’ Force pushing to origin main..."
git push origin main --force
echo "β Git push completed\n"
# NPM publish
echo "π¦ Publishing to npm..."
npm publish
echo "β Published canvas-mcp-server@2.2.2 to npm\n"
echo "π Release complete!"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "β Fixed the JSON parsing error spam in Claude Desktop"
echo "β Console.log statements now properly use stderr"
echo "β MCP communication is now clean JSON over stdio"
echo "β Version 2.2.2 published to npm"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "\nπ Users can now update with: npm install -g canvas-mcp-server@2.2.2"
echo "π Or update their Claude Desktop config to use the latest version"