Skip to content

Commit 58a3039

Browse files
gmulatGitHub Enterprise
authored andcommitted
Handles legal compliance — copyrights, license text, third-party attribution, and CI enforcement. (#8)
Add copyright on all files — added a copyright header to all non-JSON files Add a GitHub Action to check copyrights — CI workflow to enforce copyright presence in commits Use same license wording as MATLAB Agentic Toolkit — aligned LICENSE.md text Add license of MATLAB MCP Core Server as 3rd party — added licenses/matlab-mcp-core-server/ with LICENSE.md + component.json
1 parent 6165e4d commit 58a3039

44 files changed

Lines changed: 237 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2026 The MathWorks, Inc.
2+
name: Check Copyright
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
check-copyright:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Check copyright in modified files
18+
run: |
19+
YEAR=$(date +%Y)
20+
EXIT_CODE=0
21+
22+
if [ "${{ github.event_name }}" = "pull_request" ]; then
23+
FILES=$(git diff --name-only --diff-filter=ACMR ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
24+
else
25+
FILES=$(git diff --name-only --diff-filter=ACMR HEAD~1 HEAD 2>/dev/null || git ls-files)
26+
fi
27+
28+
for file in $FILES; do
29+
# Skip JSON files
30+
if [[ "$file" == *.json ]]; then
31+
continue
32+
fi
33+
34+
# Skip deleted files
35+
if [ ! -f "$file" ]; then
36+
continue
37+
fi
38+
39+
# Accept: "Copyright 2026 The MathWorks, Inc." (inception year)
40+
# or "Copyright 2026-<current_year> The MathWorks, Inc." (range ending in current year)
41+
if ! grep -qiE "Copyright\s+2026(-${YEAR})?\s+The MathWorks, Inc\." "$file"; then
42+
echo "::error file=${file}::Missing or outdated copyright. Expected: Copyright 2026-${YEAR} The MathWorks, Inc."
43+
EXIT_CODE=1
44+
fi
45+
done
46+
47+
if [ $EXIT_CODE -eq 0 ]; then
48+
echo "All modified files have correct copyright."
49+
fi
50+
51+
exit $EXIT_CODE

AGENTS.md

Lines changed: 6 additions & 0 deletions

LICENSE.md

Lines changed: 2 additions & 0 deletions

README.md

Lines changed: 1 addition & 1 deletion

SECURITY.md

Lines changed: 6 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"github.com/matlab/matlab-mcp-core-server","version":"0.5.1","homepage":"http://github.com/matlab/matlab-mcp-core-server/","license":{"file":"LICENSE.md"}}

scripts/install-global-skills.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright 2026 The MathWorks, Inc.
12
# install-global-skills.ps1 — Create symlinks/junctions for Polyspace skills in ~/.agents/skills/
23
# Usage: powershell -ExecutionPolicy Bypass -File scripts\install-global-skills.ps1
34

scripts/install-global-skills.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
# Copyright 2026 The MathWorks, Inc.
23
# install-global-skills.sh — Create symlinks for Polyspace skills in ~/.agents/skills/
34
# Usage: ./scripts/install-global-skills.sh
45
# This script creates symlinks from ~/.agents/skills/ to the skills-catalog in this repo.

skills-catalog/README.md

Lines changed: 6 additions & 0 deletions

0 commit comments

Comments
 (0)