Skip to content

Conversation

@danilo-rasa
Copy link

@danilo-rasa danilo-rasa commented Nov 26, 2025

Summary

Add MCP resource support to enable context data provision to agents. This enhancement allows MCP servers to expose resources (configuration, documentation, metrics, etc.) that agents can read and use as context.

Test plan

  • Unit tests: Added 11 tests in tests/mcp/test_resource_server.py covering:
  • Resource listing and retrieval
  • URI format validation
  • Multiple resources with different MIME types
  • Agent integration with resource-provided context
  • Streaming and non-streaming scenarios
  • Error handling for missing resources
  • Resource cleanup

Issue number

Addresses issue #544 - the prompts implementation was done in a previous PR.

Checks

  • I've added new tests (if relevant)
  • I've added/updated the relevant documentation
  • I've run make lint and make format
  • I've made sure tests pass

@danilo-rasa danilo-rasa marked this pull request as ready for review November 26, 2025 12:11
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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.

1 participant