foo-mcp 0.1.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.
- foo_mcp-0.1.0/.claude-plugin/marketplace.json +15 -0
- foo_mcp-0.1.0/.claude-plugin/plugin.json +33 -0
- foo_mcp-0.1.0/.env.example +27 -0
- foo_mcp-0.1.0/.github/workflows/ci.yml +45 -0
- foo_mcp-0.1.0/.github/workflows/publish.yml +71 -0
- foo_mcp-0.1.0/.gitignore +13 -0
- foo_mcp-0.1.0/.gitleaks.toml +18 -0
- foo_mcp-0.1.0/.pre-commit-config.yaml +9 -0
- foo_mcp-0.1.0/LICENSE +21 -0
- foo_mcp-0.1.0/PKG-INFO +526 -0
- foo_mcp-0.1.0/README.md +487 -0
- foo_mcp-0.1.0/config/foo.agents.example.json +84 -0
- foo_mcp-0.1.0/pyproject.toml +84 -0
- foo_mcp-0.1.0/src/foo_mcp/__init__.py +12 -0
- foo_mcp-0.1.0/src/foo_mcp/_data/__init__.py +0 -0
- foo_mcp-0.1.0/src/foo_mcp/_data/foo.agents.example.json +65 -0
- foo_mcp-0.1.0/src/foo_mcp/config.py +290 -0
- foo_mcp-0.1.0/src/foo_mcp/consensus_demo.py +291 -0
- foo_mcp-0.1.0/src/foo_mcp/init_cli.py +606 -0
- foo_mcp-0.1.0/src/foo_mcp/orchestrator.py +398 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/__init__.py +29 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/anthropic.py +50 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/base.py +108 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/google.py +51 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/huggingface.py +92 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/mlx.py +137 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/mock.py +32 -0
- foo_mcp-0.1.0/src/foo_mcp/providers/openai.py +68 -0
- foo_mcp-0.1.0/src/foo_mcp/schemas.py +45 -0
- foo_mcp-0.1.0/src/foo_mcp/server.py +274 -0
- foo_mcp-0.1.0/src/foo_mcp/smoke.py +84 -0
- foo_mcp-0.1.0/src/foo_mcp/tracing.py +249 -0
- foo_mcp-0.1.0/tests/conftest.py +11 -0
- foo_mcp-0.1.0/tests/test_config.py +118 -0
- foo_mcp-0.1.0/tests/test_consensus_demo.py +131 -0
- foo_mcp-0.1.0/tests/test_init_cli.py +293 -0
- foo_mcp-0.1.0/tests/test_mlx_live.py +36 -0
- foo_mcp-0.1.0/tests/test_orchestrator.py +72 -0
- foo_mcp-0.1.0/tests/test_orchestrator_live.py +206 -0
- foo_mcp-0.1.0/tests/test_providers.py +137 -0
- foo_mcp-0.1.0/tests/test_providers_live.py +120 -0
- foo_mcp-0.1.0/tests/test_server_import.py +12 -0
- foo_mcp-0.1.0/tests/test_tracing.py +51 -0
- foo_mcp-0.1.0/tests/test_validation.py +227 -0
- foo_mcp-0.1.0/uv.lock +2014 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "foo-mcp",
|
|
3
|
+
"description": "Single-plugin marketplace for the FOO MCP server — multiagent orchestration with hash-chained tracing.",
|
|
4
|
+
"owner": {
|
|
5
|
+
"name": "David Pletta",
|
|
6
|
+
"url": "https://github.com/dpletta"
|
|
7
|
+
},
|
|
8
|
+
"plugins": [
|
|
9
|
+
{
|
|
10
|
+
"name": "foo-mcp",
|
|
11
|
+
"source": "./",
|
|
12
|
+
"description": "Transparent multiagent orchestration as a Model Context Protocol server."
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "foo-mcp",
|
|
3
|
+
"displayName": "FOO MCP Server",
|
|
4
|
+
"description": "Transparent multiagent orchestration with hash-chained tracing \u2014 peer critique, harmonizer judgment, and target-agent reflection across OpenAI, Anthropic, Gemini, Hugging Face, and Apple Silicon MLX providers.",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "David Pletta",
|
|
8
|
+
"url": "https://github.com/dpletta"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/dpletta/foo-mcp",
|
|
11
|
+
"repository": "https://github.com/dpletta/foo-mcp",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"foo-mcp": {
|
|
15
|
+
"type": "stdio",
|
|
16
|
+
"command": "uvx",
|
|
17
|
+
"args": [
|
|
18
|
+
"--from",
|
|
19
|
+
"${CLAUDE_PLUGIN_ROOT}",
|
|
20
|
+
"foo-mcp"
|
|
21
|
+
],
|
|
22
|
+
"env": {
|
|
23
|
+
"OPENAI_API_KEY": "${OPENAI_API_KEY}",
|
|
24
|
+
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
|
|
25
|
+
"GEMINI_API_KEY": "${GEMINI_API_KEY}",
|
|
26
|
+
"GOOGLE_API_KEY": "${GOOGLE_API_KEY}",
|
|
27
|
+
"HF_TOKEN": "${HF_TOKEN}",
|
|
28
|
+
"HUGGINGFACE_API_KEY": "${HUGGINGFACE_API_KEY}",
|
|
29
|
+
"FOO_MCP_CONFIG": "${CLAUDE_PLUGIN_ROOT}/config/foo.agents.example.json"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Copy to .env for local development. Do not commit real keys.
|
|
2
|
+
#
|
|
3
|
+
# IMPORTANT: do NOT wrap values in quotes. Use KEY=sk-... not KEY="sk-...".
|
|
4
|
+
# Surrounding quotes are passed through to provider SDKs and cause silent 401s.
|
|
5
|
+
# foo-mcp strips matched wrapping quotes defensively, but other tooling may not.
|
|
6
|
+
# Optional: override the bundled example with your own agents config.
|
|
7
|
+
# Default is the example shipped inside the installed package.
|
|
8
|
+
# FOO_MCP_CONFIG=/absolute/path/to/my-agents.json
|
|
9
|
+
FOO_MCP_RUNS_DIR=runs
|
|
10
|
+
FOO_MCP_TRACE_INCLUDE_RAW_CONTENT=true
|
|
11
|
+
FOO_MCP_HOST=127.0.0.1
|
|
12
|
+
FOO_MCP_PORT=8000
|
|
13
|
+
|
|
14
|
+
# Provider keys are only required when agents using that provider are invoked.
|
|
15
|
+
OPENAI_API_KEY=
|
|
16
|
+
ANTHROPIC_API_KEY=
|
|
17
|
+
GEMINI_API_KEY=
|
|
18
|
+
GOOGLE_API_KEY=
|
|
19
|
+
|
|
20
|
+
# Hugging Face hosted inference. HF_TOKEN is the conventional name used by
|
|
21
|
+
# Hugging Face tooling; HUGGINGFACE_API_KEY is also accepted by foo-mcp.
|
|
22
|
+
HF_TOKEN=
|
|
23
|
+
HUGGINGFACE_API_KEY=
|
|
24
|
+
HUGGINGFACE_HUB_TOKEN=
|
|
25
|
+
|
|
26
|
+
# Optional: improves Hugging Face model download throughput on high-memory Macs.
|
|
27
|
+
HF_XET_HIGH_PERFORMANCE=0
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: test (py${{ matrix.python-version }})
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Install uv
|
|
25
|
+
uses: astral-sh/setup-uv@v6
|
|
26
|
+
with:
|
|
27
|
+
enable-cache: true
|
|
28
|
+
|
|
29
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
30
|
+
run: uv python install ${{ matrix.python-version }}
|
|
31
|
+
|
|
32
|
+
- name: Install project + dev extras
|
|
33
|
+
run: uv sync --extra dev
|
|
34
|
+
|
|
35
|
+
- name: Lint (ruff)
|
|
36
|
+
run: uv run ruff check .
|
|
37
|
+
|
|
38
|
+
- name: Format check (ruff)
|
|
39
|
+
run: uv run ruff format --check .
|
|
40
|
+
|
|
41
|
+
- name: Type check (mypy)
|
|
42
|
+
run: uv run mypy src
|
|
43
|
+
|
|
44
|
+
- name: Unit tests (no live)
|
|
45
|
+
run: uv run pytest -q
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
release:
|
|
8
|
+
types: [published]
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
name: Build sdist + wheel
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Install uv
|
|
23
|
+
uses: astral-sh/setup-uv@v6
|
|
24
|
+
with:
|
|
25
|
+
enable-cache: true
|
|
26
|
+
|
|
27
|
+
- name: Set up Python
|
|
28
|
+
run: uv python install 3.12
|
|
29
|
+
|
|
30
|
+
- name: Install project + dev extras
|
|
31
|
+
run: uv sync --extra dev
|
|
32
|
+
|
|
33
|
+
- name: Sanity checks
|
|
34
|
+
run: |
|
|
35
|
+
uv run ruff check .
|
|
36
|
+
uv run ruff format --check .
|
|
37
|
+
uv run mypy src
|
|
38
|
+
uv run pytest -q
|
|
39
|
+
|
|
40
|
+
- name: Build distributions
|
|
41
|
+
run: uv build
|
|
42
|
+
|
|
43
|
+
- name: Verify distribution metadata
|
|
44
|
+
run: |
|
|
45
|
+
uv run --with twine -- twine check dist/*
|
|
46
|
+
|
|
47
|
+
- name: Upload artifacts
|
|
48
|
+
uses: actions/upload-artifact@v4
|
|
49
|
+
with:
|
|
50
|
+
name: distributions
|
|
51
|
+
path: dist/
|
|
52
|
+
retention-days: 14
|
|
53
|
+
|
|
54
|
+
publish:
|
|
55
|
+
name: Publish to PyPI (trusted publisher)
|
|
56
|
+
needs: build
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
environment:
|
|
59
|
+
name: pypi
|
|
60
|
+
url: https://pypi.org/p/foo-mcp
|
|
61
|
+
permissions:
|
|
62
|
+
id-token: write
|
|
63
|
+
steps:
|
|
64
|
+
- name: Download artifacts
|
|
65
|
+
uses: actions/download-artifact@v4
|
|
66
|
+
with:
|
|
67
|
+
name: distributions
|
|
68
|
+
path: dist/
|
|
69
|
+
|
|
70
|
+
- name: Publish to PyPI
|
|
71
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
foo_mcp-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Extends the bundled gitleaks default rules — see
|
|
2
|
+
# https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
|
|
3
|
+
[extend]
|
|
4
|
+
useDefault = true
|
|
5
|
+
|
|
6
|
+
[allowlist]
|
|
7
|
+
description = "Allowlist test stubs and the public env template"
|
|
8
|
+
paths = [
|
|
9
|
+
'''\.env\.example$''',
|
|
10
|
+
'''tests/.*\.py$''',
|
|
11
|
+
]
|
|
12
|
+
# Belt-and-suspenders: explicit short stubs used in unit tests, in case
|
|
13
|
+
# any rule fires on them outside the tests/ tree (e.g. quoted in docs).
|
|
14
|
+
regexes = [
|
|
15
|
+
'''sk-test(-[a-z]+)?''',
|
|
16
|
+
'''sk-abc123''',
|
|
17
|
+
'''sk-"abc"-123''',
|
|
18
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Optional secret-scanning hook. To activate locally:
|
|
2
|
+
# pip install pre-commit # or: brew install pre-commit
|
|
3
|
+
# pre-commit install
|
|
4
|
+
# See README "Secret scanning (optional)" for details.
|
|
5
|
+
repos:
|
|
6
|
+
- repo: https://github.com/gitleaks/gitleaks
|
|
7
|
+
rev: v8.30.1
|
|
8
|
+
hooks:
|
|
9
|
+
- id: gitleaks
|
foo_mcp-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 David Pletta
|
|
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.
|