ghcp-hosted-agents

Deploy Foundry hosted agents with BYOK authentication and SSE streaming.

5|2|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/aiappsgbb/awesome-gbb --skill ghcp-hosted-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ghcp-hosted-agents
Source: https://github.com/aiappsgbb/awesome-gbb/tree/main/skills/ghcp-hosted-agents
Command: npx skills add https://github.com/aiappsgbb/awesome-gbb --skill ghcp-hosted-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github-copilot-sdk, azure-ai-agentserver-invocations, azure-identity, requests, starlette, python-dotenv, and includes references (resource) components.

What problem does it solve?

This Skill enables reliable deployment of long-running, streaming GitHub Copilot hosted agents on Foundry using BYOK authentication, avoiding gateway timeouts and enabling progressive discovery.

Core Features & Use Cases

  • Invocations SSE Streaming: Uses Invocations protocol to stream events to the caller for workflows that exceed non-streaming response limits.
  • BYOK Authentication on Foundry: Deploys hosted agents without requiring GITHUB_TOKEN by minting bearer tokens via DefaultAzureCredential.
  • Tool-Loop Fit for Slow Workloads: Optimized for long tool loops (e.g., multi-site scraping or iterative scans) where streaming progress matters more than minimal orchestration latency.

Quick Start

Ask the AI agent runtime to deploy a hosted Foundry agent using the Invocations protocol with FOUNDRY_PROJECT_ENDPOINT and AZURE_AI_MODEL_DEPLOYMENT_NAME set for BYOK, and invoke it by POSTing JSON with an input string to the Invocations SSE endpoint.

Frequently Asked Questions about ghcp-hosted-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream long-running GitHub Copilot hosted agents without hitting gateway timeouts?

You can stream long-running GitHub Copilot hosted agents by deploying them with the Invocations protocol over SSE, which sends progressive events to the caller and avoids non-streaming gateway response limits.

Can I deploy Foundry hosted agents without a GITHUB_TOKEN?

Yes, you can deploy Foundry hosted agents using BYOK authentication by minting bearer tokens via DefaultAzureCredential for the https://ai.azure.com/.default scope, entirely bypassing the need for a GITHUB_TOKEN.

How do I configure MCP servers and skill directories for Foundry hosted agents?

You configure Foundry hosted agents by carefully setting up the session with skill_directories and mcp_servers configuration parameters during initialization to ensure compatible skill loading and MCP tool integration.

What is the Invocations protocol used for in GitHub Copilot SDK agent workflows?

The Invocations protocol is used to stream SSE events from GitHub Copilot SDK agents to the caller, enabling progressive discovery for long tool loops like multi-site scraping where streaming progress matters more than minimal latency.

Do I need to set FOUNDRY_PROJECT_ENDPOINT and AZURE_AI_MODEL_DEPLOYMENT_NAME to use BYOK on Foundry?

Yes, setting FOUNDRY_PROJECT_ENDPOINT and AZURE_AI_MODEL_DEPLOYMENT_NAME is required to properly configure BYOK authentication and invoke the hosted Foundry agent by POSTing JSON with an input string to the Invocations SSE endpoint.

When should I avoid using SSE streaming for GitHub Copilot hosted agents?

You should avoid SSE streaming for GitHub Copilot hosted agents when your workloads require minimal orchestration latency, as this approach is specifically optimized for slow tool loops where streaming progress is the priority.