Skip to content

🐛 Could not run GitHub agent demo with AuthBridge (manual deployment) #146

Closed

Description

@Alan-Cha

Describe the bug

I tried to run the GitHub agent demo with AuthBridge and I got an error with the MCP server:

alan@Alans-MacBook-Pro-3 silhouette-card-maker % kubectl logs deployment/git-issue-agent -n team1 -c git-issue-agent --tail=50
WARNING: Deprecated agent card endpoint '/.well-known/agent.json' accessed. Please use '/.well-known/agent-card.json' instead. This endpoint will be removed in a future version.
INFO:     10.244.0.50:49154 - "GET /.well-known/agent.json HTTP/1.1" 200 OK
WARNING: Deprecated agent card endpoint '/.well-known/agent.json' accessed. Please use '/.well-known/agent-card.json' instead. This endpoint will be removed in a future version.
INFO:     10.244.0.50:43446 - "GET /.well-known/agent.json HTTP/1.1" 200 OK
WARNING: Deprecated agent card endpoint '/.well-known/agent.json' accessed. Please use '/.well-known/agent-card.json' instead. This endpoint will be removed in a future version.
INFO:     10.244.0.50:44096 - "GET /.well-known/agent.json HTTP/1.1" 200 OK
INFO: HTTP Request: GET http://keycloak-service.keycloak.svc:8080/realms/demo/protocol/openid-connect/certs "HTTP/1.1 200 OK"
INFO: Connecting to MCP server at http://github-tool-service:9090/mcp
INFO: HTTP Request: POST http://github-tool-service:9090/mcp "HTTP/1.1 500 Internal Server Error"
Exception in thread Thread-2 (_run_loop):
  + Exception Group Traceback (most recent call last):
  |   File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
  |     self.run()
  |   File "/usr/local/lib/python3.12/threading.py", line 1012, in run
  |     self._target(*self._args, **self._kwargs)
  |   File "/app/.venv/lib/python3.12/site-packages/mcpadapt/core.py", line 237, in _run_loop
  |     self.loop.run_until_complete(self.task)
  |   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
  |     return future.result()
  |            ^^^^^^^^^^^^^^^
  |   File "/app/.venv/lib/python3.12/site-packages/mcpadapt/core.py", line 226, in setup
  |     await stack.enter_async_context(
  |   File "/usr/local/lib/python3.12/contextlib.py", line 659, in enter_async_context
  |     result = await _enter(cm)
  |              ^^^^^^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
  |     return await anext(self.gen)
  |            ^^^^^^^^^^^^^^^^^^^^^
  |   File "/app/.venv/lib/python3.12/site-packages/mcpadapt/core.py", line 122, in mcptools
  |     async with client as (read, write, *_):
  |                ^^^^^^
  |   File "/usr/local/lib/python3.12/contextlib.py", line 231, in __aexit__
  |     await self.gen.athrow(value)
  |   File "/app/.venv/lib/python3.12/site-packages/mcp/client/streamable_http.py", line 478, in streamablehttp_client
  |     async with anyio.create_task_group() as tg:
  |                ^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/app/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__
  |     raise BaseExceptionGroup(
  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/app/.venv/lib/python3.12/site-packages/mcp/client/streamable_http.py", line 409, in handle_request_async
    |     await self._handle_post_request(ctx)
    |   File "/app/.venv/lib/python3.12/site-packages/mcp/client/streamable_http.py", line 278, in _handle_post_request
    |     response.raise_for_status()
    |   File "/app/.venv/lib/python3.12/site-packages/httpx/_models.py", line 829, in raise_for_status
    |     raise HTTPStatusError(message, request=request, response=self)
    | httpx.HTTPStatusError: Server error '500 Internal Server Error' for url 'http://github-tool-service:9090/mcp'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
    +------------------------------------

I got this error while trying to do step 9b which is get credentials and a token.

Steps To Reproduce

Follow the steps in the tutorial.

Expected Behavior

I expect to see the token as the tutorial suggests:

Admin token length: 1543
Internal ID:   8577145b-cb77-4bbc-abde-1f5eb7643344
Client ID:     spiffe://localtest.me/ns/team1/sa/git-issue-agent
Secret length: 32
Token length:  1165

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions