wcgw 2.4.1__tar.gz → 2.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wcgw might be problematic. Click here for more details.
- {wcgw-2.4.1 → wcgw-2.4.3}/.github/workflows/python-publish.yml +2 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/.github/workflows/python-tests.yml +2 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/.github/workflows/python-types.yml +3 -1
- wcgw-2.4.3/.gitmodules +3 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/PKG-INFO +1 -2
- {wcgw-2.4.1 → wcgw-2.4.3}/pyproject.toml +8 -5
- wcgw-2.4.3/src/mcp_wcgw/.git +1 -0
- wcgw-2.4.3/src/mcp_wcgw/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- wcgw-2.4.3/src/mcp_wcgw/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- wcgw-2.4.3/src/mcp_wcgw/.github/workflows/main-checks.yml +11 -0
- wcgw-2.4.3/src/mcp_wcgw/.github/workflows/publish-pypi.yml +55 -0
- wcgw-2.4.3/src/mcp_wcgw/.github/workflows/pull-request-checks.yml +8 -0
- wcgw-2.4.3/src/mcp_wcgw/.github/workflows/shared.yml +69 -0
- wcgw-2.4.3/src/mcp_wcgw/.gitignore +162 -0
- wcgw-2.4.3/src/mcp_wcgw/.python-version +1 -0
- wcgw-2.4.3/src/mcp_wcgw/CODE_OF_CONDUCT.md +128 -0
- wcgw-2.4.3/src/mcp_wcgw/CONTRIBUTING.md +56 -0
- wcgw-2.4.3/src/mcp_wcgw/LICENSE +21 -0
- wcgw-2.4.3/src/mcp_wcgw/README.md +342 -0
- wcgw-2.4.3/src/mcp_wcgw/RELEASE.md +15 -0
- wcgw-2.4.3/src/mcp_wcgw/SECURITY.md +14 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/README.md +5 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-prompt/.python-version +1 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-prompt/README.md +55 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-prompt/mcp_simple_prompt/__init__.py +1 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-prompt/mcp_simple_prompt/__main__.py +5 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-prompt/mcp_simple_prompt/server.py +130 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-prompt/pyproject.toml +47 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-resource/.python-version +1 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-resource/README.md +48 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-resource/mcp_simple_resource/__init__.py +1 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-resource/mcp_simple_resource/__main__.py +5 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-resource/mcp_simple_resource/server.py +86 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-resource/pyproject.toml +47 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-tool/.python-version +1 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-tool/README.md +48 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-tool/mcp_simple_tool/__init__.py +1 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-tool/mcp_simple_tool/__main__.py +5 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-tool/mcp_simple_tool/server.py +100 -0
- wcgw-2.4.3/src/mcp_wcgw/examples/servers/simple-tool/pyproject.toml +47 -0
- wcgw-2.4.3/src/mcp_wcgw/pyproject.toml +75 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/__init__.py +114 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/client/__main__.py +79 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/client/session.py +234 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/client/sse.py +142 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/client/stdio.py +128 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/py.typed +0 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/__init__.py +514 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/__main__.py +50 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/models.py +16 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/session.py +288 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/sse.py +178 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/stdio.py +83 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/server/websocket.py +61 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/__init__.py +0 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/context.py +14 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/exceptions.py +9 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/memory.py +87 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/progress.py +40 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/session.py +288 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/shared/version.py +3 -0
- wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw/types.py +1060 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/__init__.py +0 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/client/__init__.py +0 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/client/test_session.py +98 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/client/test_stdio.py +38 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/conftest.py +29 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/server/__init__.py +0 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/server/test_session.py +100 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/server/test_stdio.py +68 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/shared/test_memory.py +28 -0
- wcgw-2.4.3/src/mcp_wcgw/tests/test_types.py +29 -0
- wcgw-2.4.3/src/mcp_wcgw/uv.lock +621 -0
- wcgw-2.4.3/src/wcgw/client/__init__.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/tools.py +15 -4
- {wcgw-2.4.1 → wcgw-2.4.3}/uv.lock +4 -41
- {wcgw-2.4.1 → wcgw-2.4.3}/.gitignore +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/.python-version +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/.vscode/settings.json +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/README.md +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/gpt_action_json_schema.json +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/gpt_instructions.txt +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/openai.md +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/__init__.py +0 -0
- {wcgw-2.4.1/src/wcgw → wcgw-2.4.3/src/mcp_wcgw/src/mcp_wcgw}/client/__init__.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/__init__.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/__main__.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/anthropic_client.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/cli.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/common.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/computer_use.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/diff-instructions.txt +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/mcp_server/Readme.md +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/mcp_server/__init__.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/mcp_server/server.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/openai_client.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/openai_utils.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/client/sys_utils.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/relay/serve.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/relay/static/privacy.txt +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/src/wcgw/types_.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/static/claude-ss.jpg +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/static/computer-use.jpg +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/static/example.jpg +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/static/rocket-icon.png +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/static/ss1.png +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/tests/test_basic.py +0 -0
- {wcgw-2.4.1 → wcgw-2.4.3}/tests/test_tools.py +0 -0
|
@@ -16,6 +16,8 @@ jobs:
|
|
|
16
16
|
python-version: ["3.11", "3.12"]
|
|
17
17
|
steps:
|
|
18
18
|
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
submodules: recursive
|
|
19
21
|
- name: Set up Python
|
|
20
22
|
uses: actions/setup-python@v3
|
|
21
23
|
with:
|
|
@@ -26,4 +28,4 @@ jobs:
|
|
|
26
28
|
uv venv --python "${{ matrix.python-version }}"
|
|
27
29
|
- name: Run type checks
|
|
28
30
|
run: |
|
|
29
|
-
uv run mypy --strict src
|
|
31
|
+
uv run mypy --strict src/wcgw
|
wcgw-2.4.3/.gitmodules
ADDED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wcgw
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.3
|
|
4
4
|
Summary: Shell and coding agent on claude and chatgpt
|
|
5
5
|
Project-URL: Homepage, https://github.com/rusiaaman/wcgw
|
|
6
6
|
Author-email: Aman Rusia <gapypi@arcfu.com>
|
|
@@ -8,7 +8,6 @@ Requires-Python: <3.13,>=3.11
|
|
|
8
8
|
Requires-Dist: anthropic>=0.39.0
|
|
9
9
|
Requires-Dist: fastapi>=0.115.0
|
|
10
10
|
Requires-Dist: humanize>=4.11.0
|
|
11
|
-
Requires-Dist: mcp-wcgw
|
|
12
11
|
Requires-Dist: openai>=1.46.0
|
|
13
12
|
Requires-Dist: petname>=2.6
|
|
14
13
|
Requires-Dist: pexpect>=4.9.0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
authors = [{ name = "Aman Rusia", email = "gapypi@arcfu.com" }]
|
|
3
3
|
name = "wcgw"
|
|
4
|
-
version = "2.4.
|
|
4
|
+
version = "2.4.3"
|
|
5
5
|
description = "Shell and coding agent on claude and chatgpt"
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
requires-python = ">=3.11, <3.13"
|
|
@@ -25,7 +25,6 @@ dependencies = [
|
|
|
25
25
|
"anthropic>=0.39.0",
|
|
26
26
|
"humanize>=4.11.0",
|
|
27
27
|
"syntax-checker==0.2.10",
|
|
28
|
-
"mcp-wcgw",
|
|
29
28
|
]
|
|
30
29
|
|
|
31
30
|
[project.urls]
|
|
@@ -35,6 +34,13 @@ Homepage = "https://github.com/rusiaaman/wcgw"
|
|
|
35
34
|
requires = ["hatchling"]
|
|
36
35
|
build-backend = "hatchling.build"
|
|
37
36
|
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/wcgw", "src/mcp_wcgw/src/mcp_wcgw"]
|
|
39
|
+
|
|
40
|
+
[tool.hatch.build.targets.wheel.sources]
|
|
41
|
+
"src/mcp_wcgw/src/mcp_wcgw" = "mcp_wcgw"
|
|
42
|
+
"src/wcgw" = "wcgw"
|
|
43
|
+
|
|
38
44
|
[project.scripts]
|
|
39
45
|
wcgw_local = "wcgw:app"
|
|
40
46
|
wcgw = "wcgw:listen"
|
|
@@ -49,6 +55,3 @@ dev-dependencies = [
|
|
|
49
55
|
"ipython>=8.12.3",
|
|
50
56
|
"gunicorn>=23.0.0",
|
|
51
57
|
]
|
|
52
|
-
|
|
53
|
-
[tool.uv.sources]
|
|
54
|
-
mcp-wcgw = { git = "https://github.com/rusiaaman/python-sdk.git", rev = '7469d1596e4cbdf2bd0a164eefca8182cd2687eb' }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gitdir: ../../.git/modules/src/mcp_wcgw
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Publishing
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
release-build:
|
|
9
|
+
name: Build distribution
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
needs: [checks]
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Install uv
|
|
16
|
+
uses: astral-sh/setup-uv@v3
|
|
17
|
+
|
|
18
|
+
- name: "Set up Python"
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version-file: ".python-version"
|
|
22
|
+
|
|
23
|
+
- name: Install the project
|
|
24
|
+
run: uv sync --frozen --all-extras --dev
|
|
25
|
+
|
|
26
|
+
- name: Build
|
|
27
|
+
run: uv build
|
|
28
|
+
|
|
29
|
+
- name: Upload artifacts
|
|
30
|
+
uses: actions/upload-artifact@v4
|
|
31
|
+
with:
|
|
32
|
+
name: release-dists
|
|
33
|
+
path: dist/
|
|
34
|
+
|
|
35
|
+
checks:
|
|
36
|
+
uses: ./.github/workflows/shared.yml
|
|
37
|
+
|
|
38
|
+
pypi-publish:
|
|
39
|
+
name: Upload release to PyPI
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
environment: release
|
|
42
|
+
needs:
|
|
43
|
+
- release-build
|
|
44
|
+
permissions:
|
|
45
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- name: Retrieve release distributions
|
|
49
|
+
uses: actions/download-artifact@v4
|
|
50
|
+
with:
|
|
51
|
+
name: release-dists
|
|
52
|
+
path: dist/
|
|
53
|
+
|
|
54
|
+
- name: Publish package distributions to PyPI
|
|
55
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: Shared Checks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
format:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
|
|
12
|
+
- name: Install uv
|
|
13
|
+
uses: astral-sh/setup-uv@v3
|
|
14
|
+
with:
|
|
15
|
+
enable-cache: true
|
|
16
|
+
|
|
17
|
+
- name: "Set up Python"
|
|
18
|
+
uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version-file: ".python-version"
|
|
21
|
+
|
|
22
|
+
- name: Install the project
|
|
23
|
+
run: uv sync --frozen --all-extras --dev
|
|
24
|
+
|
|
25
|
+
- name: Run ruff format check
|
|
26
|
+
run: uv run --frozen ruff check .
|
|
27
|
+
|
|
28
|
+
typecheck:
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v4
|
|
32
|
+
|
|
33
|
+
- name: Install uv
|
|
34
|
+
uses: astral-sh/setup-uv@v3
|
|
35
|
+
with:
|
|
36
|
+
enable-cache: true
|
|
37
|
+
|
|
38
|
+
- name: "Set up Python"
|
|
39
|
+
uses: actions/setup-python@v5
|
|
40
|
+
with:
|
|
41
|
+
python-version-file: ".python-version"
|
|
42
|
+
|
|
43
|
+
- name: Install the project
|
|
44
|
+
run: uv sync --frozen --all-extras --dev
|
|
45
|
+
|
|
46
|
+
- name: Run pyright
|
|
47
|
+
run: uv run --frozen pyright
|
|
48
|
+
|
|
49
|
+
build:
|
|
50
|
+
runs-on: ubuntu-latest
|
|
51
|
+
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v4
|
|
54
|
+
|
|
55
|
+
- name: Install uv
|
|
56
|
+
uses: astral-sh/setup-uv@v3
|
|
57
|
+
with:
|
|
58
|
+
enable-cache: true
|
|
59
|
+
|
|
60
|
+
- name: "Set up Python"
|
|
61
|
+
uses: actions/setup-python@v5
|
|
62
|
+
with:
|
|
63
|
+
python-version-file: ".python-version"
|
|
64
|
+
|
|
65
|
+
- name: Install the project
|
|
66
|
+
run: uv sync --frozen --all-extras --dev
|
|
67
|
+
|
|
68
|
+
- name: Run pytest
|
|
69
|
+
run: uv run --frozen pytest
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
#.idea/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
+
overall community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or
|
|
31
|
+
advances of any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email
|
|
35
|
+
address, without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official e-mail address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
mcp-coc@anthropic.com.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
|
86
|
+
of actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
|
93
|
+
permanent ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
+
the community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.0, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
122
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
|
|
126
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
+
https://www.contributor-covenant.org/translations.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to the MCP Python SDK! This document provides guidelines and instructions for contributing.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
1. Make sure you have Python 3.10+ installed
|
|
8
|
+
2. Install [uv](https://docs.astral.sh/uv/getting-started/installation/)
|
|
9
|
+
3. Fork the repository
|
|
10
|
+
4. Clone your fork: `git clone https://github.com/YOUR-USERNAME/python-sdk.git`
|
|
11
|
+
5. Install dependencies:
|
|
12
|
+
```bash
|
|
13
|
+
uv sync --frozen --all-extras --dev
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Development Workflow
|
|
17
|
+
|
|
18
|
+
1. Create a new branch for your changes
|
|
19
|
+
2. Make your changes
|
|
20
|
+
3. Ensure tests pass:
|
|
21
|
+
```bash
|
|
22
|
+
uv run pytest
|
|
23
|
+
```
|
|
24
|
+
4. Run type checking:
|
|
25
|
+
```bash
|
|
26
|
+
uv run pyright
|
|
27
|
+
```
|
|
28
|
+
5. Run linting:
|
|
29
|
+
```bash
|
|
30
|
+
uv run ruff check .
|
|
31
|
+
uv run ruff format .
|
|
32
|
+
```
|
|
33
|
+
6. Submit a pull request
|
|
34
|
+
|
|
35
|
+
## Code Style
|
|
36
|
+
|
|
37
|
+
- We use `ruff` for linting and formatting
|
|
38
|
+
- Follow PEP 8 style guidelines
|
|
39
|
+
- Add type hints to all functions
|
|
40
|
+
- Include docstrings for public APIs
|
|
41
|
+
|
|
42
|
+
## Pull Request Process
|
|
43
|
+
|
|
44
|
+
1. Update documentation as needed
|
|
45
|
+
2. Add tests for new functionality
|
|
46
|
+
3. Ensure CI passes
|
|
47
|
+
4. Maintainers will review your code
|
|
48
|
+
5. Address review feedback
|
|
49
|
+
|
|
50
|
+
## Code of Conduct
|
|
51
|
+
|
|
52
|
+
Please note that this project is released with a [Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
By contributing, you agree that your contributions will be licensed under the MIT License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Anthropic, PBC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|