From 4b7a09239020660a849f4a79e97fba5de28682ab Mon Sep 17 00:00:00 2001 From: Yong Date: Sat, 22 Nov 2025 20:14:21 -0600 Subject: [PATCH 1/4] Added missing licenses/workflows and standardized license headers --- .../iceberg-catalog-migrator-main.yml | 2 +- .github/workflows/mcp-server.yml | 22 ++ .../workflows/polaris-synchronizer-main.yml | 69 +++++ .gitignore | 18 ++ README.md | 34 +-- SECURITY.md | 32 +-- apprunner/maven-plugin/pom.xml | 36 +-- .../applicationIdSpecified/pom.xml | 2 + .../pom.xml | 2 + .../pom.xml | 2 + .../unknownJdk/non-java-toolchains.xml | 2 + .../ITPolarisMavenPlugin/unknownJdk/pom.xml | 2 + iceberg-catalog-migrator/README.md | 34 +-- .../api/src/test/resources/logback.xml | 28 +- .../cli/src/main/resources/logback.xml | 28 +- .../codestyle/checkstyle-config.xml | 28 +- .../codestyle/org.eclipse.wst.xml.core.prefs | 20 ++ iceberg-catalog-migrator/docs/examples.md | 34 +-- .../docs/getting-started.md | 34 +-- .../docs/object-store-access-configuration.md | 34 +-- .../docs/troubleshooting.md | 34 +-- mcp-server/.pre-commit-config.yaml | 2 + mcp-server/build.gradle.kts | 77 ++++++ mcp-server/gradle/gradlew-include.sh | 65 +++++ .../wrapper/gradle-wrapper-8.13.jar.sha256 | 1 + .../gradle/wrapper/gradle-wrapper.properties | 8 + mcp-server/gradlew | 253 ++++++++++++++++++ mcp-server/settings.gradle.kts | 20 ++ mcp-server/tests/test_namespace_tool.py | 19 ++ mcp-server/tests/test_server.py | 19 ++ mcp-server/tests/test_table_tool.py | 19 ++ polaris-synchronizer/.gitignore | 19 ++ polaris-synchronizer/README.md | 34 +-- .../resources/polaris-management-service.yml | 33 +-- .../cli/src/main/resources/logback.xml | 36 +-- .../gradle/gradlew-include.sh | 65 +++++ polaris-synchronizer/gradlew | 5 +- 37 files changed, 949 insertions(+), 223 deletions(-) create mode 100644 .github/workflows/polaris-synchronizer-main.yml create mode 100644 mcp-server/build.gradle.kts create mode 100644 mcp-server/gradle/gradlew-include.sh create mode 100644 mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 create mode 100644 mcp-server/gradle/wrapper/gradle-wrapper.properties create mode 100755 mcp-server/gradlew create mode 100644 mcp-server/settings.gradle.kts create mode 100644 polaris-synchronizer/gradle/gradlew-include.sh diff --git a/.github/workflows/iceberg-catalog-migrator-main.yml b/.github/workflows/iceberg-catalog-migrator-main.yml index 73c24f3e..4d51274f 100644 --- a/.github/workflows/iceberg-catalog-migrator-main.yml +++ b/.github/workflows/iceberg-catalog-migrator-main.yml @@ -57,7 +57,7 @@ jobs: - name: Build & Check run: | cd iceberg-catalog-migrator - ./gradlew --rerun-tasks assemble ${{ env.ADDITIONAL_GRADLE_OPTS }} check publishToMavenLocal + ./gradlew --rerun-tasks assemble ${{ env.ADDITIONAL_GRADLE_OPTS }} check - name: Capture test results uses: actions/upload-artifact@v4 diff --git a/.github/workflows/mcp-server.yml b/.github/workflows/mcp-server.yml index 8e3328e7..f605e67f 100644 --- a/.github/workflows/mcp-server.yml +++ b/.github/workflows/mcp-server.yml @@ -29,8 +29,14 @@ name: MCP Server CI on: push: branches: [ "main" ] + paths: + - 'mcp-server/**' + - '.github/**' pull_request: branches: [ "main" ] + paths: + - 'mcp-server/**' + - '.github/**' env: GRADLE_TOS_ACCEPTED: ${{ vars.GRADLE_TOS_ACCEPTED }} @@ -54,6 +60,22 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: | + 21 + ${{ matrix.java-version != '21' && matrix.java-version || '' }} + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Check + run: | + cd mcp-server + ./gradlew rat + - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh diff --git a/.github/workflows/polaris-synchronizer-main.yml b/.github/workflows/polaris-synchronizer-main.yml new file mode 100644 index 00000000..7054a62f --- /dev/null +++ b/.github/workflows/polaris-synchronizer-main.yml @@ -0,0 +1,69 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: Polaris Synchronizer CI + +on: + push: + branches: [ main ] + paths: + - 'polaris-synchronizer/**' + - '.github/**' + pull_request: + paths: + - 'polaris-synchronizer/**' + - '.github/**' + +jobs: + java: + name: Java/Gradle + runs-on: ubuntu-24.04 + strategy: + max-parallel: 4 + matrix: + java-version: [21, 23] + steps: + - uses: actions/checkout@v4 + with: + submodules: 'true' + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: | + 21 + ${{ matrix.java-version != '21' && matrix.java-version || '' }} + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build & Check + run: | + cd polaris-synchronizer + ./gradlew --rerun-tasks assemble ${{ env.ADDITIONAL_GRADLE_OPTS }} check + + - name: Capture test results + uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-results-${{ matrix.java-version }} + path: | + **/build/reports/* + **/build/test-results/* diff --git a/.gitignore b/.gitignore index 2ff0a241..9fd9d042 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ### Java ### # Compiled class file diff --git a/README.md b/README.md index e36fdbb5..b1fe4f43 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Apache Polaris (Incubating) Tools diff --git a/SECURITY.md b/SECURITY.md index da74663a..061734cc 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,19 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Reporting Security Issues diff --git a/apprunner/maven-plugin/pom.xml b/apprunner/maven-plugin/pom.xml index 774520a8..08c98665 100644 --- a/apprunner/maven-plugin/pom.xml +++ b/apprunner/maven-plugin/pom.xml @@ -1,22 +1,24 @@ + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> diff --git a/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/applicationIdSpecified/pom.xml b/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/applicationIdSpecified/pom.xml index a1a5e826..b9479de3 100644 --- a/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/applicationIdSpecified/pom.xml +++ b/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/applicationIdSpecified/pom.xml @@ -1,5 +1,6 @@ diff --git a/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/unknownJdk/pom.xml b/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/unknownJdk/pom.xml index d75b21fa..72c9dae8 100644 --- a/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/unknownJdk/pom.xml +++ b/apprunner/maven-plugin/src/test/resources-its/org/apache/polaris/apprunner/maven/ITPolarisMavenPlugin/unknownJdk/pom.xml @@ -1,5 +1,6 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Iceberg Catalog Migrator diff --git a/iceberg-catalog-migrator/api/src/test/resources/logback.xml b/iceberg-catalog-migrator/api/src/test/resources/logback.xml index 769b6180..4a2458be 100644 --- a/iceberg-catalog-migrator/api/src/test/resources/logback.xml +++ b/iceberg-catalog-migrator/api/src/test/resources/logback.xml @@ -1,19 +1,23 @@ diff --git a/iceberg-catalog-migrator/cli/src/main/resources/logback.xml b/iceberg-catalog-migrator/cli/src/main/resources/logback.xml index b257baf3..1c3177b5 100644 --- a/iceberg-catalog-migrator/cli/src/main/resources/logback.xml +++ b/iceberg-catalog-migrator/cli/src/main/resources/logback.xml @@ -1,19 +1,23 @@ diff --git a/iceberg-catalog-migrator/codestyle/checkstyle-config.xml b/iceberg-catalog-migrator/codestyle/checkstyle-config.xml index f895b4a3..9dc90ac1 100644 --- a/iceberg-catalog-migrator/codestyle/checkstyle-config.xml +++ b/iceberg-catalog-migrator/codestyle/checkstyle-config.xml @@ -1,19 +1,23 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Examples diff --git a/iceberg-catalog-migrator/docs/getting-started.md b/iceberg-catalog-migrator/docs/getting-started.md index 48bd6f97..ffbcd419 100644 --- a/iceberg-catalog-migrator/docs/getting-started.md +++ b/iceberg-catalog-migrator/docs/getting-started.md @@ -1,21 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Getting Started diff --git a/iceberg-catalog-migrator/docs/object-store-access-configuration.md b/iceberg-catalog-migrator/docs/object-store-access-configuration.md index a28b7604..3f984e7d 100644 --- a/iceberg-catalog-migrator/docs/object-store-access-configuration.md +++ b/iceberg-catalog-migrator/docs/object-store-access-configuration.md @@ -1,21 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Object Store Access Configuration diff --git a/iceberg-catalog-migrator/docs/troubleshooting.md b/iceberg-catalog-migrator/docs/troubleshooting.md index dd44493c..d89f824c 100644 --- a/iceberg-catalog-migrator/docs/troubleshooting.md +++ b/iceberg-catalog-migrator/docs/troubleshooting.md @@ -1,21 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Troubleshooting diff --git a/mcp-server/.pre-commit-config.yaml b/mcp-server/.pre-commit-config.yaml index 30051568..8e360cd7 100644 --- a/mcp-server/.pre-commit-config.yaml +++ b/mcp-server/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -14,6 +15,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# repos: - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/mcp-server/build.gradle.kts b/mcp-server/build.gradle.kts new file mode 100644 index 00000000..66dc6c77 --- /dev/null +++ b/mcp-server/build.gradle.kts @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.nosphere.apache.rat.RatTask + +plugins { + id("org.nosphere.apache.rat") version "0.8.1" +} + +repositories { + mavenCentral() +} + +tasks.named("rat").configure { + // Gradle + excludes.add("**/build/**") + excludes.add("gradle/wrapper/gradle-wrapper*") + excludes.add(".gradle") + + excludes.add("LICENSE") + excludes.add("DISCLAIMER") + excludes.add("NOTICE") + + // Git & GitHub + excludes.add(".git") + excludes.add(".github/pull_request_template.md") + + // Python specific + excludes.add("**/*.pyc") + excludes.add("**/__pycache__/**") + excludes.add(".venv/**") + excludes.add("uv.lock") + excludes.add("polaris_mcp.egg-info/**") + excludes.add(".pytest_cache/**") + + // Misc build artifacts + excludes.add("**/.keep") + excludes.add("logs/**") + excludes.add("**/*.lock") + + // Configuration files that cannot have headers + excludes.add("**/*.conf") + excludes.add("**/*.properties") + + // Binary files + excludes.add("**/*.jar") + excludes.add("**/*.zip") + excludes.add("**/*.tar.gz") + excludes.add("**/*.tgz") + excludes.add("**/*.class") + + // IntelliJ + excludes.add(".idea") + excludes.add("**/*.iml") + excludes.add("**/*.iws") + + // Rat can't scan binary images + excludes.add("**/*.png") + excludes.add("**/*.svg") + excludes.add("**/*.puml") +} diff --git a/mcp-server/gradle/gradlew-include.sh b/mcp-server/gradle/gradlew-include.sh new file mode 100644 index 00000000..38251e36 --- /dev/null +++ b/mcp-server/gradle/gradlew-include.sh @@ -0,0 +1,65 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Downloads the gradle-wrapper.jar if necessary and verifies its integrity. +# Included from /.gradlew + +# Extract the Gradle version from gradle-wrapper.properties. +GRADLE_DIST_VERSION="$(grep distributionUrl= "$APP_HOME/gradle/wrapper/gradle-wrapper.properties" | sed 's/^.*gradle-\([0-9.]*\)-[a-z]*.zip$/\1/')" +GRADLE_WRAPPER_SHA256="$APP_HOME/gradle/wrapper/gradle-wrapper-${GRADLE_DIST_VERSION}.jar.sha256" +GRADLE_WRAPPER_JAR="$APP_HOME/gradle/wrapper/gradle-wrapper.jar" +if [ -x "$(command -v sha256sum)" ] ; then + SHASUM="sha256sum" +else + if [ -x "$(command -v shasum)" ] ; then + SHASUM="shasum -a 256" + else + echo "Neither sha256sum nor shasum are available, install either." > /dev/stderr + exit 1 + fi +fi +if [ ! -e "${GRADLE_WRAPPER_SHA256}" ]; then + # Delete the wrapper jar, if the checksum file does not exist. + rm -f "${GRADLE_WRAPPER_JAR}" +fi +if [ -e "${GRADLE_WRAPPER_JAR}" ]; then + # Verify the wrapper jar, if it exists, delete wrapper jar and checksum file, if the checksums + # do not match. + JAR_CHECKSUM="$(${SHASUM} "${GRADLE_WRAPPER_JAR}" | cut -d\ -f1)" + EXPECTED="$(cat "${GRADLE_WRAPPER_SHA256}")" + if [ "${JAR_CHECKSUM}" != "${EXPECTED}" ]; then + rm -f "${GRADLE_WRAPPER_JAR}" "${GRADLE_WRAPPER_SHA256}" + fi +fi +if [ ! -e "${GRADLE_WRAPPER_SHA256}" ]; then + curl --location --output "${GRADLE_WRAPPER_SHA256}" https://services.gradle.org/distributions/gradle-${GRADLE_DIST_VERSION}-wrapper.jar.sha256 || exit 1 +fi +if [ ! -e "${GRADLE_WRAPPER_JAR}" ]; then + # The Gradle version extracted from the `distributionUrl` property does not contain ".0" patch + # versions. Need to append a ".0" in that case to download the wrapper jar. + GRADLE_VERSION="$(echo "$GRADLE_DIST_VERSION" | sed 's/^\([0-9]*[.][0-9]*\)$/\1.0/')" + curl --location --output "${GRADLE_WRAPPER_JAR}" https://raw.githubusercontent.com/gradle/gradle/v${GRADLE_VERSION}/gradle/wrapper/gradle-wrapper.jar || exit 1 + JAR_CHECKSUM="$(${SHASUM} "${GRADLE_WRAPPER_JAR}" | cut -d\ -f1)" + EXPECTED="$(cat "${GRADLE_WRAPPER_SHA256}")" + if [ "${JAR_CHECKSUM}" != "${EXPECTED}" ]; then + # If the (just downloaded) checksum and the downloaded wrapper jar do not match, something + # really bad is going on. + echo "Expected sha256 of the downloaded gradle-wrapper.jar does not match the downloaded sha256!" > /dev/stderr + exit 1 + fi +fi diff --git a/mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 b/mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 new file mode 100644 index 00000000..b7daa59f --- /dev/null +++ b/mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 @@ -0,0 +1 @@ +81a82aaea5abcc8ff68b3dfcb58b3c3c429378efd98e7433460610fecd7ae45f \ No newline at end of file diff --git a/mcp-server/gradle/wrapper/gradle-wrapper.properties b/mcp-server/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..36e4933e --- /dev/null +++ b/mcp-server/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,8 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/mcp-server/gradlew b/mcp-server/gradlew new file mode 100755 index 00000000..2741145b --- /dev/null +++ b/mcp-server/gradlew @@ -0,0 +1,253 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +. ${APP_HOME}/gradle/gradlew-include.sh + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" \ No newline at end of file diff --git a/mcp-server/settings.gradle.kts b/mcp-server/settings.gradle.kts new file mode 100644 index 00000000..49d6ed46 --- /dev/null +++ b/mcp-server/settings.gradle.kts @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +rootProject.name = "polaris-mcp-server" diff --git a/mcp-server/tests/test_namespace_tool.py b/mcp-server/tests/test_namespace_tool.py index 88af2b16..81fed335 100644 --- a/mcp-server/tests/test_namespace_tool.py +++ b/mcp-server/tests/test_namespace_tool.py @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + """Unit tests for ``polaris_mcp.tools.namespace``.""" from __future__ import annotations diff --git a/mcp-server/tests/test_server.py b/mcp-server/tests/test_server.py index 0322a56b..9680cc8b 100644 --- a/mcp-server/tests/test_server.py +++ b/mcp-server/tests/test_server.py @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + """Unit tests for ``polaris_mcp.server`` helpers.""" from __future__ import annotations diff --git a/mcp-server/tests/test_table_tool.py b/mcp-server/tests/test_table_tool.py index 88bd8eee..b5bdce9e 100644 --- a/mcp-server/tests/test_table_tool.py +++ b/mcp-server/tests/test_table_tool.py @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + """Unit tests for ``polaris_mcp.tools.table``.""" from __future__ import annotations diff --git a/polaris-synchronizer/.gitignore b/polaris-synchronizer/.gitignore index a893541d..a95a1c00 100644 --- a/polaris-synchronizer/.gitignore +++ b/polaris-synchronizer/.gitignore @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ### Java ### # Compiled class file @@ -56,6 +74,7 @@ out/ .gradle/ build/ gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper-*.sha256 version.txt # Python venv diff --git a/polaris-synchronizer/README.md b/polaris-synchronizer/README.md index 52f473ed..3340370b 100644 --- a/polaris-synchronizer/README.md +++ b/polaris-synchronizer/README.md @@ -1,21 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> # Objective diff --git a/polaris-synchronizer/api/src/main/resources/polaris-management-service.yml b/polaris-synchronizer/api/src/main/resources/polaris-management-service.yml index ecf374c7..889daafb 100644 --- a/polaris-synchronizer/api/src/main/resources/polaris-management-service.yml +++ b/polaris-synchronizer/api/src/main/resources/polaris-management-service.yml @@ -1,20 +1,21 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at - +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# # http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# openapi: 3.0.3 info: diff --git a/polaris-synchronizer/cli/src/main/resources/logback.xml b/polaris-synchronizer/cli/src/main/resources/logback.xml index 663e03f3..ae3b000f 100644 --- a/polaris-synchronizer/cli/src/main/resources/logback.xml +++ b/polaris-synchronizer/cli/src/main/resources/logback.xml @@ -1,22 +1,24 @@ + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> diff --git a/polaris-synchronizer/gradle/gradlew-include.sh b/polaris-synchronizer/gradle/gradlew-include.sh new file mode 100644 index 00000000..38251e36 --- /dev/null +++ b/polaris-synchronizer/gradle/gradlew-include.sh @@ -0,0 +1,65 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Downloads the gradle-wrapper.jar if necessary and verifies its integrity. +# Included from /.gradlew + +# Extract the Gradle version from gradle-wrapper.properties. +GRADLE_DIST_VERSION="$(grep distributionUrl= "$APP_HOME/gradle/wrapper/gradle-wrapper.properties" | sed 's/^.*gradle-\([0-9.]*\)-[a-z]*.zip$/\1/')" +GRADLE_WRAPPER_SHA256="$APP_HOME/gradle/wrapper/gradle-wrapper-${GRADLE_DIST_VERSION}.jar.sha256" +GRADLE_WRAPPER_JAR="$APP_HOME/gradle/wrapper/gradle-wrapper.jar" +if [ -x "$(command -v sha256sum)" ] ; then + SHASUM="sha256sum" +else + if [ -x "$(command -v shasum)" ] ; then + SHASUM="shasum -a 256" + else + echo "Neither sha256sum nor shasum are available, install either." > /dev/stderr + exit 1 + fi +fi +if [ ! -e "${GRADLE_WRAPPER_SHA256}" ]; then + # Delete the wrapper jar, if the checksum file does not exist. + rm -f "${GRADLE_WRAPPER_JAR}" +fi +if [ -e "${GRADLE_WRAPPER_JAR}" ]; then + # Verify the wrapper jar, if it exists, delete wrapper jar and checksum file, if the checksums + # do not match. + JAR_CHECKSUM="$(${SHASUM} "${GRADLE_WRAPPER_JAR}" | cut -d\ -f1)" + EXPECTED="$(cat "${GRADLE_WRAPPER_SHA256}")" + if [ "${JAR_CHECKSUM}" != "${EXPECTED}" ]; then + rm -f "${GRADLE_WRAPPER_JAR}" "${GRADLE_WRAPPER_SHA256}" + fi +fi +if [ ! -e "${GRADLE_WRAPPER_SHA256}" ]; then + curl --location --output "${GRADLE_WRAPPER_SHA256}" https://services.gradle.org/distributions/gradle-${GRADLE_DIST_VERSION}-wrapper.jar.sha256 || exit 1 +fi +if [ ! -e "${GRADLE_WRAPPER_JAR}" ]; then + # The Gradle version extracted from the `distributionUrl` property does not contain ".0" patch + # versions. Need to append a ".0" in that case to download the wrapper jar. + GRADLE_VERSION="$(echo "$GRADLE_DIST_VERSION" | sed 's/^\([0-9]*[.][0-9]*\)$/\1.0/')" + curl --location --output "${GRADLE_WRAPPER_JAR}" https://raw.githubusercontent.com/gradle/gradle/v${GRADLE_VERSION}/gradle/wrapper/gradle-wrapper.jar || exit 1 + JAR_CHECKSUM="$(${SHASUM} "${GRADLE_WRAPPER_JAR}" | cut -d\ -f1)" + EXPECTED="$(cat "${GRADLE_WRAPPER_SHA256}")" + if [ "${JAR_CHECKSUM}" != "${EXPECTED}" ]; then + # If the (just downloaded) checksum and the downloaded wrapper jar do not match, something + # really bad is going on. + echo "Expected sha256 of the downloaded gradle-wrapper.jar does not match the downloaded sha256!" > /dev/stderr + exit 1 + fi +fi diff --git a/polaris-synchronizer/gradlew b/polaris-synchronizer/gradlew index f5feea6d..fac81d1e 100755 --- a/polaris-synchronizer/gradlew +++ b/polaris-synchronizer/gradlew @@ -86,8 +86,9 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s -' "$PWD" ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +. ${APP_HOME}/gradle/gradlew-include.sh # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum From 9ce7473eeb3cf3474aaaec3cf9f0c07a2a3a0a69 Mon Sep 17 00:00:00 2001 From: Yong Date: Sat, 22 Nov 2025 20:20:40 -0600 Subject: [PATCH 2/4] Update .gitignore --- .gitignore | 1 + mcp-server/.gitignore | 70 +++++++++++++++++++ .../gradle/wrapper/gradle-wrapper.properties | 8 --- 3 files changed, 71 insertions(+), 8 deletions(-) create mode 100644 mcp-server/.gitignore delete mode 100644 mcp-server/gradle/wrapper/gradle-wrapper.properties diff --git a/.gitignore b/.gitignore index 9fd9d042..5f6e351b 100644 --- a/.gitignore +++ b/.gitignore @@ -74,6 +74,7 @@ out/ .gradle/ build/ gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper-*.sha256 version.txt # Python venv diff --git a/mcp-server/.gitignore b/mcp-server/.gitignore new file mode 100644 index 00000000..1b6b80e5 --- /dev/null +++ b/mcp-server/.gitignore @@ -0,0 +1,70 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints + +# Ignore Gradle wrapper jar file +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper-*.sha256 diff --git a/mcp-server/gradle/wrapper/gradle-wrapper.properties b/mcp-server/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 36e4933e..00000000 --- a/mcp-server/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,8 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78 -distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip -networkTimeout=10000 -validateDistributionUrl=true -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists From 7463aeffff59cd23bf873c3e9c03d651a5181b00 Mon Sep 17 00:00:00 2001 From: Yong Date: Sat, 22 Nov 2025 20:23:44 -0600 Subject: [PATCH 3/4] Update .gitignore --- mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 | 1 - mcp-server/gradle/wrapper/gradle-wrapper.properties | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 create mode 100644 mcp-server/gradle/wrapper/gradle-wrapper.properties diff --git a/mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 b/mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 deleted file mode 100644 index b7daa59f..00000000 --- a/mcp-server/gradle/wrapper/gradle-wrapper-8.13.jar.sha256 +++ /dev/null @@ -1 +0,0 @@ -81a82aaea5abcc8ff68b3dfcb58b3c3c429378efd98e7433460610fecd7ae45f \ No newline at end of file diff --git a/mcp-server/gradle/wrapper/gradle-wrapper.properties b/mcp-server/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..36e4933e --- /dev/null +++ b/mcp-server/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,8 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists From 28d821ac6ae618f3465bce16bb09ecf631cde2af Mon Sep 17 00:00:00 2001 From: Yong Date: Sat, 22 Nov 2025 20:29:42 -0600 Subject: [PATCH 4/4] nit: fixed newline --- mcp-server/gradlew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp-server/gradlew b/mcp-server/gradlew index 2741145b..fac81d1e 100755 --- a/mcp-server/gradlew +++ b/mcp-server/gradlew @@ -250,4 +250,4 @@ eval "set -- $( tr '\n' ' ' )" '"$@"' -exec "$JAVACMD" "$@" \ No newline at end of file +exec "$JAVACMD" "$@"