Skip to content
Discussion options

You must be logged in to vote

Hi @smagli081, great question! This is an area where the documentation could definitely use more clarity.

1. Using mcp-server with Frontmatter

You're correct that frontmatter can be picky about multi-line strings. The mcp-server property expects a valid JSON object. Here are two reliable ways to format it:

Option A: Single-line JSON (most reliable)

---
mcp-server: '{"type":"http","url":"https://api.githubcopilot.com/mcp/"}'
---

Option B: YAML literal block (more readable)

---
mcp-server: |
  {
    "type": "http",
    "url": "https://api.githubcopilot.com/mcp/"
  }
---

Both work. Option A is more compact; Option B is easier to read and maintain.

2. Using Secrets with MCP Servers

For the se…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by smaglio81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copilot Code accurately and faster with your AI powered pair-programmer. Product Feedback Share your thoughts and suggestions on GitHub features and improvements Copilot Coding Agent Implement a task or issue, run in the background with GitHub Actions, and more source:ui Discussions created via Community GitHub templates
2 participants