Skip to content

Add optional parameters for mcp server#2

Open
QSchlegel wants to merge 2 commits intomainfrom
cursor/add-optional-parameters-for-mcp-server-2869
Open

Add optional parameters for mcp server#2
QSchlegel wants to merge 2 commits intomainfrom
cursor/add-optional-parameters-for-mcp-server-2869

Conversation

@QSchlegel
Copy link
Owner

Add optional session-scoped Blockfrost API keys to the MCP server using a context object pattern.

This PR introduces a setupSession tool allowing users to provide Blockfrost keys, which are then stored in-memory per session (identified by a UUID) and override environment variables for subsequent API calls within that session. The Blockfrost provider functions were refactored to accept a ProviderContext object for cleaner parameter passing. This ensures sensitive keys are not persisted and are scoped to the user's interaction.

cursoragent and others added 2 commits July 10, 2025 18:54
Co-authored-by: quirin.schlegel <quirin.schlegel@icloud.com>
Co-authored-by: quirin.schlegel <quirin.schlegel@icloud.com>
@vercel
Copy link

vercel bot commented Jul 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mesh-mcp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 7:02pm

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