Skip to content

Add three-layer test structure and embedded skill resource#3

Open
mgoldsborough wants to merge 1 commit intomainfrom
add-test-layers
Open

Add three-layer test structure and embedded skill resource#3
mgoldsborough wants to merge 1 commit intomainfrom
add-test-layers

Conversation

@mgoldsborough
Copy link
Contributor

Summary

  • Add unit tests using FastMCP Client pattern (test_server.py, test_api_client.py, shared conftest.py)
  • Add integration test scaffolding (tests-integration/) with env gating, tier-skip helpers, and LLM smoke test stubs
  • Add embedded SKILL.md skill resource with tool table and workflows, wired via skill://example/usage
  • Add test-integration and test-llm Makefile targets
  • Fix stale type: ignore comment and import sorting

Test plan

  • make check passes (25 unit tests, format, lint, typecheck)
  • Verify make test-integration works with a real API key
  • Verify make test-llm works with ANTHROPIC_API_KEY

@mgoldsborough mgoldsborough requested a review from a team March 5, 2026 02:39
- Add unit tests: test_server.py (FastMCP Client pattern), test_api_client.py,
  shared conftest.py with mcp_server and mock_client fixtures
- Add integration test scaffolding (tests-integration/) with env gating,
  tier-skip helpers, and LLM smoke test stubs
- Add SKILL.md embedded skill resource with tool table and workflows
- Wire skill resource in server.py (instructions + skill:// URI)
- Add test-integration and test-llm Makefile targets
- Fix type ignore comment and import sorting
Copy link
Contributor

@JoeCardoso13 JoeCardoso13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a bump in the build-mcpb pipeline. Specifically Phase 4, where:

"SKILL.md missing caused all server tests to fail. The server reads SKILL.md at module import time (files("mcp_todoist").joinpath("SKILL.md").read_text()). Since Phase 6 hadn't happened yet, the file didn't exist, and every test that imported mcp_todoist.server crashed with FileNotFoundError." The agent created the line on server.py that reads the SKILL.md based on the canonical structure found in PATTERNS.md, so now, with this PR, the template will adequate itself to the canonical structure described in the references/ of the skill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants