mcp-workers-bridge 0.5.0__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.
- mcp_workers_bridge-0.5.0/LICENSE +21 -0
- mcp_workers_bridge-0.5.0/PKG-INFO +126 -0
- mcp_workers_bridge-0.5.0/README.md +95 -0
- mcp_workers_bridge-0.5.0/pyproject.toml +53 -0
- mcp_workers_bridge-0.5.0/setup.cfg +4 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/__init__.py +3 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/__main__.py +3 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/captions.py +421 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/config.py +82 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/errors.py +37 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/server.py +356 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/social.py +505 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/workers.py +190 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/x_collections.py +698 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/youtube_cache.py +475 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge/youtube_history.py +932 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge.egg-info/PKG-INFO +126 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge.egg-info/SOURCES.txt +28 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge.egg-info/dependency_links.txt +1 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge.egg-info/entry_points.txt +2 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge.egg-info/requires.txt +9 -0
- mcp_workers_bridge-0.5.0/src/mcp_workers_bridge.egg-info/top_level.txt +1 -0
- mcp_workers_bridge-0.5.0/tests/test_cloud_config.py +84 -0
- mcp_workers_bridge-0.5.0/tests/test_config.py +32 -0
- mcp_workers_bridge-0.5.0/tests/test_server.py +172 -0
- mcp_workers_bridge-0.5.0/tests/test_social.py +213 -0
- mcp_workers_bridge-0.5.0/tests/test_workers.py +162 -0
- mcp_workers_bridge-0.5.0/tests/test_x_collections.py +304 -0
- mcp_workers_bridge-0.5.0/tests/test_youtube_cache.py +226 -0
- mcp_workers_bridge-0.5.0/tests/test_youtube_history.py +463 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yuito Fujiwara
|
|
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.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mcp-workers-bridge
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: A stdio MCP server for authenticated YouTube, X, and Reddit reads
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/yuitof/mcp-workers-bridge
|
|
7
|
+
Project-URL: Repository, https://github.com/yuitof/mcp-workers-bridge
|
|
8
|
+
Project-URL: Issues, https://github.com/yuitof/mcp-workers-bridge/issues
|
|
9
|
+
Project-URL: Documentation, https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/manual.md
|
|
10
|
+
Keywords: mcp,model-context-protocol,youtube,x,reddit
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: beautifulsoup4==4.14.3
|
|
23
|
+
Requires-Dist: boto3==1.42.0
|
|
24
|
+
Requires-Dist: defusedxml==0.7.1
|
|
25
|
+
Requires-Dist: mcp==2.3.0
|
|
26
|
+
Requires-Dist: requests==2.34.2
|
|
27
|
+
Requires-Dist: xclienttransaction==1.0.3
|
|
28
|
+
Provides-Extra: test
|
|
29
|
+
Requires-Dist: pytest==9.2.0; extra == "test"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# Workers Bridge MCP
|
|
33
|
+
|
|
34
|
+
[](https://pypi.org/project/mcp-workers-bridge/)
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
Workers Bridge MCP is a stdio MCP server for authenticated YouTube, X, and
|
|
39
|
+
Reddit reads. It can relay through an Access-protected Cloudflare Worker, or
|
|
40
|
+
connect directly to destination hosts when no Worker is configured.
|
|
41
|
+
|
|
42
|
+
- `src/mcp_workers_bridge/`: the Python MCP server.
|
|
43
|
+
- `infra/service-bridge-workers/`: the Cloudflare Worker, tests, Terraform, and
|
|
44
|
+
deployment runbook.
|
|
45
|
+
|
|
46
|
+
The server supports modern `2026-07-28` MCP requests and legacy `2025-11-25`
|
|
47
|
+
initialization-based clients. It does not contain Access secrets, AWS
|
|
48
|
+
credentials, cookies, transcripts, or cache data.
|
|
49
|
+
|
|
50
|
+
## Install
|
|
51
|
+
|
|
52
|
+
Workers Bridge MCP requires Python 3.12 or newer. `uv` provides the simplest
|
|
53
|
+
installation-free launcher:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
uvx mcp-workers-bridge
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or install the command into a Python environment:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
python -m pip install mcp-workers-bridge
|
|
63
|
+
mcp-workers-bridge
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Running the command directly starts the stdio server and waits for an MCP
|
|
67
|
+
client. Register it with your client instead:
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"mcpServers": {
|
|
72
|
+
"workers-bridge": {
|
|
73
|
+
"command": "uvx",
|
|
74
|
+
"args": ["mcp-workers-bridge"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Provide collector sessions through the client's protected environment:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
export YOUTUBE_STORAGE_STATE_JSON='...'
|
|
84
|
+
export X_STORAGE_STATE_JSON='...'
|
|
85
|
+
export REDDIT_STORAGE_STATE_JSON='...'
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
To relay through the Worker, also set `SERVICE_BRIDGE_WORKER_URL`,
|
|
89
|
+
`CF_ACCESS_CLIENT_ID`, and `CF_ACCESS_CLIENT_SECRET`. With those unset, the
|
|
90
|
+
server uses direct mode.
|
|
91
|
+
|
|
92
|
+
Verify the server with `bridge_configuration`, then call the tool you need.
|
|
93
|
+
|
|
94
|
+
## From source
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
git clone https://github.com/yuitof/mcp-workers-bridge.git
|
|
98
|
+
cd mcp-workers-bridge
|
|
99
|
+
uv sync --system-certs --extra test
|
|
100
|
+
npm --prefix infra/service-bridge-workers ci
|
|
101
|
+
make check
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Documentation
|
|
105
|
+
|
|
106
|
+
- [docs/manual.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/manual.md): configuration, the 12 tools, cache,
|
|
107
|
+
acceptance checks, client registration, and security boundaries.
|
|
108
|
+
- [docs/codex-cloud.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/codex-cloud.md): Codex Cloud setup, secrets, OIDC,
|
|
109
|
+
S3 permissions, publishing, and verification.
|
|
110
|
+
- [infra/service-bridge-workers/README.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/README.md):
|
|
111
|
+
Worker deployment, Terraform, Access, and acceptance runbook.
|
|
112
|
+
- [infra/service-bridge-workers/API.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/API.md):
|
|
113
|
+
HTTPS contract.
|
|
114
|
+
- [infra/service-bridge-workers/CLIENT-INTEGRATION.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/CLIENT-INTEGRATION.md):
|
|
115
|
+
relay integration notes.
|
|
116
|
+
- [infra/service-bridge-workers/FEASIBILITY.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/FEASIBILITY.md):
|
|
117
|
+
design evidence.
|
|
118
|
+
- [docs/releasing.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/releasing.md):
|
|
119
|
+
PyPI Trusted Publishing setup and the release checklist.
|
|
120
|
+
|
|
121
|
+
`make check` runs both test suites and the Worker build; Terraform 1.7+ is
|
|
122
|
+
only needed for `make terraform-check` and deployment.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
Workers Bridge MCP is available under the [MIT License](https://github.com/yuitof/mcp-workers-bridge/blob/main/LICENSE).
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Workers Bridge MCP
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/mcp-workers-bridge/)
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Workers Bridge MCP is a stdio MCP server for authenticated YouTube, X, and
|
|
8
|
+
Reddit reads. It can relay through an Access-protected Cloudflare Worker, or
|
|
9
|
+
connect directly to destination hosts when no Worker is configured.
|
|
10
|
+
|
|
11
|
+
- `src/mcp_workers_bridge/`: the Python MCP server.
|
|
12
|
+
- `infra/service-bridge-workers/`: the Cloudflare Worker, tests, Terraform, and
|
|
13
|
+
deployment runbook.
|
|
14
|
+
|
|
15
|
+
The server supports modern `2026-07-28` MCP requests and legacy `2025-11-25`
|
|
16
|
+
initialization-based clients. It does not contain Access secrets, AWS
|
|
17
|
+
credentials, cookies, transcripts, or cache data.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
Workers Bridge MCP requires Python 3.12 or newer. `uv` provides the simplest
|
|
22
|
+
installation-free launcher:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
uvx mcp-workers-bridge
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or install the command into a Python environment:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
python -m pip install mcp-workers-bridge
|
|
32
|
+
mcp-workers-bridge
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Running the command directly starts the stdio server and waits for an MCP
|
|
36
|
+
client. Register it with your client instead:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"mcpServers": {
|
|
41
|
+
"workers-bridge": {
|
|
42
|
+
"command": "uvx",
|
|
43
|
+
"args": ["mcp-workers-bridge"]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Provide collector sessions through the client's protected environment:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
export YOUTUBE_STORAGE_STATE_JSON='...'
|
|
53
|
+
export X_STORAGE_STATE_JSON='...'
|
|
54
|
+
export REDDIT_STORAGE_STATE_JSON='...'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
To relay through the Worker, also set `SERVICE_BRIDGE_WORKER_URL`,
|
|
58
|
+
`CF_ACCESS_CLIENT_ID`, and `CF_ACCESS_CLIENT_SECRET`. With those unset, the
|
|
59
|
+
server uses direct mode.
|
|
60
|
+
|
|
61
|
+
Verify the server with `bridge_configuration`, then call the tool you need.
|
|
62
|
+
|
|
63
|
+
## From source
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
git clone https://github.com/yuitof/mcp-workers-bridge.git
|
|
67
|
+
cd mcp-workers-bridge
|
|
68
|
+
uv sync --system-certs --extra test
|
|
69
|
+
npm --prefix infra/service-bridge-workers ci
|
|
70
|
+
make check
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Documentation
|
|
74
|
+
|
|
75
|
+
- [docs/manual.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/manual.md): configuration, the 12 tools, cache,
|
|
76
|
+
acceptance checks, client registration, and security boundaries.
|
|
77
|
+
- [docs/codex-cloud.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/codex-cloud.md): Codex Cloud setup, secrets, OIDC,
|
|
78
|
+
S3 permissions, publishing, and verification.
|
|
79
|
+
- [infra/service-bridge-workers/README.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/README.md):
|
|
80
|
+
Worker deployment, Terraform, Access, and acceptance runbook.
|
|
81
|
+
- [infra/service-bridge-workers/API.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/API.md):
|
|
82
|
+
HTTPS contract.
|
|
83
|
+
- [infra/service-bridge-workers/CLIENT-INTEGRATION.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/CLIENT-INTEGRATION.md):
|
|
84
|
+
relay integration notes.
|
|
85
|
+
- [infra/service-bridge-workers/FEASIBILITY.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/infra/service-bridge-workers/FEASIBILITY.md):
|
|
86
|
+
design evidence.
|
|
87
|
+
- [docs/releasing.md](https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/releasing.md):
|
|
88
|
+
PyPI Trusted Publishing setup and the release checklist.
|
|
89
|
+
|
|
90
|
+
`make check` runs both test suites and the Worker build; Terraform 1.7+ is
|
|
91
|
+
only needed for `make terraform-check` and deployment.
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
Workers Bridge MCP is available under the [MIT License](https://github.com/yuitof/mcp-workers-bridge/blob/main/LICENSE).
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mcp-workers-bridge"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "A stdio MCP server for authenticated YouTube, X, and Reddit reads"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.12"
|
|
13
|
+
keywords = ["mcp", "model-context-protocol", "youtube", "x", "reddit"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Programming Language :: Python :: 3.14",
|
|
22
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
23
|
+
]
|
|
24
|
+
dependencies = [
|
|
25
|
+
"beautifulsoup4==4.14.3",
|
|
26
|
+
"boto3==1.42.0",
|
|
27
|
+
"defusedxml==0.7.1",
|
|
28
|
+
"mcp==2.3.0",
|
|
29
|
+
"requests==2.34.2",
|
|
30
|
+
"xclienttransaction==1.0.3",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/yuitof/mcp-workers-bridge"
|
|
35
|
+
Repository = "https://github.com/yuitof/mcp-workers-bridge"
|
|
36
|
+
Issues = "https://github.com/yuitof/mcp-workers-bridge/issues"
|
|
37
|
+
Documentation = "https://github.com/yuitof/mcp-workers-bridge/blob/main/docs/manual.md"
|
|
38
|
+
|
|
39
|
+
[project.optional-dependencies]
|
|
40
|
+
test = ["pytest==9.2.0"]
|
|
41
|
+
|
|
42
|
+
[project.scripts]
|
|
43
|
+
mcp-workers-bridge = "mcp_workers_bridge.server:main"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.dynamic]
|
|
46
|
+
version = {attr = "mcp_workers_bridge.__version__"}
|
|
47
|
+
|
|
48
|
+
[tool.setuptools.packages.find]
|
|
49
|
+
where = ["src"]
|
|
50
|
+
|
|
51
|
+
[tool.pytest.ini_options]
|
|
52
|
+
pythonpath = ["src"]
|
|
53
|
+
testpaths = ["tests"]
|