send_email
Send an email from your AgentLair address (@agentlair.dev) to any recipient. No SMTP or DNS setup needed.
ccto必填from必填htmltext必填subject必填
io.github.piiiico由 GitHub 账号 piiiico 发布v1.3.1更新于 Nov 5, 2026
Give AI agents a real email address, vault, calendar, and task delegation via MCP.
AgentLair 让 AI 代理拥有自己的 @agentlair.dev 邮箱、密钥保管库、iCal 日历、信任检查与代理间任务委派能力。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.piiiico%2Fagentlair/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"agentlair": {
"type": "http",
"url": "https://agentlair-mcp-server.amdal-dev.workers.dev/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}Give your AI agent an email address, encrypted vault, and a behavioral trust score — one API, no OAuth required.
[npm: @agentlair/mcp] [npm: @agentlair/sdk]
No signup. See what a live trust score response looks like:
Rate limited to 10 requests/minute per IP. Response shape matches the live /v1/trust/:agentId endpoint.
Full interactive demo — register a real agent, submit observations, get a live trust score (curl + jq, ~60 seconds):
From here, the agent authenticates with api_key to send email, store credentials, and emit signed audit events.
1. Install
2. Set env vars
3. Wire lifecycle hooks
Messages accumulate while offline and drain at next session start. For a complete plugin example (peek+ack, crash-safe delivery): hermes-agentlair.
Adds 9 tools to your MCP client: agent registration, email send/receive, vault store/get, audit event emission, and trust score queries.
Agent memory is real infrastructure. 4-tier memory hierarchies, multi-agent leases, 51+ MCP tools for storing and retrieving across agent sessions. When multiple agents share a memory pool, the category works.
The gap: any agent can write anything to shared memory. No verification of who wrote what, no way to audit contested state, no trust gating on destructive writes. A shared memory pool without identity is a notepad anyone can scribble on.
Every write should be attributable. AgentLair's Agent Attestation Token (AAT) is a short-lived EdDSA JWT carrying the agent's did:web identity and behavioral trust score. Present it as the Authorization header in a memory write — the write is now cryptographically signed and auditable:
The memory server verifies the AAT via standard JWKS — no AgentLair SDK required on the receiving side. The al_trust claim lets it gate writes by behavioral trust level (e.g., reject writes from agents below junior).
Without AATs: shared memory = shared notepad. Any agent writes anything, contested state has no provenance.
With AATs: shared memory = trust graph. Every write is signed, attributed, and auditable.
TypeScript client for the AgentLair API. See agentlair.dev/getting-started.
Pro: $5/stack/month for higher limits.
@agentlair/vault-crypto. The server stores ciphertext only — no plaintext credentials at rest.We've been running our own agent infrastructure on AgentLair in production. Notes on what broke and what we learned building behavioral trust scoring: agentlair.dev/blog/from-0-to-41-building-behavioral-trust-in-production
AgentLair AAT is session identity inside the issuer. AEOESS APS is delegation chains and bilateral receipts after handoff. Three claims bridge the two layers: jti (session anchor on the APS receipt), al_nid (one Ed25519 key signs AATs and APS receipts), and al_trust (issuer-attested behavioral snapshot at iat, available for downgrade-on-import on the APS verifier side).
Jointly maintained reference:
MIT
来源:README.md,提交 5bed860
Send an email from your AgentLair address (@agentlair.dev) to any recipient. No SMTP or DNS setup needed.
ccto必填from必填htmltext必填subject必填Check the inbox for an @agentlair.dev email address. Returns recent messages with sender, subject, and received time.
limitaddress必填Read the full content of a specific email message, including the body text.
address必填message_id必填List all @agentlair.dev email addresses associated with your API key.
无需输入参数。
Claim a new @agentlair.dev email address for your agent. Free tier supports multiple addresses.
address必填Check trust readiness before engaging with an agent. Returns a ReadinessCard: trust score, behavioral maturity level, whether it's safe to engage, and any caveats. Call this before delegating tasks, accepting agent output, or authorizing payments involving an unknown agent. Free — no extra charge beyond your API key.
agent_id必填Store a value in the AgentLair Vault. Use this to persist API keys, secrets, or any data your agent needs across sessions. Best practice: encrypt sensitive data client-side before storing (the server stores whatever you send).
key必填value必填metadataRetrieve a stored value from the AgentLair Vault by key name.
key必填List all keys stored in your AgentLair Vault (metadata only, values not returned).
无需输入参数。
Delete a key and all its versions from the AgentLair Vault.
key必填Create a calendar event on your AgentLair calendar. Events are published via iCal feed for human subscription (Google Calendar, Apple Calendar, Outlook).
end必填start必填summary必填locationattendeesdescriptionList events on your AgentLair calendar. Optionally filter by date range.
tofromDelete an event from your AgentLair calendar by event ID. Use calendar_list_events to find event IDs.
id必填Get the public iCal subscription URL for your AgentLair calendar. Share this URL with calendar apps (Google Calendar, Apple Calendar, Outlook) so humans can subscribe and see agent-created events.
无需输入参数。
Delegate a task to another AgentLair agent. The task is delivered to the agent's inbox and picked up asynchronously. Use this when you need another agent to do something — send an email, run a deployment, do research, etc.
to必填task必填contextpriorityconstraints已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
# Healthy agent — high trust (score 84, principal level)curl https://agentlair.dev/v1/demo{ "agentId": "acc_demo_healthy_XXXXXXXXXX", "score": 84, "confidence": 0.91, "atfLevel": "principal", "trend": "stable", "dimensions": { "consistency": { "score": 0.82 }, "restraint": { "score": 0.87 }, "transparency": { "score": 0.80 } }, "observationCount": 1847}# Suspicious agent — score 31, declining trendcurl 'https://agentlair.dev/v1/demo?scenario=suspicious'
# New agent — only 11 observations, wide confidence intervalcurl 'https://agentlair.dev/v1/demo?scenario=new'curl -sL https://raw.githubusercontent.com/piiiico/agentlair/main/examples/quickstart.sh | bashcurl -X POST https://agentlair.dev/v1/auth/agent-register \ -H "Content-Type: application/json" \ -d '{"name": "my-research-agent"}'{ "api_key": "al_live_...", "account_id": "acc_...", "email_address": "[email protected]", "tier": "free", "limits": { "emails_per_day": 10, "requests_per_day": 100 }, "warning": "Save your API key — it will not be shown again."}pip install agentlair # Pythonnpm install @agentlair/sdk # TypeScript / Nodeexport AGENTLAIR_API_KEY=al_live_...export [email protected]# Python — three integration pointsimport os, agentlairlair = agentlair.AgentLair(os.environ["AGENTLAIR_API_KEY"])addr = os.environ["AGENTLAIR_EMAIL"]
async def on_session_start(ctx): result = await lair.email.inbox(addr) if result["messages"]: ctx.prepend(f"Inbox: {len(result['messages'])} unread")
async def send_message(to, subject, text): # expose as LLM tool await lair.email.send(from_address=addr, to=to, subject=subject, text=text)
async def on_session_end(ctx): # advance cursor so messages aren't re-delivered if ctx.last_message_id: await lair.vault.store("inbox_cursor", ctx.last_message_id)// TypeScriptimport { AgentLair } from '@agentlair/sdk';const lair = new AgentLair(process.env.AGENTLAIR_API_KEY!);const addr = process.env.AGENTLAIR_EMAIL!;
// Session start — drain inbox before planningconst { messages } = await lair.email.inbox(addr);if (messages.length) context.prepend(`Inbox: ${messages.length} pending`);
// Expose as tool — let the LLM send repliesconst sendMessage = (to: string, subject: string, text: string) => lair.email.send({ from: addr, to, subject, text });npx @agentlair/mcp@latestimport { AgentLair } from '@agentlair/sdk';
const lair = new AgentLair(process.env.AGENTLAIR_API_KEY!);
// Issue a short-lived AAT (5 min) scoped to the memory serverconst { token } = await lair.tokens.issue({ audience: 'memory.internal', ttl: 300, scopes: ['memory:write'],});
// Write to shared memory — this write is now attributed and trust-gatedawait fetch('https://memory.internal/mcp/memory/write', { method: 'POST', headers: { 'Authorization': `Bearer ${token}`, // signed agent identity 'Content-Type': 'application/json', }, body: JSON.stringify({ key: 'research/competitor-analysis', value: { /* ... */ }, }),});npm install @agentlair/sdkpackages/ worker/ — Core API worker (Cloudflare Workers) sdk/ — @agentlair/sdk client library mcp-server/ — @agentlair/mcp MCP server vault-crypto/ — @agentlair/vault-crypto end-to-end encryption verify/ — @agentlair/verify AAT token verification email-worker/ — Email processing worker
apps/ dashboard/ — Agent dashboard UI email-channel/ — Email MCP channelbun install # install all dependenciesbun run typecheck # type-check all packages