Add MCPClient docstrings. Removed google specific cleanup, changed example to openai

This commit is contained in:
Mark Backman
2025-06-25 17:51:42 -04:00
committed by Yousif Astarabadi
parent 1cac028bfe
commit f0bcc9d9ba
2 changed files with 71 additions and 33 deletions

View File

@@ -63,6 +63,10 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
)
try:
# Github MCP docs: https://github.com/github/github-mcp-server
# Enable Github Copilot on your GitHub account. Free tier is ok. (https://github.com/settings/copilot)
# Generate a personal access token. It must be a Fine-grained token, classic tokens are not supported. (https://github.com/settings/personal-access-tokens)
# Set permissions you want to use (eg. "all repositories", "profile: read/write", etc)
mcp = MCPClient(
server_params=StreamableHttpParameters(
url="https://api.githubcopilot.com/mcp/",
@@ -128,4 +132,4 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from pipecat.examples.run import main
main(run_example, transport_params=transport_params)
main(run_example, transport_params=transport_params)