[PATCH 19/23] mcp-server: Add GPL-2.0-or-later license headers to all files
John Kacur <[email protected]>
| Newsgroups | org.kernel.vger.linux-rt-users |
|---|---|
| Message-ID | <[email protected]> |
Add SPDX license identifiers and copyright notices to ensure GPL compatibility with the rest of rteval. The MCP server code is part of rteval and must be licensed under GPL-2.0-or-later to be compatible with the main project. Changes: - Add GPL-2.0-or-later SPDX identifier to all Python files - Add copyright notice: Copyright 2026 John Kacur <[email protected]> - Add UTF-8 encoding declaration to all Python files - Add License section to README.md with GPL boilerplate All files now follow the same licensing pattern as the rest of rteval, with proper SPDX identifiers in the header comments. Assisted-by: Claude:claude-sonnet-4-5 Signed-off-by: John Kacur <[email protected]> --- mcp-server/DEPENDENCIES.md | 8 ++++++++ mcp-server/README.md | 11 +++++++++++ mcp-server/server.py | 7 +++++++ mcp-server/tests/test_histogram.py | 7 +++++++ mcp-server/tests/test_mcp_integration.py | 7 +++++++ mcp-server/tests/test_new_tools.py | 7 +++++++ mcp-server/tests/test_per_cpu_stats.py | 7 +++++++ 7 files changed, 54 insertions(+) diff --git a/mcp-server/DEPENDENCIES.md b/mcp-server/DEPENDENCIES.md index e139bd7df718..d8501916d628 100644 --- a/mcp-server/DEPENDENCIES.md +++ b/mcp-server/DEPENDENCIES.md @@ -1,3 +1,11 @@ +<!-- +SPDX-License-Identifier: GPL-2.0-or-later + +rteval MCP Server - Dependencies + +Copyright 2026 John Kacur <[email protected]> +--> + # Dependencies ## Fedora Packages diff --git a/mcp-server/README.md b/mcp-server/README.md index 81252964f1eb..6d6a9eb257dd 100644 --- a/mcp-server/README.md +++ b/mcp-server/README.md @@ -2,6 +2,17 @@ An MCP (Model Context Protocol) server for querying and analyzing rteval test results. +## License + +SPDX-License-Identifier: GPL-2.0-or-later + +Copyright 2026 John Kacur <[email protected]> + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + ## Purpose This MCP server provides tools to: diff --git a/mcp-server/server.py b/mcp-server/server.py index 8fbe7836facd..7a4c4f598af1 100755 --- a/mcp-server/server.py +++ b/mcp-server/server.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# SPDX-License-Identifier: GPL-2.0-or-later +# +# rteval MCP Server - tools for analyzing rteval results +# +# Copyright 2026 John Kacur <[email protected]> +# """ rteval MCP Server diff --git a/mcp-server/tests/test_histogram.py b/mcp-server/tests/test_histogram.py index a7e47c3cd2d0..917afb1aac93 100644 --- a/mcp-server/tests/test_histogram.py +++ b/mcp-server/tests/test_histogram.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# SPDX-License-Identifier: GPL-2.0-or-later +# +# rteval MCP Server tests - histogram and percentile tools +# +# Copyright 2026 John Kacur <[email protected]> +# """ Test script for histogram extraction and percentile calculation. """ diff --git a/mcp-server/tests/test_mcp_integration.py b/mcp-server/tests/test_mcp_integration.py index 7f137b81d51b..0b5f2954a16f 100644 --- a/mcp-server/tests/test_mcp_integration.py +++ b/mcp-server/tests/test_mcp_integration.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# SPDX-License-Identifier: GPL-2.0-or-later +# +# rteval MCP Server tests - integration tests +# +# Copyright 2026 John Kacur <[email protected]> +# """Integration tests for rteval MCP server. Tests the MCP server tools through the actual MCP interface, diff --git a/mcp-server/tests/test_new_tools.py b/mcp-server/tests/test_new_tools.py index cc6456960785..a81b23bbffbb 100644 --- a/mcp-server/tests/test_new_tools.py +++ b/mcp-server/tests/test_new_tools.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# SPDX-License-Identifier: GPL-2.0-or-later +# +# rteval MCP Server tests - query/filter tools +# +# Copyright 2026 John Kacur <[email protected]> +# """Test the new query/filter tools.""" import sys diff --git a/mcp-server/tests/test_per_cpu_stats.py b/mcp-server/tests/test_per_cpu_stats.py index 673cc89f0b08..6ec07dbf39fe 100644 --- a/mcp-server/tests/test_per_cpu_stats.py +++ b/mcp-server/tests/test_per_cpu_stats.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# SPDX-License-Identifier: GPL-2.0-or-later +# +# rteval MCP Server tests - per-CPU statistics +# +# Copyright 2026 John Kacur <[email protected]> +# """Test the get_per_cpu_stats tool.""" import sys -- 2.55.0