mcp-server Example in Custom Agents Documenation #190999
-
🏷️ Discussion TypeProduct Feedback 💬 Feature/Topic AreaCopilot Coding Agent BodyCould the About Custom Agents page be updated to include an example using the My gut feeling is that the property would want the json formatted MCP definition (example below), but I've found that frontmatter is very particular about only accepting single line strings. So, I'm hoping that the documentation could provide an example? "github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}Also, could the documentation list if you can use secrets stored in a repository to populate tokens, like in thes example below? If you defined an agent in the organization level {
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${input:github_mcp_pat}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "github_mcp_pat",
"description": "GitHub Personal Access Token",
"password": true
}
]
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hi @smagli081, great question! This is an area where the documentation could definitely use more clarity. 1. Using
|
Beta Was this translation helpful? Give feedback.
Hi @smagli081, great question! This is an area where the documentation could definitely use more clarity.
1. Using
mcp-serverwith FrontmatterYou're correct that frontmatter can be picky about multi-line strings. The
mcp-serverproperty expects a valid JSON object. Here are two reliable ways to format it:Option A: Single-line JSON (most reliable)
Option B: YAML literal block (more readable)
Both work. Option A is more compact; Option B is easier to read and maintain.
2. Using Secrets with MCP Servers
For the se…