{"_id":"@mcpflow.io/mcp-canvas-mcp-server","_rev":"5-b3c3ea3c232df347f0e07590b3c5d2a0","name":"@mcpflow.io/mcp-canvas-mcp-server","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@mcpflow.io/mcp-canvas-mcp-server","version":"1.0.0","keywords":["canvas lms","mcp","server","modelcontextprotocol","mcpflow"],"author":{"name":"David Montgomery"},"license":"未指定","_id":"@mcpflow.io/mcp-canvas-mcp-server@1.0.0","maintainers":[{"name":"mcpflow.io","email":"hi@mcpflow.io"}],"homepage":"https://github.com/DMontgomery40/mcp-canvas-lms#readme","bugs":{"url":"https://github.com/DMontgomery40/mcp-canvas-lms/issues"},"bin":{"canvas-mcp-server":"build/index.js"},"mcp":{"server":{"args":["./build/index.js"],"command":"node"}},"dist":{"shasum":"4af6736293044ca2630fe6084fd0e45a326e1679","tarball":"https://registry.npmjs.org/@mcpflow.io/mcp-canvas-mcp-server/-/mcp-canvas-mcp-server-1.0.0.tgz","fileCount":14,"integrity":"sha512-/lF+lnb93bxi/MZwcf024E+ic0yVYiDpxPxumsRitHnnxee+lvx0EMm3yO8SU8EUMUyjLz/YT6vaVxH/mT3lyA==","signatures":[{"sig":"MEYCIQCoN74hOTC1HZ981aSHojE1Aiz2GM4O/sYyDzi2wfttIwIhALqUDql+ltbckMkeNoJNl/g+pAP1A0LCHEWXhsdhBtgl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105104},"main":"build/index.js","type":"module","types":"./build/index.d.ts","gitHead":"9cb5727eb53c5c859ae449cd62d09a64e941059e","mcpflow":{"mcpId":"d0fac521-d8b1-45e9-9664-c2a62cc5157f","gitRepo":"https://github.com/DMontgomery40/mcp-canvas-lms","callType":"CLI","developer":"DMontgomery40","originalName":"canvas-mcp-server"},"scripts":{"build":"tsc","start":"node build/index.js","publish":"npm publish --access public","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"mcpflow.io","email":"hi@mcpflow.io"},"repository":{"url":"git+https://github.com/DMontgomery40/mcp-canvas-lms.git","type":"git"},"_npmVersion":"10.8.2","description":"一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。","directories":{},"_nodeVersion":"20.19.0","dependencies":{"dotenv":"^16.4.7","@modelcontextprotocol/sdk":"latest"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@types/dotenv":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mcp-canvas-mcp-server_1.0.0_1743607565174_0.4577268780615362","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@mcpflow.io/mcp-canvas-mcp-server","version":"1.0.1","keywords":["canvas lms","mcp","server","modelcontextprotocol","mcpflow"],"author":{"name":"David Montgomery"},"license":"未指定","_id":"@mcpflow.io/mcp-canvas-mcp-server@1.0.1","maintainers":[{"name":"mcpflow.io","email":"hi@mcpflow.io"}],"homepage":"https://github.com/DMontgomery40/mcp-canvas-lms#readme","bugs":{"url":"https://github.com/DMontgomery40/mcp-canvas-lms/issues"},"bin":{"canvas-mcp-server":"build/index.js"},"mcp":{"server":{"args":["./build/index.js"],"command":"node"}},"dist":{"shasum":"185d8bffe4043f06f3a7c42ea7b8bbbee0399a97","tarball":"https://registry.npmjs.org/@mcpflow.io/mcp-canvas-mcp-server/-/mcp-canvas-mcp-server-1.0.1.tgz","fileCount":14,"integrity":"sha512-4KrWTo9YtycXlNV9Y0B8f+xXWywU5UL+eP5SaCy/MzP0u06Jazl3LAl88ceO42XVL356g2QYs60YA4WXuGzWNQ==","signatures":[{"sig":"MEQCIFM66QRjTMb06V9TRd9t2QTbYuFvDj9K+fvuYcxNg4mVAiAux/wscEV0+Juxe08k2wonXOYqI7YkQTc4tERBK5g0Mg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105104},"main":"build/index.js","type":"module","types":"./build/index.d.ts","gitHead":"9cb5727eb53c5c859ae449cd62d09a64e941059e","mcpflow":{"mcpId":"d0fac521-d8b1-45e9-9664-c2a62cc5157f","gitRepo":"https://github.com/DMontgomery40/mcp-canvas-lms","callType":"CLI","developer":"DMontgomery40","originalName":"canvas-mcp-server"},"scripts":{"build":"tsc","start":"node build/index.js","publish":"npm publish --access public","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"mcpflow.io","email":"hi@mcpflow.io"},"repository":{"url":"git+https://github.com/DMontgomery40/mcp-canvas-lms.git","type":"git"},"_npmVersion":"10.8.2","description":"一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。","directories":{},"_nodeVersion":"20.19.0","dependencies":{"dotenv":"^16.4.7","@modelcontextprotocol/sdk":"latest"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@types/dotenv":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mcp-canvas-mcp-server_1.0.1_1743607633817_0.8447056139870843","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@mcpflow.io/mcp-canvas-mcp-server","version":"1.0.2","keywords":["canvas lms","mcp","server","modelcontextprotocol","mcpflow"],"author":{"name":"David Montgomery"},"license":"未指定","_id":"@mcpflow.io/mcp-canvas-mcp-server@1.0.2","maintainers":[{"name":"mcpflow.io","email":"hi@mcpflow.io"}],"homepage":"https://github.com/DMontgomery40/mcp-canvas-lms#readme","bugs":{"url":"https://github.com/DMontgomery40/mcp-canvas-lms/issues"},"bin":{"canvas-mcp-server":"build/index.js"},"mcp":{"server":{"args":["./build/index.js"],"command":"node"}},"dist":{"shasum":"a44a317b32f6ed3c90cb0755335b427078a9c8af","tarball":"https://registry.npmjs.org/@mcpflow.io/mcp-canvas-mcp-server/-/mcp-canvas-mcp-server-1.0.2.tgz","fileCount":14,"integrity":"sha512-0/l2c79WSso42IiA3SoMOkSIjEDyg8xYMa5xgLgPFbvtMhVHvXvT62R6PottUmLdUe2dUUcZKLgx7bv/FdmmdA==","signatures":[{"sig":"MEUCIBNXqs9vKQb+O8xoGjywOrNyFzKejJyjQdsLHenPUb5YAiEAt1zuU+ypjerTwCor2nhmXXTTUWMjg1IOD3MifLBmGQs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105104},"main":"build/index.js","type":"module","types":"./build/index.d.ts","gitHead":"9cb5727eb53c5c859ae449cd62d09a64e941059e","mcpflow":{"mcpId":"d0fac521-d8b1-45e9-9664-c2a62cc5157f","gitRepo":"https://github.com/DMontgomery40/mcp-canvas-lms","callType":"CLI","developer":"DMontgomery40","originalName":"canvas-mcp-server"},"scripts":{"build":"tsc","start":"node build/index.js","publish":"npm publish --access public","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"mcpflow.io","email":"hi@mcpflow.io"},"repository":{"url":"git+https://github.com/DMontgomery40/mcp-canvas-lms.git","type":"git"},"_npmVersion":"10.8.2","description":"一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。","directories":{},"_nodeVersion":"20.19.0","dependencies":{"dotenv":"^16.4.7","@modelcontextprotocol/sdk":"latest"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@types/dotenv":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mcp-canvas-mcp-server_1.0.2_1743607762016_0.33093418917884865","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@mcpflow.io/mcp-canvas-mcp-server","version":"1.0.3","keywords":["canvas lms","mcp","server","modelcontextprotocol","mcpflow"],"author":{"name":"David Montgomery"},"license":"未指定","_id":"@mcpflow.io/mcp-canvas-mcp-server@1.0.3","maintainers":[{"name":"mcpflow.io","email":"hi@mcpflow.io"}],"homepage":"https://github.com/DMontgomery40/mcp-canvas-lms#readme","bugs":{"url":"https://github.com/DMontgomery40/mcp-canvas-lms/issues"},"bin":{"canvas-mcp-server":"build/index.js"},"mcp":{"server":{"args":["./build/index.js"],"command":"node"}},"dist":{"shasum":"05831ff744605fdb3347680abf898074dbbe2428","tarball":"https://registry.npmjs.org/@mcpflow.io/mcp-canvas-mcp-server/-/mcp-canvas-mcp-server-1.0.3.tgz","fileCount":14,"integrity":"sha512-v+aMvJ8/H6ZEGoxlNWPPirS4jYt7xjQrSztCWUN8njJrfHoGkaETIpVWZd4ZuPYCIlG4P+Y9hW2PaDDYtJ4+YA==","signatures":[{"sig":"MEYCIQCmXoXtMVfT20MT3JML44ursGN5RrVLy+9azia5VfyPxQIhAPIbJYaxkfUglHYx7ECHx1MZcKwKHoFT9jT6I8Rk8EJ2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105104},"main":"build/index.js","type":"module","types":"./build/index.d.ts","gitHead":"9cb5727eb53c5c859ae449cd62d09a64e941059e","mcpflow":{"mcpId":"d0fac521-d8b1-45e9-9664-c2a62cc5157f","gitRepo":"https://github.com/DMontgomery40/mcp-canvas-lms","callType":"CLI","developer":"DMontgomery40","originalName":"canvas-mcp-server"},"scripts":{"build":"tsc","start":"node build/index.js","publish":"npm publish --access public","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"mcpflow.io","email":"hi@mcpflow.io"},"repository":{"url":"git+https://github.com/DMontgomery40/mcp-canvas-lms.git","type":"git"},"_npmVersion":"10.8.2","description":"一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。","directories":{},"_nodeVersion":"20.19.0","dependencies":{"dotenv":"^16.4.7","@modelcontextprotocol/sdk":"latest"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@types/dotenv":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/mcp-canvas-mcp-server_1.0.3_1743608009920_0.5675857771230315","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@mcpflow.io/mcp-canvas-mcp-server","version":"1.0.4","type":"module","main":"build/index.js","bin":{"canvas-mcp-server":"build/index.js"},"mcp":{"server":{"command":"node","args":["./build/index.js"]}},"scripts":{"build":"tsc","start":"node build/index.js","inspector":"npx @modelcontextprotocol/inspector build/index.js","publish":"npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/DMontgomery40/mcp-canvas-lms.git"},"keywords":["canvas lms","mcp","server","modelcontextprotocol","mcpflow"],"author":{"name":"David Montgomery"},"license":"未指定","dependencies":{"@modelcontextprotocol/sdk":"latest","dotenv":"^16.4.7"},"devDependencies":{"@types/dotenv":"^6.1.1","@types/node":"^20.11.24","typescript":"^5.3.3"},"description":"一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。","mcpflow":{"originalName":"canvas-mcp-server","mcpId":"d0fac521-d8b1-45e9-9664-c2a62cc5157f","developer":"DMontgomery40","gitRepo":"https://github.com/DMontgomery40/mcp-canvas-lms","callType":"CLI"},"_id":"@mcpflow.io/mcp-canvas-mcp-server@1.0.4","gitHead":"9cb5727eb53c5c859ae449cd62d09a64e941059e","types":"./build/index.d.ts","bugs":{"url":"https://github.com/DMontgomery40/mcp-canvas-lms/issues"},"homepage":"https://github.com/DMontgomery40/mcp-canvas-lms#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-phXgdwwYBYEIuwtJmhcK1OKhBDl4Mnzwt3u4033jucJujFOHVl4fpKKTrpgYxrGKmjooA9/TBfggG8B1ImIjpw==","shasum":"a24f7167fc4db3c6408ffa64b1402e920db11382","tarball":"https://registry.npmjs.org/@mcpflow.io/mcp-canvas-mcp-server/-/mcp-canvas-mcp-server-1.0.4.tgz","fileCount":14,"unpackedSize":105104,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDkgP6T//OfjQt6inCWryaOcBvI3ALKcxx+6N0QAoa8wIhAMFjfokwB9mp9xwebPpoUaPzoV3Hqb6jt2U0UtA2azBJ"}]},"_npmUser":{"name":"mcpflow.io","email":"hi@mcpflow.io"},"directories":{},"maintainers":[{"name":"mcpflow.io","email":"hi@mcpflow.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-canvas-mcp-server_1.0.4_1743609385419_0.30680108189354494"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-02T15:26:05.067Z","modified":"2025-04-02T15:56:25.792Z","1.0.0":"2025-04-02T15:26:05.396Z","1.0.1":"2025-04-02T15:27:14.027Z","1.0.2":"2025-04-02T15:29:22.213Z","1.0.3":"2025-04-02T15:33:30.092Z","1.0.4":"2025-04-02T15:56:25.640Z"},"bugs":{"url":"https://github.com/DMontgomery40/mcp-canvas-lms/issues"},"author":{"name":"David Montgomery"},"license":"未指定","homepage":"https://github.com/DMontgomery40/mcp-canvas-lms#readme","keywords":["canvas lms","mcp","server","modelcontextprotocol","mcpflow"],"repository":{"type":"git","url":"git+https://github.com/DMontgomery40/mcp-canvas-lms.git"},"description":"一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。","maintainers":[{"name":"mcpflow.io","email":"hi@mcpflow.io"}],"readme":"# Canvas MCP Server\n\n<!-- MCPFlow Packaged MCP -->\n> 此包由 [MCPFlow](https://mcpflow.io) 打包并发布到npm仓库。\n\n一个用于与Canvas API交互的模型上下文协议（MCP）服务器。该服务器允许您在Canvas内管理课程、作业、注册和成绩。\n\n## 安装与使用\n\n直接使用npx运行:\n\n```bash\nnpx @mcpflow.io/mcp-canvas-mcp-server\n```\n\n或者先安装后使用:\n\n```bash\n# 安装\nnpm install @mcpflow.io/mcp-canvas-mcp-server\n\n# 使用\nnpx @mcpflow.io/mcp-canvas-mcp-server\n```\n\n## 使用方法\n\n请参考原始仓库的使用说明。\n\n\n\n## 原始信息\n\n- **开发者:** DMontgomery40\n- **版本:** 1.0.0\n- **许可证:** 未指定\n- **原始仓库:** [DMontgomery40/mcp-canvas-lms](https://github.com/DMontgomery40/mcp-canvas-lms)\n\n## 原始README\n\n\n# Canvas MCP Server\n\nA Model Context Protocol (MCP) server for interacting with the Canvas API. This server allows you to manage courses, assignments, enrollments, and grades within Canvas.\n\n## Prerequisites\n\n- **Node.js**: Version 18 or higher\n- **Canvas API Token**: Obtain from your Canvas account\n- **Canvas Domain**: Typically `canvas.instructure.com`\n\n## Setup\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/yourusername/canvas-mcp-server.git\n   cd canvas-mcp-server\n\n2. **Install Dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Configure Environment Variables**\n\nCopy the example environment file:\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   Edit .env and replace the placeholder values with your actual Canvas API token and domain.\n\nBuild the Project\n\n   ```bash\n   npm run build\n   ```\n\n4. **Run the Server**\n\n   ```bash\n   npm start\n   ```\n\n   The server will start and listen for MCP requests via stdio.\n\n### Connecting to Claude Desktop\n\n1. **Update Claude Configuration**\n\n   Add the MCP server configuration to your claude_desktop_config.json:\n\n```\n  \"canvas-mcp-server\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"canvas-mcp-server\"]\n    },\n```\nRestart Claude Desktop\n\n   Quit Claude Desktop completely.\n   Start Claude Desktop again.\n   Navigate to the 🔌 menu to find and connect your Canvas MCP server.\n\n### Available Tools (more student focused stuff coming soon)\n\n- `canvas_create_course`: Create a new course in Canvas.\n- `canvas_update_course`: Update an existing course in Canvas.\n- `canvas_create_assignment`: Create a new assignment in a Canvas course.\n- `canvas_update_assignment`: Update an existing assignment.\n- `canvas_submit_grade`: Submit a grade for a student's assignment.\n- `canvas_enroll_user`: Enroll a user in a course.\n\n### Error Handling\n\nTools return error messages with isError: true to indicate issues.\nEnsure all required environment variables are set to avoid runtime errors.\n\n### Troubleshooting\n\n- **Build Errors:**\n\nCheck TypeScript version: npx tsc --version\n   Clean and rebuild: rm -rf build/ && npm run build\n\n- **Runtime Errors:**\n\n   Check logs for detailed error messages.\n   Ensure environment variables are correctly set.\n\n- **Type Errors:**\n\n   Validate types using TypeScript's type checking: npx tsc --noEmit\n\n\n### Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n### License\nThis project is licensed under the MIT License.\n\n---\n\n### Additional Notes\n\n- **Type Safety**: The `types.ts` file ensures that all interactions with the Canvas API are type-safe, reducing runtime errors and improving code maintainability.\n\n- **Error Handling**: The server gracefully handles errors by returning meaningful messages with the `isError` flag, allowing the client (e.g., Claude Desktop) to understand and react appropriately.\n\n- **Environment Variables**: Sensitive information like API tokens are managed through environment variables, enhancing security and flexibility across different environments.\n\n- **Modularity**: Separating concerns into different files (`types.ts`, `client.ts`, `index.ts`) makes the codebase easier to navigate and maintain.\n\nFeel free to adjust the file paths and configurations according to your project's specific needs. Let me know if you need further assistance!\n","readmeFilename":"README.md"}