From b74da385d1868ef3dab6d43c2e20d5c779bbd606 Mon Sep 17 00:00:00 2001 From: yinchengfeng-bytedance Date: Fri, 27 Jun 2025 21:30:54 +0800 Subject: [PATCH 1/4] fix(arkitect): license_check.yaml --- .github/workflows/license_check.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yaml b/.github/workflows/license_check.yaml index 21753d64..61e4147b 100644 --- a/.github/workflows/license_check.yaml +++ b/.github/workflows/license_check.yaml @@ -12,8 +12,13 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + pull-requests: write steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: true - name: Check License Header uses: apache/skywalking-eyes/header@v0.4.0 @@ -29,4 +34,4 @@ jobs: with: author_name: License Bot author_email: license_bot@github.com - message: 'license: automatic application of license header.' + message: 'license: automatic application of license header' From 74bd76ff88193bd83a116905bace19b206e61f9d Mon Sep 17 00:00:00 2001 From: yinchengfeng-bytedance Date: Fri, 27 Jun 2025 21:32:00 +0800 Subject: [PATCH 2/4] fix(arkitect): fix licenserc.yaml --- .licenserc.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index a4bd3c38..447716e6 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -6,6 +6,7 @@ header: paths: - 'arkitect/**/*.py' - 'tests/**/*.py' + - 'mcp/**/*.py' comment: on-failure @@ -30,6 +31,7 @@ header: - 'demohouse/**/*.ts' - 'demohouse/**/*.tsx' - 'demohouse/**/*.js' + - 'example/**/*.py' language: TSX: @@ -38,4 +40,4 @@ header: - ".ts" comment_style_id: DoubleSlash - comment: on-failure \ No newline at end of file + comment: on-failure From a1ce9e9d2f6d7fe900647ce17a4a6d7ed66f9679 Mon Sep 17 00:00:00 2001 From: yinchengfeng-bytedance Date: Fri, 27 Jun 2025 21:32:49 +0800 Subject: [PATCH 3/4] fix(arkitect): fix commitlint.config.ts --- commitlint.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commitlint.config.ts b/commitlint.config.ts index 3c1e5fa1..805bf579 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -34,10 +34,10 @@ const Configuration: UserConfig = { // Allow empty scopes for CI and Release types if (!c.scope) return [['release', 'license'].includes(c.type), 'scope must be provided'] - const allowedScopes = ['arkitect', 'demohouse/*']; + const allowedScopes = ['arkitect', 'demohouse/*', 'mcp', 'example']; // 正则校验:arkitect 或 demohouse/ 开头 - const isValid = /^(arkitect|demohouse\/.+|mcp\/.+)$/.test(c.scope); + const isValid = /^(arkitect|demohouse\/.+|mcp\/.+|example\/.+)$/.test(c.scope); return [isValid, `Scope must be one of ${allowedScopes.join(', ')}`]; }, } From 698e2a8225fcff9924aa628b8cdf9182ddbcc15d Mon Sep 17 00:00:00 2001 From: License Bot Date: Fri, 27 Jun 2025 13:32:55 +0000 Subject: [PATCH 4/4] license: automatic application of license header --- .../mcp_server_ark/src/mcp_server_ark/__init__.py | 14 ++++++++++++++ .../mcp_server_ark/src/mcp_server_ark/config.py | 14 ++++++++++++++ .../mcp_server_ark/src/mcp_server_ark/server.py | 14 ++++++++++++++ .../src/mcp_server_knowledgebase/__init__.py | 14 ++++++++++++++ .../src/mcp_server_knowledgebase/config.py | 14 ++++++++++++++ .../src/mcp_server_knowledgebase/server.py | 14 ++++++++++++++ .../mcp_server_ppt/src/mcp_server_ppt/__init__.py | 14 ++++++++++++++ .../mcp_server_ppt/src/mcp_server_ppt/ppt.py | 14 ++++++++++++++ .../mcp_server_tls/src/mcp_server_tls/__init__.py | 14 ++++++++++++++ .../mcp_server_tls/src/mcp_server_tls/config.py | 14 ++++++++++++++ .../src/mcp_server_tls/resources/text_analysis.py | 14 ++++++++++++++ .../src/mcp_server_tls/resources/tls.py | 14 ++++++++++++++ .../src/mcp_server_tls/resources/tls_query.py | 14 ++++++++++++++ .../mcp_server_tls/src/mcp_server_tls/server.py | 14 ++++++++++++++ .../mcp_server_vefaas_function/vefaas_server.py | 14 ++++++++++++++ .../vefaas_server_test.py | 14 ++++++++++++++ .../src/mcp_server_vefaas_sandbox/__init__.py | 14 ++++++++++++++ .../src/mcp_server_vefaas_sandbox/server.py | 14 ++++++++++++++ 18 files changed, 252 insertions(+) diff --git a/mcp/server/mcp_server_ark/src/mcp_server_ark/__init__.py b/mcp/server/mcp_server_ark/src/mcp_server_ark/__init__.py index 8074dd03..67c13547 100644 --- a/mcp/server/mcp_server_ark/src/mcp_server_ark/__init__.py +++ b/mcp/server/mcp_server_ark/src/mcp_server_ark/__init__.py @@ -1 +1,15 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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. + # Package initialization diff --git a/mcp/server/mcp_server_ark/src/mcp_server_ark/config.py b/mcp/server/mcp_server_ark/src/mcp_server_ark/config.py index 701df4e2..ad9c65b5 100644 --- a/mcp/server/mcp_server_ark/src/mcp_server_ark/config.py +++ b/mcp/server/mcp_server_ark/src/mcp_server_ark/config.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 os import logging from dataclasses import dataclass diff --git a/mcp/server/mcp_server_ark/src/mcp_server_ark/server.py b/mcp/server/mcp_server_ark/src/mcp_server_ark/server.py index 8ca910b7..af7cc070 100644 --- a/mcp/server/mcp_server_ark/src/mcp_server_ark/server.py +++ b/mcp/server/mcp_server_ark/src/mcp_server_ark/server.py @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 os import argparse import logging diff --git a/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/__init__.py b/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/__init__.py index 8074dd03..67c13547 100644 --- a/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/__init__.py +++ b/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/__init__.py @@ -1 +1,15 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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. + # Package initialization diff --git a/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/config.py b/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/config.py index 0c60aabe..92bc63e5 100644 --- a/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/config.py +++ b/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/config.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 os import logging from dataclasses import dataclass diff --git a/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/server.py b/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/server.py index 5396f4ba..38f91077 100755 --- a/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/server.py +++ b/mcp/server/mcp_server_knowledgebase/src/mcp_server_knowledgebase/server.py @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 argparse import logging import os diff --git a/mcp/server/mcp_server_ppt/src/mcp_server_ppt/__init__.py b/mcp/server/mcp_server_ppt/src/mcp_server_ppt/__init__.py index e69de29b..44904a73 100644 --- a/mcp/server/mcp_server_ppt/src/mcp_server_ppt/__init__.py +++ b/mcp/server/mcp_server_ppt/src/mcp_server_ppt/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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/mcp/server/mcp_server_ppt/src/mcp_server_ppt/ppt.py b/mcp/server/mcp_server_ppt/src/mcp_server_ppt/ppt.py index 68ded4e2..76d56333 100644 --- a/mcp/server/mcp_server_ppt/src/mcp_server_ppt/ppt.py +++ b/mcp/server/mcp_server_ppt/src/mcp_server_ppt/ppt.py @@ -1,4 +1,18 @@ # coding: utf-8 +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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. + """ Chatppt MCP Server """ diff --git a/mcp/server/mcp_server_tls/src/mcp_server_tls/__init__.py b/mcp/server/mcp_server_tls/src/mcp_server_tls/__init__.py index c99a0f2f..50a34742 100644 --- a/mcp/server/mcp_server_tls/src/mcp_server_tls/__init__.py +++ b/mcp/server/mcp_server_tls/src/mcp_server_tls/__init__.py @@ -1 +1,15 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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. + # TLS MCP Server package diff --git a/mcp/server/mcp_server_tls/src/mcp_server_tls/config.py b/mcp/server/mcp_server_tls/src/mcp_server_tls/config.py index d8eb4d38..0560e1a4 100644 --- a/mcp/server/mcp_server_tls/src/mcp_server_tls/config.py +++ b/mcp/server/mcp_server_tls/src/mcp_server_tls/config.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 logging import os from dataclasses import dataclass diff --git a/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/text_analysis.py b/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/text_analysis.py index 9705ed08..9d2323d3 100644 --- a/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/text_analysis.py +++ b/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/text_analysis.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 json import logging from typing import Optional diff --git a/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls.py b/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls.py index 6802f4d0..071e45a0 100644 --- a/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls.py +++ b/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 hashlib import json import time diff --git a/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls_query.py b/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls_query.py index f62144cf..813915d3 100644 --- a/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls_query.py +++ b/mcp/server/mcp_server_tls/src/mcp_server_tls/resources/tls_query.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 logging from typing import Dict, List diff --git a/mcp/server/mcp_server_tls/src/mcp_server_tls/server.py b/mcp/server/mcp_server_tls/src/mcp_server_tls/server.py index a71a3339..d19045d3 100644 --- a/mcp/server/mcp_server_tls/src/mcp_server_tls/server.py +++ b/mcp/server/mcp_server_tls/src/mcp_server_tls/server.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 argparse import logging import os diff --git a/mcp/server/mcp_server_vefaas_function/vefaas_server.py b/mcp/server/mcp_server_vefaas_function/vefaas_server.py index 51256181..7c6699bb 100644 --- a/mcp/server/mcp_server_vefaas_function/vefaas_server.py +++ b/mcp/server/mcp_server_vefaas_function/vefaas_server.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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. + # vefaas_server.py from __future__ import print_function from mcp.server.fastmcp import FastMCP diff --git a/mcp/server/mcp_server_vefaas_function/vefaas_server_test.py b/mcp/server/mcp_server_vefaas_function/vefaas_server_test.py index 9acb3a6d..196de90b 100644 --- a/mcp/server/mcp_server_vefaas_function/vefaas_server_test.py +++ b/mcp/server/mcp_server_vefaas_function/vefaas_server_test.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 unittest import os from vefaas_server import does_function_exist diff --git a/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/__init__.py b/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/__init__.py index e69de29b..44904a73 100644 --- a/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/__init__.py +++ b/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/server.py b/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/server.py index ba6465cf..c195e3d8 100644 --- a/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/server.py +++ b/mcp/server/mcp_server_vefaas_sandbox/src/mcp_server_vefaas_sandbox/server.py @@ -1,3 +1,17 @@ +# Copyright 2025 Bytedance Ltd. and/or its affiliates +# +# 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 +# +# 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 argparse import json import logging