Replies: 1 comment
|
There are really two separate pieces here now: the GitHub MCP server and the Copilot SDK. The GitHub MCP server itself is a tool provider. An MCP host such as Copilot CLI, VS Code, Claude, etc. calls it to read or act on GitHub data. I don't see a GitHub MCP tool whose purpose is to create a new interactive Copilot Chat session on github.com. For the synchronous conversational use case, however, the official GitHub Copilot SDK now looks like the appropriate API. For example in TypeScript: import { CopilotClient } from "@github/copilot-sdk";
const client = new CopilotClient({
workingDirectory: "/path/to/repository",
});
await client.start();
const session = await client.createSession({
model: "auto",
});
const first = await session.sendAndWait({
prompt: "Explain how authentication works in this repository.",
});
console.log(first?.data.content);
const followup = await session.sendAndWait({
prompt: "Which tests cover that flow?",
});
console.log(followup?.data.content);The important parts for the original use case are:
For a genuinely read-only exploration mode, the SDK also exposes So I would think of the architecture as: rather than: The GitHub MCP server can still be useful inside an agent session when you need GitHub-side repository/issues/PR/discussion context, but it is not itself the conversational Copilot host. I can't speak to GitHub's roadmap for exposing the github.com Copilot Chat UI/session directly as an MCP tool, but for the underlying requirement — programmatic, interactive, multi-turn codebase Q&A without automatically creating a PR — the Copilot SDK now appears to provide that capability directly. |
Uh oh!
There was an error while loading. Please reload this page.
Hi team,
Is there a GitHub MCP tool (or API) that can open an interactive chat session with Copilot for codebase exploration — e.g., investigating features or debugging — without creating a PR?
Currently, the only programmatic option I'm aware of is
assign_copilot_to_issue_with_intent, which assigns the coding agent to an issue. However, that workflow is:Asynchronous (no back-and-forth conversation)
PR-centric (always creates a branch + PR)
What I'm looking for is a way to programmatically start a synchronous, conversational session with Copilot that has full codebase context — similar to Copilot Chat on github.com — but invokable via MCP/API.
Questions:
Does such a tool/API exist today?
If not, is this on the roadmap?
Are there alternative approaches to achieve interactive, read-only code Q&A programmatically?
Thanks!
All reactions