Skip to content

Conversation

@omChauhanDev
Copy link
Contributor

@omChauhanDev omChauhanDev commented Sep 30, 2025

Description

Fixes #63
I’ve been using the ElevenLabs mcp server in some of my personal agentic projects, and this feature felt relevant for my use case.

There was already an open PR adding support for the ELEVENLABS_MCP_OUTPUT_MODE env var, but it hadn’t been updated in a while. I picked it up to:
• Address the review comments left by @PaulAsjes
• Resolve merge conflicts with the latest main
• Keep the original idea intact while ensuring it aligns with the project’s current codebase

Feature Recap

The new optional env var ELEVENLABS_MCP_OUTPUT_MODE supports three modes:
• files → behaves as before (default)
• resources → encodes results as resource content items
• both → saves data to the filesystem and makes it available as a resource

This flexibility is particularly useful for agentic platforms where filesystem access may be restricted or not ideal.

Credit

The original implementation was done in [PR #64 ]. Huge thanks to them for the groundwork, this PR is mainly to bring it up to date and address feedback so it can land.

@omChauhanDev omChauhanDev changed the title Issue #63: Add an option to return the MCP results as resource items Added an option to return the MCP results as resource items Sep 30, 2025
@omChauhanDev omChauhanDev force-pushed the features/mcp_output_as_resource branch from 65430c3 to 4884f80 Compare September 30, 2025 11:44
Copy link
Collaborator

@PaulAsjes PaulAsjes left a comment

Choose a reason for hiding this comment

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

Thanks!

@PaulAsjes PaulAsjes merged commit fb501b4 into elevenlabs:main Sep 30, 2025
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.

Enhancement: optionally return generated output in MCP response

2 participants