From fdd3fffce2a174951717487d806c3d4084a8a56e Mon Sep 17 00:00:00 2001 From: svincent240 <66322922+svincent240@users.noreply.github.com> Date: Thu, 29 Oct 2026 17:56:34 -0400 Subject: [PATCH] Prepare the MCP Registry listing server.json describes the CourseCode MCP server for the official MCP Registry: the npm package coursecode, run locally over stdio with the mcp argument. package.json declares the matching mcpName, which the registry checks on the published package. A test keeps server.json's name and versions aligned with package.json. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 ++ CHANGELOG.md | 3 +++ package.json | 1 + server.json | 28 ++++++++++++++++++++++++++++ tests/lib/plugin-manifests.test.js | 11 +++++++++++ 5 files changed, 45 insertions(+) create mode 100644 server.json diff --git a/AGENTS.md b/AGENTS.md index 5d52dfe..6f447b9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,8 @@ Use npm (CI runs `npm ci`). Node 22.15+. Before merging responsive/layout changes, also run `npm run smoke:responsive -- --profile=expanded`. +A release bumps the version in `package.json`, `package-lock.json`, `framework/version.json`, both plugin manifests, the launcher's `FALLBACK_VERSION`, and both versions in `server.json` (`tests/lib/plugin-manifests.test.js` checks they match). After `npm publish`, run `mcp-publisher publish` to update the [MCP Registry](https://registry.modelcontextprotocol.io) listing; the registry reads `mcpName` from the published package, so publish to npm first. + ## Repo Layout: Two Contexts This repo is both the framework source and the template for new course projects. diff --git a/CHANGELOG.md b/CHANGELOG.md index 15b6838..a345e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- **MCP Registry listing:** `server.json` describes the CourseCode MCP server for the [MCP Registry](https://registry.modelcontextprotocol.io): the npm package `coursecode`, run locally over stdio with the `mcp` argument. `package.json` declares the matching `mcpName`. + ## [0.4.2] - 2026-10-29 ### Changed diff --git a/package.json b/package.json index 55a63ab..8d0f1d3 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "coursecode", "version": "0.4.2", "description": "Open-source course authoring framework for Claude Code, Codex, and other MCP-capable AI tools. Build, preview, and test SCORM 1.2, SCORM 2004, cmi5, and LTI 1.3 courses.", + "mcpName": "io.github.course-code-framework/coursecode", "type": "module", "bin": { "coursecode": "bin/cli.js" diff --git a/server.json b/server.json new file mode 100644 index 0000000..1173120 --- /dev/null +++ b/server.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", + "name": "io.github.course-code-framework/coursecode", + "title": "CourseCode Framework", + "description": "Preview, screenshot, lint, and test SCORM, cmi5, and LTI courses built with CourseCode Framework.", + "websiteUrl": "https://coursecodeframework.com", + "repository": { + "url": "https://github.com/course-code-framework/coursecode", + "source": "github" + }, + "version": "0.4.2", + "packages": [ + { + "registryType": "npm", + "identifier": "coursecode", + "version": "0.4.2", + "transport": { + "type": "stdio" + }, + "packageArguments": [ + { + "type": "positional", + "value": "mcp" + } + ] + } + ] +} diff --git a/tests/lib/plugin-manifests.test.js b/tests/lib/plugin-manifests.test.js index 13189a0..e121c19 100644 --- a/tests/lib/plugin-manifests.test.js +++ b/tests/lib/plugin-manifests.test.js @@ -13,6 +13,17 @@ describe('Claude Code and Codex plugin', () => { expect(launcher).toContain(`const FALLBACK_VERSION = '${version}';`); }); + it('lists the published package in the MCP Registry under the package.json mcpName', () => { + const { name, version, mcpName } = readJson('package.json'); + const server = readJson('server.json'); + + expect(server.name).toBe(mcpName); + expect(server.version).toBe(version); + expect(server.description.length).toBeLessThanOrEqual(100); + expect(server.packages).toEqual([expect.objectContaining({ registryType: 'npm', identifier: name, version, transport: { type: 'stdio' } })]); + expect(server.packages[0].packageArguments).toEqual([{ type: 'positional', value: 'mcp' }]); + }); + it('starts the same launcher from both MCP configs', () => { const claude = readJson('plugin/.mcp.json').mcpServers.coursecode; const codex = readJson('plugin/mcp.json').mcpServers.coursecode;