開発者向け
MCP サーバー
PFoS-iD の MCP サーバーでは、PFoS-iD のアカウントとエージェント ID についての道具を、AI エージェントから使えます。
概要
- 住所
https://id.pfos.school/mcp(Streamable HTTP)- 版
- 2026-07-28、2025-11-25
- 認証
- OAuth。
resourceにhttps://id.pfos.school/mcpを入れて取ったトークン(Bearer か DPoP) - 保護されたリソースの案内
- https://id.pfos.school/.well-known/oauth-protected-resource/mcp
- 名刺
- /mcp/server-card(SEP-2127)、/.well-known/mcp/server-card.json
セッション(Mcp-Session-Id)は使いません。GET と DELETE には 405 を返します。
道具
| 名前 | 中身 | スコープ | 書き換え |
|---|---|---|---|
whoami | トークンの主体(sub、@ID、表示名、人かエージェントか) | me:read | なし |
list_my_agents | 自分のエージェント ID の一覧(状態、動き方、期限) | agents:read | なし |
list_connections | 接続中の外部エージェントとアプリ | agents:read | なし |
get_agent_profile | エージェントの公開プロフィール(owner/name で引く) | me:read | なし |
check_handle | @ID が空いているか | me:read | なし |
explain_scopes | スコープの意味と、気をつけること | me:read | なし |
start_agent_registration | エージェント ID の登録を始める(承認は人が PFoS-iD の画面で行う) | agents:register | あり(承認待ちを作る) |
結果は structuredContent と text(同じ中身の JSON)の両方で返します。list_my_agents・list_connections・start_agent_registration は、人のトークンだけで使えます。
つなぎ方
- トークンなしで呼ぶと 401 になり、
WWW-Authenticateのresource_metadataに保護されたリソースの案内の住所が入ります。 - クライアントは CIMD(https の URL の
client_id)を勧めます。認可の要求とトークンの要求にresource=https://id.pfos.school/mcpを付けます。 - 道具のスコープが足りないと 403 で、
error="insufficient_scope"と要るスコープが入ります。
版ごとの決まり
2026-07-28:initialize はありません。毎回の params._meta に io.modelcontextprotocol/protocolVersion を入れ、MCP-Protocol-Version・Mcp-Method・Mcp-Name のヘッダーを付けてください。本文と合わなければ 400(-32020)、知らない版は 400(-32022、答えられる版の一覧つき)です。server/discover に答えます。
2025-11-25:initialize で版を決め、その後の要求に MCP-Protocol-Version を付けてください。
名刺
{
"$schema": "https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",
"name": "school.pfos.id/account",
"version": "1.0.0",
"title": "PFoS-iD",
"description": "Account and agent-ID tools for PFoS-iD",
"websiteUrl": "https://id.pfos.school",
"remotes": [
{
"type": "streamable-http",
"url": "https://id.pfos.school/mcp",
"supportedProtocolVersions": [
"2026-07-28",
"2025-11-25"
]
}
]
}判定(isitagentready.com)が読む形:
{
"serverInfo": {
"name": "PFoS-iD",
"version": "1.0.0"
},
"description": "Account and agent-ID tools for PFoS-iD (id.pfos.school).",
"url": "https://id.pfos.school/mcp",
"transport": {
"type": "streamable-http"
},
"capabilities": {
"tools": true
}
}Poppy
Poppy の Personal Agent は、Poppy-Session を付けて呼べます。ヘッダーがあれば、必ず確かめます(Poppy の説明)。
In English
The PFoS-iD MCP server is at https://id.pfos.school/mcp (Streamable HTTP, protocol versions 2026-07-28 and 2025-11-25, no sessions). Get an OAuth access token with resource set to that URL; without one you get 401 with resource_metadata, and a tool that needs another scope answers 403 insufficient_scope. Tools: whoami, list_my_agents, list_connections, get_agent_profile, check_handle, explain_scopes, start_agent_registration.