Skip to content

Add support for MIT-0 and MCP multi-license formats - #3

Merged
thallgren merged 1 commit into
masterfrom
thallgren/mit0-and-mcp-license
Feb 28, 2026
Merged

thallgren merged 1 commit into
masterfrom
thallgren/mit0-and-mcp-license

Conversation

@thallgren

Copy link
Copy Markdown
Member

Summary

  • Add MIT0 license constant and MIT-0 SPDX identifier for MIT No Attribution licenses
  • Add reMIT0 regex to detect MIT-0 formatted license files (used by e.g. github.com/segmentio/asm)
  • Add detection for the MCP SDK licensing transition format: preamble text + Apache-2.0 + MIT + optional CC-BY-4.0 note (used by github.com/modelcontextprotocol/go-sdk v1.4.0+)
  • Add test data files covering both new formats

- Add MIT0 license constant and MIT-0 SPDX identifier
- Add reMIT0 regex to detect MIT No Attribution licenses (e.g. github.com/segmentio/asm)
- Add detection for the MCP SDK transition format (preamble + Apache-2.0 + MIT + CC-BY-4.0)
  used in github.com/modelcontextprotocol/go-sdk v1.4.0+
- Add test data for both formats

Signed-off-by: Thomas Hallgren <thomas@tada.se>
@thallgren
thallgren merged commit 7899edc into master Feb 28, 2026
9 checks passed
@thallgren
thallgren deleted the thallgren/mit0-and-mcp-license branch February 28, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant