Repository navigation
Alto 5540 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Alto 5540 #10
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f739875
Add an MCP server with a get_result tool
7be8947
Add MCP tools to upload audio and video for analysis
026972c
Add an MCP tool to list processes with failure reasons
bdf9e58
Add AGENTS.md and CLAUDE.md for coding agents
4af246f
Document the MCP server in the README
5ef9697
Fix where AGENTS.md says wait_for_result lives
15fde74
Say in AGENTS.md that MCP tool changes need doc updates too
bda7869
Show only the first line of a failed job's reason in list_processes
772d84c
Say that end_date is not included when listing processes
7f4cf1c
Merge remote-tracking branch 'origin/main' into ALTO-5540
1b27f08
Update uv.lock for the mcp extra and version 0.7.0
becfbbd
Use the uv commands from CONTRIBUTING.md in AGENTS.md
0ee24ce
Show only the first line of a failed job's reason in get_result
77cab43
Cap wait_seconds at 50 so tool calls end before client timeouts
a8da113
Label the list_processes hint "Next page"
009bdf9
Merge remote-tracking branch 'origin/main' into ALTO-5540
1898e02
Fix mypy errors in the MCP server
bba601c
Add mypy and main's new CI checks to AGENTS.md
9b0ccec
Address README review: uvx --python ">=3.10", Codex setup, manual run…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # AGENTS.md | ||
|
|
||
| Python SDK for the [Behavioral Signals API](https://behavioralsignals.readme.io/): voice behavior | ||
| analysis and audio/video deepfake detection, plus an optional MCP server. Setup, code style and | ||
| pull request steps are in [CONTRIBUTING.md](CONTRIBUTING.md). | ||
|
|
||
| ## Map | ||
|
|
||
| - `src/behavioralsignals/client.py`: `Client`, which holds the `behavioral` and `deepfakes` clients. | ||
| - `src/behavioralsignals/behavioral.py`, `deepfakes.py`: the two APIs. `base.py`: HTTP requests, | ||
| errors, the wait loop behind `wait_for_result`, and the gRPC channel. | ||
| - `src/behavioralsignals/models.py`: pydantic models of requests and responses. | ||
| `configuration.py`: API URLs and timeouts. | ||
| - `src/behavioralsignals/mcp_server.py`: the MCP server (`behavioralsignals-mcp`). | ||
| - `src/behavioralsignals/generated/`: gRPC code generated from `protos/api.proto`. | ||
| - `examples/`: batch and streaming scripts. `tests/`: pytest tests. | ||
|
|
||
| ## Commands | ||
|
|
||
| ```bash | ||
| uv sync -p 3.10 --extra dev # see CONTRIBUTING.md | ||
| uv run pytest | ||
| uv run ruff check | ||
| uv run ruff format | ||
| uv run mypy src | ||
| ``` | ||
|
|
||
| CI runs `ruff check`, `ruff format --check`, `mypy src` and `pytest` on Python 3.10 to 3.13. It | ||
| also runs the tests with the lowest versions allowed in `pyproject.toml`, and needs 90% coverage. | ||
|
|
||
| ## Rules | ||
|
|
||
| - Support Python 3.10: no newer syntax or modules. | ||
| - If you change `pyproject.toml`, run `uv lock` and commit `uv.lock`; CI fails otherwise. | ||
| - `Behavioral` and `Deepfakes` repeat the audio methods; change both. | ||
| - Don't edit `generated/` by hand; regenerate it (see CONTRIBUTING.md). | ||
| - Tests never call the API and need no credentials. Fake HTTP as `tests/test_client.py` does. | ||
| - `mcp` is an optional extra: never import `mcp_server` from `__init__.py`. | ||
| - `mcp_server.py` must never print to stdout; stdout carries the MCP protocol. | ||
| - When a public method or MCP tool changes, update the README method table, `examples/`, and | ||
| the MCP tools and README MCP section if they use it. | ||
| - Never commit credentials. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @AGENTS.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.