We want to add a new method to our HaystackServiceResource.
get_component_input_output(component_name) should return the schema for the component input and output.
Here is how to fetch it from the API:
curl --request GET
--url 'https://api.cloud.deepset.ai/api/v1/haystack/components/input-output?domain=deepset-cloud&names=Agent'
--header 'accept: application/json'
This will fetch component io for "Agent".
The return type is dict str, any
Steps
- add the new method in src/deepset_mcp/api/haystack_service/resource.py
- add unit tests for the method in test/unit/tools/test_haystack_service.py
- add integration tests in test/integration/test_integration_haystack_service_resource.py
We want to add a new method to our HaystackServiceResource.
get_component_input_output(component_name) should return the schema for the component input and output.
Here is how to fetch it from the API:
curl --request GET
--url 'https://api.cloud.deepset.ai/api/v1/haystack/components/input-output?domain=deepset-cloud&names=Agent'
--header 'accept: application/json'
This will fetch component io for "Agent".
The return type is dict str, any
Steps