awslabs / awslabs/agentcore-samples

01-tutorials - [Bug] Auth Failure due to expired Bearer Token in the MCP Server Clients

Open
#418 0 comments 0 reactions 1 assignee Claimed by @akshseh View on GitHub
01-AgentCore-runtime 01-tutorials bug
Dominant language
Python
Stars
3.4k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
30

Description

**In which component is this bug present?**

- [x] 01-AgentCore-runtime
- [ ] 02-AgentCore-gateway
- [ ] 03-AgentCore-identity
- [ ] 04-AgentCore-memory
- [ ] 05-AgentCore-tools
- [ ] 06-AgentCore-observability
- [ ] 07-AgentCore-E2E

If you are reporting multiple bugs, please create a separate issue for each. For documentation improvements, use the documentation improvement issue type.

**Bug Description**
A clear and concise description of the bug.
```
The `bearer_token` stored in SecretsManager expires in about an hour for the MCP server implementation. The remote client that use this token will work as expected for an hour but will error out after the token expires. Users who want to play with the example and tweak the code may need longer than an hour to try things out and will not have a way to run the remote client to test their changes.
```

**Screenshots**
If applicable, add screenshots to help explain your problem.
```
Please provide screenshots here.
```

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.