開発者向け

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 は、人のトークンだけで使えます。

つなぎ方

  1. トークンなしで呼ぶと 401 になり、WWW-Authenticate の resource_metadata に保護されたリソースの案内の住所が入ります。
  2. クライアントは CIMD(https の URL の client_id)を勧めます。認可の要求とトークンの要求に resource=https://id.pfos.school/mcp を付けます。
  3. 道具のスコープが足りないと 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.

GET /docs/mcp · Accept: text/markdown