strands-mcp-agent: Instructions file for Claude Code

CLAUDE.md

strands-mcp-agent CLAUDE.md is an instructions file for Claude Code from minorun365/strands-mcp-agent. It costs 1,022 tokens per session, scanned C, original, MIT.

An instruction file for a Streamlit web app that lets users chat with AWS Bedrock models while configuring MCP servers. Streamlit is a Python framework for building interactive web interfaces.

In plain words
What is it for?
Use it when developing or running the app, especially for starting Streamlit, setting AWS credentials, connecting MCP servers, and working with streamed agent responses.
Why use it?
It explains how to run the app, configure AWS access, install dependencies, and understand its main components.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is minorun365/strands-mcp-agent's own configuration. It tells Claude Code how to work on strands-mcp-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything strands-mcp-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to minorun365/strands-mcp-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/minorun365/strands-mcp-agent/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/minorun365/strands-mcp-agent

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for strands-mcp-agent CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/minorun365/strands-mcp-agent/claude-md/github.svg)](https://agentmods.dev/instructions/minorun365/strands-mcp-agent/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/minorun365/strands-mcp-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/minorun365/strands-mcp-agent/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for strands-mcp-agent CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/minorun365/strands-mcp-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/minorun365/strands-mcp-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,022 This file is loaded in full into every session.
When invoked 1,022 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01022 $0.01022
Opus 5.5 $0.00409 $0.00409
Sonnet 5.5 $0.00204 $0.00204
Haiku 4.5 $0.00102 $0.00102

Measured 2mo ago against content hash 00f9f0a7be0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

strands-mcp-agent CLAUDE.md scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- ローカル開発: AWS環境変数または~/.aws/credentials
CLAUDE.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

プロジェクト概要

このリポジトリは「Strands MCP エージェント」というWebアプリケーションで、AWS発のOSS「Strands Agents SDK」を使用して構築されています。任意のMCPサーバーを設定し、AWS BedrockのClaudeモデルと対話できるStreamlitベースのインターフェースを提供します。

一般的なコマンド

アプリケーションの実行

# ローカルでStreamlitアプリを起動
streamlit run main.py

# デバッグモードで実行
streamlit run main.py --logger.level=debug

依存関係の管理

# 依存関係のインストール
pip install -r requirements.txt

AWS認証設定

# AWS CLIで認証情報を設定
aws configure

# または環境変数で設定
export AWS_ACCESS_KEY_ID="your-access-key-id"
export AWS_SECRET_ACCESS_KEY="your-secret-access-key"
export AWS_DEFAULT_REGION="us-west-2"

コードアーキテクチャと構造

ファイル構成

  • main.py - Streamlitアプリケーションのメインファイル
  • requirements.txt - Python依存関係の定義
  • .github/workflows/claude.yml - Claude Code GitHub Actionの設定

主要なコンポーネント

1. Streamlitアプリケーション (main.py)
  • UI構成:

    • メインエリア: 質問入力フィールドと回答表示
    • サイドバー: BedrockモデルIDとMCPサーバーの設定
  • 主要な関数:

    • create_mcp_client(): MCPクライアントの作成(uvx/npx対応)
    • create_agent_with_multiple_tools(): 複数ツールを持つエージェントの作成
    • stream_response(): 非同期でレスポンスをストリーミング表示
    • extract_tool_info(): ツール実行情報の抽出
    • extract_text(): チャンクからテキストの抽出
2. 技術スタック
  • フレームワーク: Streamlit(Webインターフェース)
  • AIエージェント: Strands Agents SDK
  • LLMプロバイダー: AWS Bedrock(Claudeモデル)
  • MCPプロトコル: stdio_client経由でMCPサーバーと通信
  • パッケージマネージャー: uvxまたはnpx(MCPサーバー実行用)
3. セッション管理
  • st.session_stateを使用してMCPサーバー設定を永続化
  • 動的にMCPサーバーの追加・削除が可能
4. 認証とシークレット管理
  • ローカル開発: AWS環境変数または~/.aws/credentials
  • Streamlit Community Cloud: st.secretsを使用
    • AWS認証情報
    • Langfuseトレース設定(オプション)

重要な注意点

  1. MCPサーバー接続: stdioプロトコルをサポートする任意のMCPサーバーに接続可能
  2. 非同期処理: asyncioを使用してストリーミングレスポンスを実装
  3. エラーハンドリング: MCPサーバー接続エラーやBedrock認証エラーに注意
  4. デプロイ: Streamlit Community Cloudへのデプロイ時はシークレット設定が必須

GitHub Actions

Claude Code Actionが設定されており、以下のトリガーで動作:

  • Issue/PRコメントに@claudeを含む場合
  • Issue本文/タイトルに@claudeを含む場合

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 92 lines · 1,022 tokens per session scan C 00f9f0a7be0c

Subscribe to this mod's changes

strands-mcp-agent CLAUDE.md is an instructions file published in the GitHub repository minorun365/strands-mcp-agent (5 stars, last pushed yesterday), licensed MIT. It adds 1,022 tokens to every session, about $0.0041 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

strands-mcp-agent CLAUDE.md compared with instructions from other repositories

strands-mcp-agent CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
strands-mcp-agent CLAUDE.mdminorun365/strands-mcp-agentInstructions file5yesterdayMITC1,022Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file280k2d agoMITA4,325Codex, OpenCode