Skip to content

mcpd config export: add volume contract support #243

@peteski22

Description

@peteski22

Is your feature request related to a problem? Please describe.

The mcpd config export command generates contract entries for environment variables and arguments, but not for volumes. There's a TODO in the codebase at internal/runtime/server.go:509:

// TODO: Export volumes similar to args and env, creating contract entries for volume paths.

This means volume paths configured via mcpd config volumes set are not exported to the environment contract file.

Describe the solution you'd like

Extend mcpd config export to generate volume contract entries similar to env vars and args:

MCPD__FILESYSTEM__WORKSPACE=/placeholder/path
MCPD__FILESYSTEM__GDRIVE=/placeholder/path

And update the portable execution context to reference these placeholders.

Additional Context

Self-Checklist

  • I have read the Contributing Guidelines.
  • I have searched the existing issues and found no duplicate.
  • I have provided a clear and concise description of the problem.
  • I have provided a clear and concise description of the proposed solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions