Skip to content

fix(mcp): include resource templates alongside resources - #280

Merged
Eigenwise merged 1 commit into
Eigenwise:mainfrom
Excelius-Wang:fix/discover-mcp-resource-templates
Aug 24, 2026
Merged

fix(mcp): include resource templates alongside resources#280
Eigenwise merged 1 commit into
Eigenwise:mainfrom
Excelius-Wang:fix/discover-mcp-resource-templates

Conversation

@Excelius-Wang

Copy link
Copy Markdown
Contributor

Summary

  • discover MCP resource templates even when a server also returns static resources
  • preserve static-resource discovery when a server does not implement resources/templates/list
  • add regression coverage for mixed discovery and MCP error handling

Why

resources/list and resources/templates/list are separate discovery endpoints. The current fallback-only call skips all templates whenever resources/list is non-empty.

The compatibility path ignores only JSON-RPC -32601 Method not found; every other MCP error still propagates.

Testing

  • uv run black --check atomic-agents atomic-assembler atomic-examples atomic-forge
  • uv run flake8 --extend-exclude=.venv atomic-agents atomic-assembler atomic-examples atomic-forge
  • uv run pytest --cov=atomic_agents atomic-agents — 339 passed, 3 skipped

@Eigenwise
Eigenwise merged commit e0ac466 into Eigenwise:main Aug 24, 2026
1 check passed
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