mcp-dispatch-oauth 0.0.1__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.
@@ -0,0 +1,30 @@
1
+ name: Check
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ # workflow.yml runs these checks on the tagged commit before it builds
8
+ workflow_call:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ check:
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 10
17
+ steps:
18
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
19
+ with:
20
+ persist-credentials: false
21
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
22
+ with:
23
+ version: "0.13.10"
24
+ # There is no code to test yet: the check is that the package builds
25
+ # and that the built wheel installs under its name and version.
26
+ - run: uv build
27
+ - name: The built wheel installs as mcp-dispatch-oauth
28
+ run: |
29
+ version="$(uv run --no-project python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")"
30
+ uv run --no-project --with dist/*.whl python -c "import importlib.metadata as m, sys; v = m.version('mcp-dispatch-oauth'); print(v); sys.exit(0 if v == '${version}' else 1)"
@@ -0,0 +1,64 @@
1
+ name: Publish to PyPI
2
+
3
+ # Fires on a version tag. PyPI trusts this exact file name ("workflow.yml") and
4
+ # the "pypi" environment in retospect/mcp-dispatch-oauth through trusted publishing,
5
+ # so no token is stored.
6
+ #
7
+ # Three jobs, each waiting for the one before: the checks of check.yml on the
8
+ # tagged commit, a build of the wheel and the sdist that is kept as an
9
+ # artifact, and the publish, which only downloads that artifact and is the
10
+ # only job that may ask for the PyPI token. Actions are pinned by commit; the
11
+ # comment names the release.
12
+ #
13
+ # workflow_dispatch runs the checks and the build on a branch, as a dry run;
14
+ # the publish job runs for a v* tag only.
15
+ on:
16
+ push:
17
+ tags: ["v*"]
18
+ workflow_dispatch:
19
+
20
+ permissions:
21
+ contents: read
22
+
23
+ jobs:
24
+ checks:
25
+ uses: ./.github/workflows/check.yml
26
+
27
+ build:
28
+ needs: checks
29
+ runs-on: ubuntu-latest
30
+ permissions:
31
+ contents: read
32
+ steps:
33
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
34
+ with:
35
+ persist-credentials: false
36
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
37
+ with:
38
+ version: "0.13.10"
39
+ - name: Check the tag matches the package version
40
+ if: startsWith(github.ref, 'refs/tags/v')
41
+ run: |
42
+ version="$(uv run --no-project python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")"
43
+ test "v${version}" = "${GITHUB_REF_NAME}" || { echo "tag ${GITHUB_REF_NAME} does not match version ${version}"; exit 1; }
44
+ - run: uv build
45
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
46
+ with:
47
+ name: dist
48
+ path: dist/
49
+ if-no-files-found: error
50
+ retention-days: 7
51
+
52
+ publish:
53
+ needs: build
54
+ if: startsWith(github.ref, 'refs/tags/v')
55
+ runs-on: ubuntu-latest
56
+ environment: pypi
57
+ permissions:
58
+ id-token: write
59
+ steps:
60
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
61
+ with:
62
+ name: dist
63
+ path: dist/
64
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -0,0 +1,17 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .mypy_cache/
7
+ .ruff_cache/
8
+ .pytest_cache/
9
+ .venv/
10
+ .coverage
11
+ htmlcov/
12
+
13
+ # secrets
14
+ .env
15
+ .env.*
16
+ *.pem
17
+ *.key
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## 0.0.1 (4 Dec 2026)
4
+
5
+ The name and the publishing path: a tag `v*` runs the checks, builds the wheel
6
+ and the sdist, refuses a tag that is not the version, and publishes through
7
+ PyPI's trusted publishing in the environment `pypi`. No code.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Reto Stamm
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,38 @@
1
+ Metadata-Version: 2.5
2
+ Name: mcp-dispatch-oauth
3
+ Version: 0.0.1
4
+ Summary: Sign-in for MCP servers built on mcp-dispatch: an OAuth 2.1 authorization server with self-registering clients, an allowlist of client hosts and per-user grants. A service package; the host supplies accounts and storage.
5
+ Project-URL: Repository, https://github.com/retospect/mcp-dispatch-oauth
6
+ Project-URL: Changelog, https://github.com/retospect/mcp-dispatch-oauth/blob/main/CHANGELOG.md
7
+ Author-email: Reto Stamm <reto@retostamm.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: authorization,mcp,mcp-dispatch,oauth
11
+ Classifier: Development Status :: 1 - Planning
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Python: >=3.12
16
+ Description-Content-Type: text/markdown
17
+
18
+ # mcp-dispatch-oauth
19
+
20
+ Sign-in for MCP servers built on [mcp-dispatch](https://github.com/retospect/mcp-dispatch).
21
+
22
+ **Status: 0.0.1 holds no code.** This release sets up the name and the path a
23
+ release takes (checks, build, publish from a tag).
24
+
25
+ What will live here: one OAuth 2.1 authorization server that any mcp-dispatch
26
+ host can use, drawn from the two that exist today in reticula-mcp and
27
+ precis-mcp. Assistants register themselves (no client id to type in), limited
28
+ to an allowlist of their hosts, with `localhost` callbacks for assistants that
29
+ run on your machine. The host says where it lives and supplies its accounts and
30
+ its database.
31
+
32
+ ## Versions
33
+
34
+ Plain semantic versions. 0.1.0 will be the first release with code.
35
+
36
+ ## Licence
37
+
38
+ MIT, as mcp-dispatch.
@@ -0,0 +1,21 @@
1
+ # mcp-dispatch-oauth
2
+
3
+ Sign-in for MCP servers built on [mcp-dispatch](https://github.com/retospect/mcp-dispatch).
4
+
5
+ **Status: 0.0.1 holds no code.** This release sets up the name and the path a
6
+ release takes (checks, build, publish from a tag).
7
+
8
+ What will live here: one OAuth 2.1 authorization server that any mcp-dispatch
9
+ host can use, drawn from the two that exist today in reticula-mcp and
10
+ precis-mcp. Assistants register themselves (no client id to type in), limited
11
+ to an allowlist of their hosts, with `localhost` callbacks for assistants that
12
+ run on your machine. The host says where it lives and supplies its accounts and
13
+ its database.
14
+
15
+ ## Versions
16
+
17
+ Plain semantic versions. 0.1.0 will be the first release with code.
18
+
19
+ ## Licence
20
+
21
+ MIT, as mcp-dispatch.
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["hatchling==1.33.0"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "mcp-dispatch-oauth"
7
+ version = "0.0.1"
8
+ description = "Sign-in for MCP servers built on mcp-dispatch: an OAuth 2.1 authorization server with self-registering clients, an allowlist of client hosts and per-user grants. A service package; the host supplies accounts and storage."
9
+ readme = "README.md"
10
+ requires-python = ">=3.12"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Reto Stamm", email = "reto@retostamm.com" }]
14
+ keywords = ["mcp", "mcp-dispatch", "oauth", "authorization"]
15
+ classifiers = [
16
+ "Development Status :: 1 - Planning",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ ]
21
+
22
+ [project.urls]
23
+ Repository = "https://github.com/retospect/mcp-dispatch-oauth"
24
+ Changelog = "https://github.com/retospect/mcp-dispatch-oauth/blob/main/CHANGELOG.md"
25
+
26
+ # 0.0.1 holds no code: the wheel is its metadata. The trial that follows
27
+ # replaces this with its package.
28
+ [tool.hatch.build.targets.wheel]
29
+ bypass-selection = true