Open
Conversation
Add a second credential path for the MCP server. When AGENTA_SIGNER
is set, load config from ~/.agenta/signers/{name}.json instead of
requiring AGENTA_API_KEY and AGENTA_API_SECRET as direct env vars.
This keeps the signer share out of the MCP client config file,
improving security for local development with Claude Desktop, Cursor,
and other MCP clients.
AGENTA_SIGNER takes precedence. Falls back to direct env vars for
CI/CD, Docker, and remote agent deployments.
Closes #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTA_SIGNERenv var support to MCP server'sSignerManager~/.agenta/signers/{name}.json(same as CLI)AGENTA_API_KEY+AGENTA_API_SECRETfor CI/Docker/remoteWhy
The MCP server currently requires the signer share as a plaintext env var in the MCP client config. This puts MPC key material in a JSON file that's readable on disk and can end up in AI conversation logs — undermining the security model of threshold signing.
With
AGENTA_SIGNER, the config file contains only a name reference. The share is loaded from~/.agenta/at runtime (encrypted, or in macOS keychain with Touch ID).MCP config (before → after)
Before (only option):
{ "env": { "AGENTA_API_KEY": "gw_live_...", "AGENTA_API_SECRET": "base64-encoded-share..." } }After (recommended for local dev):
{ "env": { "AGENTA_SIGNER": "my-agent" } }Impact
packages/wallet/src/lib/signer-manager.tsAGENTA_API_KEY+AGENTA_API_SECRETpath still works unchangedAGENTA_SIGNERtakes precedence when setCloses #3
Test plan
AGENTA_SIGNER=<name>in Claude Desktop config, verify tools workAGENTA_API_KEY+AGENTA_API_SECRETstill works