この記事の内容
実際に
Python Fast Agent AIフレームワークを 使って ターミナルで インタラクティブな MCPサーバー体験を 構築する
ターミナルを
エージェント型ワークフローを
MCPに
uvでPython開発環境をセットアップする
それでは、
まずは、
そんなuvです。uvは
uvを
uv python listPython 3.xの
uv python install 3.13Python環境にFast Agentをインストールする
uvと
プロジェクト用の
mkdir fast-agent-workflow
cd fast-agent-workflowこのuvパッケージマネージャーを
uv inituv initコマンドを
続いて、
uv venv
source .venv/bin/activate
uv pip install fast-agent-mcp次のような
Resolved 89 packages in 2.45s
Prepared 36 packages in 1.76s
Installed 89 packages in 236ms
+ a2a-types==0.1.0
+ aiohappyeyeballs==2.6.1
+ aiohttp==3.12.12
+ aiosignal==1.3.2
+ annotated-types==0.7.0
+ anthropic==0.53.0
+ anyio==4.9.0
+ attrs==25.3.0
+ azure-core==1.34.0
+ azure-identity==1.23.0
+ cachetools==5.5.2
+ certifi==2025.4.26
+ cffi==1.17.1
+ fast-agent-mcp==0.2.30
+ fastapi==0.115.12
+ mcp==1.9.3
+ openai==1.85.0次に、fast-agent実行ファイルを
fast-agent quickstart state-transferエージェントの
注意:シークレットを
Fast AgentでMCPを活用したAIチャットをターミナル上で実現する
それでは、
まず、
ファイルfastagent.secrets.yaml.exampleのfastagent.secrets.yamlに.exampleを
Fast Agentアプリケーションのstate-transferディレクトリにfastagent.config.yamlをdefault_modelとloggerを
default_model: gpt-4.1-mini
# Logging and Console Configuration:
logger:
level: "debug"
type: "file"
path: "/tmp/fast.jsonl"
# Switch the progress display on or off
progress_display: true次は、
これから
現在のagent_oneの
mcp:
servers:
fetch:
transport: "stdio"
command: "uvx"
args: ["mcp-server-fetch"]
filesystem:
transport: "stdio"
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "."]上記のfilesystemとfetchの
次に、agent_one.pyファイルを
変更前の
# Define the agent
@fast.agent(name="agent_one", instruction="You are a helpful AI Agent.")
async def main():次のように
# Define the agent
@fast.agent(name="agent_one", servers=["fetch", "filesystem"], instruction="You are a helpful AI Agent")
async def main():ヒント:MCPサーバーは、
MCPサーバーを使ったFast Agentアプリケーションを実行する
次に、state-transferディレクトリ内で、agent_one.pyファイルを
uv run agent_one.py次のような
Type /help for commands, @agent to switch agent. Ctrl+T toggles multiline mode.
agent_one >
agent_one Mode: NORMAL <Enter>:Submit | Ctrl+T:Multiline Editing | Ctrl+L:Clear | ↑/↓:History | v0.2.30Fast Agentを
さらに、
構築した

その
# Latest News from Snyk.io
- Snyk has launched the AI Trust Platform to secure AI-generated code and AI native applications, emphasizing trust as the foundation for AI-driven secure software.
- The platform integrates AI-powered workflows for development and security stakeholders, leveraging agentic and assistant-based AI for automation, efficiency, and innovation.
- Snyk focuses on proactive, AI-powered security with its application security testing engines noted as the fastest, most accurate, and most comprehensive.
- Snyk supports organizations of all sizes in achieving application security, compliance, and DevSecOps governance goals.
- The company highlights its ecosystem approach with technology integrations that work with existing tools and workflows to bring secure AI solutions to life.
- Key resources featured include guides and articles such as the "CISOs Guide to Safely Unleashing Power of Gen AI," tips on engaging developers in security programs, and building strong AppSec programs from basics to best practices.
- Snyk invites users to start securing AI-generated code quickly or book a demo to explore developer security use cases.
This summary captures the latest focus and offerings highlighted on the Snyk homepage as of now.エージェント型ワークフローには、
MCPの
セキュリティ対策も 忘れずに。見逃せない AIセキュリティリスク12選を ご覧ください。 MCPセキュリティの
攻撃ベクトルに ついて 詳しくは こちら:MCPセキュリティ:新しい ものは、 実は 昔から ある もの
eBook
テクノロジー業界に おける 開発者セキュリティの 6つの ベストプラクティス
この