-
Pre-submission Checklist
Question Category
Your QuestionQuick question: Is Right now I am using a prompt stored as a resource that can be passed to the client, but from what I read it seems |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
VS Code is one client that supports this. I think fast-agents does too. In general, you cannot guarantee that a client will use it, and when it does, it might not place it as a system message, for security reasons. Don't think of it as passing a system prompt to the client, think of it as providing context for how to use the server (could be more than tools, could also be about resources, sampling, elicitation). How the client makes use of that context is implementation-specific. If you control the client - which is sometimes the case when MCP is used as architectural glue, you can use a resource as system prompt. I have used this technique on several projects. Where a 1st party MCP client host fetches the system message from a well-known resource on a 1st party MCP server. If you want an arbitrary client to use a system prompt provided by you that's generally not supported (as instructions are likely to be appended and even bounded instruction-wise to the extent possible) by MCP - which makes sense right - if you're using Copilot or Claude.ai you don't want every single MCP server you use to have the power to override your system prompt. |
Beta Was this translation helpful? Give feedback.
VS Code is one client that supports this. I think fast-agents does too. In general, you cannot guarantee that a client will use it, and when it does, it might not place it as a system message, for security reasons. Don't think of it as passing a system prompt to the client, think of it as providing context for how to use the server (could be more than tools, could also be about resources, sampling, elicitation). How the client makes use of that context is implementation-specific.
If you control the client - which is sometimes the case when MCP is used as architectural glue, you can use a resource as system prompt. I have used this technique on several projects. Where a 1st party MCP clien…