Skip to content

Feature Request: Allow passing an initial prompt/context to MCP server sessions #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ronodeep opened this issue Apr 19, 2025 · 3 comments

Comments

@Ronodeep
Copy link

Feature Request

It would be helpful to have a way to pass an initial prompt or context when starting a session with the MCP server. This would allow for better contextualization and more relevant responses from the server, especially for use cases where the initial context is important for downstream interactions.

Proposed Solution:

  • Add support for an optional initial prompt/context parameter when starting a session (e.g., via an environment variable, command-line argument, or API field).
  • Ensure this context is available to the server for the duration of the session.

Use Case:

  • Users can provide background information, goals, or other relevant context at the start of a session, improving the quality of responses.

Thank you for considering this feature!

@phamalor315
Copy link

yes

@toby
Copy link
Member

toby commented Apr 21, 2025

This isn't really part of the MCP spec, but there is a way to do this with VS Code. You can create a custom Copilot instruction and it can help a lot with tool selection. There is also the concept of Prompts in MCP that the server can expose for the user to use. That would be on a per-interaction basis though and not session based.

@toby toby closed this as completed Apr 21, 2025
@phamalor315
Copy link

ok wow is cool
how make this github

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

No branches or pull requests

3 participants