Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions development/notes/plan_forkable_filesystem_rl_scenario.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ This strategy is preferred over `docker commit` for `mcp/filesystem` because the

### 4.1. Prepare Host Template Directory

* Create a directory structure on the host, e.g.:
* Create a directory structure on the host at a path of your choice, e.g.:
```
./mcp_agent_test_templates/fs_move_scenario/
/path/to/fs_move_scenario/
├── source_dir/
│ └── file_to_move.txt (contains "Hello from source")
└── target_dir/ (empty)
Expand All @@ -76,7 +76,7 @@ This strategy is preferred over `docker commit` for `mcp/filesystem` because the
mcp_transport: "stdio"
docker_image: "mcp/filesystem"
container_command: ["/data"] # Served directory inside container
template_data_path_host: "./mcp_agent_test_templates/fs_move_scenario/" # Path to host template
template_data_path_host: "/path/to/fs_move_scenario/" # Path to host template
# container_volumes can be omitted or will be overridden if template_data_path_host is used for filesystem type
```

Expand Down
24 changes: 2 additions & 22 deletions examples/mcp_agent_filesystem_rl/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Test script for MCP Agent Filesystem RL Example

This script verifies that the example setup is working correctly by:
1. Testing the template directory structure
1. Testing the dataset format
2. Testing the reward function with mock data
3. Testing MCP server connectivity (if running)
"""
Expand All @@ -17,32 +17,12 @@
# Add the eval-protocol package to the path
sys.path.insert(0, str(Path(__file__).parent.parent.parent))

from eval_protocol.models import ( # Ensure EvaluateResult is imported
from eval_protocol.models import (
EvaluateResult,
Message,
)


def test_template_structure():
"""Test that the template directory has the correct structure."""
print("Testing template directory structure...")

# Construct path relative to this test file, then go to project root and find the template
base_path = Path(__file__).parent.parent.parent
template_path = base_path / "mcp_agent_test_templates" / "fs_rl_example_scenario"

# Check directories exist
assert template_path.exists(), f"Template directory not found: {template_path}"
assert (template_path / "source_files").exists(), "source_files directory missing"
assert (template_path / "archive").exists(), "archive directory missing"

# Check important_document.txt exists
important_doc = template_path / "source_files" / "important_document.txt"
assert important_doc.exists(), "important_document.txt missing from source_files"

print("✓ Template directory structure is correct")


def test_dataset_format():
"""Test that the dataset file is correctly formatted."""
print("Testing dataset format...")
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading