This repository was archived by the owner on Jan 25, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Refactor existing Agents into the Library #53
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0579132
Refactor existing Agents into the library, add tests for all agents, …
strawgate f4a7612
Ensure linting/type checking happens in the working dir
strawgate c4692e8
Also exclude root package
strawgate 549ca20
Use a less specific ESQL answer assertion
strawgate 68a5e4a
Bump versions
strawgate 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
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
2 changes: 1 addition & 1 deletion
2
fastmcp-agents-bridge/fastmcp_agents_bridge_pydantic_ai/pyproject.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,42 @@ | ||
| import json | ||
| import tempfile | ||
| from collections.abc import AsyncGenerator | ||
| from pathlib import Path | ||
| from typing import Any | ||
|
|
||
| import pytest | ||
|
|
||
| from fastmcp_agents.cli.main import app, call_tool, list_tools | ||
|
|
||
|
|
||
| @pytest.fixture | ||
| async def test_directory() -> AsyncGenerator[Path, Any]: | ||
| with tempfile.TemporaryDirectory() as temp_dir: | ||
| config_json = Path(temp_dir) / "config.json" | ||
| config_json.write_text( | ||
| json.dumps({"mcpServers": {"filesystem": {"command": "uvx", "args": ["filesystem-operations-mcp", "--root-dir", temp_dir]}}}) | ||
| ) | ||
|
|
||
| subdir = Path(temp_dir) / "subdir" | ||
| subdir.mkdir() | ||
|
|
||
| random_file = subdir / "random_file.txt" | ||
| random_file.write_text("Hello, world!") | ||
|
|
||
| yield Path(temp_dir) | ||
|
|
||
|
|
||
| @pytest.mark.asyncio | ||
| async def test_app(): | ||
| assert app | ||
|
|
||
|
|
||
| @pytest.mark.asyncio | ||
| async def test_tool_call(): | ||
| result = await call_tool(config=Path("config.json"), tool="get_structure", args='{"depth": 3}') | ||
| async def test_tool_call(test_directory: Path): | ||
| result = await call_tool(config=test_directory / "config.json", tool="get_structure", args='{"depth": 3}') | ||
|
|
||
| assert "src/fastmcp_agents/cli" in str(result.data) | ||
| assert "subdir" in str(result.data) | ||
|
|
||
|
|
||
| async def test_list_tools(): | ||
| await list_tools(config=Path("config.json")) | ||
| async def test_list_tools(test_directory: Path): | ||
| await list_tools(config=test_directory / "config.json") | ||
2 changes: 0 additions & 2 deletions
2
...cp-agents-library/agents/fastmcp-agents-library-agent-documentation-maintainer/.gitignore
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...-library/agents/fastmcp-agents-library-agent-documentation-maintainer/.vscode/launch.json
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ibrary/agents/fastmcp-agents-library-agent-documentation-maintainer/.vscode/settings.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...-library/agents/fastmcp-agents-library-agent-documentation-maintainer/README.md
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...agents-library-agent-documentation-maintainer/playground/output/gather_documentation.json
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
...gents-library/agents/fastmcp-agents-library-agent-documentation-maintainer/pyproject.toml
This file was deleted.
Oops, something went wrong.
Empty file.
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.