Table of Contents
| title | description | version | date | draft | tags | categories | agents | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FastMCP-Suite | Architecture, server implementation, transport lifecycle, and security boundaries for ScoutsSync FastMCP servers. | 1.0.0 | 2026-11-08 | false |
|
|
|
FastMCP Server Suite
Overview
The ScoutsSync Model Context Protocol (MCP) suite provides decoupled, standalone interfaces between autonomous AI agents and external services supporting Scouts Canada sections. Built strictly with the official Python SDK (mcp[cli]>=1.0.0, from mcp.server.fastmcp import FastMCP), the architecture enforces standalone service decoupling where each external platform runs as an independent daemon communicating over standard input/output (stdio).
flowchart TD
subgraph AgentHost["Antigravity / Gemini Agent Host"]
Orchestrator["Lead Orchestrator"]
Dev["Sub Agent Developer"]
end
subgraph FastMCPServers["FastMCP Suite (stdio transport)"]
ST_MCP["ScoutsTracker FastMCP<br/>(src/mcp/scoutstracker/)"]
GD_MCP["Google Drive FastMCP<br/>(src/mcp/gdrive/)"]
end
subgraph ExternalServices["External Endpoints"]
ST_API["ScoutsTracker REST API<br/>(scoutstracker.ca)"]
GD_API["Google Drive / Sheets API<br/>(FILES_SCOPE 1cRSI26_w6TtQ7pWx2wGuryqZzqCRs-VG)"]
end
AgentHost -->|stdio| ST_MCP
AgentHost -->|stdio| GD_MCP
ST_MCP -->|HTTP / JSON| ST_API
GD_MCP -->|Scoped JSON / API| GD_API
1. Standalone Service Decoupling Directives
Per project governance and global agent directives:
- No Monolithic Bundling: Each external platform (ScoutsTracker, Google Drive, MyScouts) is incubated in its own subpackage under
src/mcp/<service>/. - Standard Type Annotations: Tool parameters, return types, and schemas rely strictly on Python type annotations and Pydantic models for automated schema generation. Handcrafted schemas are forbidden.
- Portable Lifecycle: Servers are developed locally in
src/mcp/<service>/, tested via unit harnesses, and designed for standalone deployment into isolated Forgejo repositories and agent configurations without Git submodules.
2. ScoutsTracker FastMCP (src/mcp/scoutstracker/)
The ScoutsTracker server exposes tools for querying schedules, inspecting rosters, calculating badge advancement, and generating human-in-the-loop staging scripts.
Core Modules
server.py: FastMCP application instance (FastMCP("ScoutsTracker")) exposing MCP tools and prompt templates.client.py: Async HTTP client (ScoutsTrackerClient) managing authentication, cookies, and REST endpoints.models.py: Strongly-typed Pydantic models for members, sections, events, badge requirements, and orders.staging.py: 51-property canonical schema normalizer and DevTools staging script generator.config.py: Environment-driven configuration (SCOUTSTRACKER_EMAIL,SCOUTSTRACKER_PASSWORD, section IDs).
Exposed Tools
st_login(email, password, section): Authenticates against the ScoutsTracker web service.st_list_accounts(): Lists available scout section accounts and permissions.st_switch_account(account_id): Switches active account/section context.st_list_events(start_date, end_date): Queries scheduled colony meetings and camps.st_stage_event(item_id, ...): Generates browser staging snippets for safe event loading.st_get_roster(active_only): Retrieves section youth and adult member rosters.st_get_advancement_progress(member_id): Fetches Canadian Path badge progress.
3. Google Drive FastMCP (src/mcp/gdrive/)
The Google Drive server provides access to section planning documents, master schedules, and weeknotes Google Docs while enforcing strict security perimeter controls.
Perimeter Boundary (FILES_SCOPE)
- Authorized Root Folder: Access is restricted strictly to folder ID
1cRSI26_w6TtQ7pWx2wGuryqZzqCRs-VGand recursively through associated sub-directories. - Out-of-Scope Prohibition: Any read or write access outside this folder hierarchy is denied.
- Operator Editor Prerequisite: Mutating operations require verifying that the operator is registered as an EDITOR of the parent folder.
Exposed Tools
gdrive_get_endpoints(category): Returns configured URLs and IDs for colony documents, weeknotes, and schedules.gdrive_verify_scope(resource_id_or_url): Programmatically audits whether a target document lies withinFILES_SCOPE.gdrive_get_plan_item(item_id): Queries detailed meeting specs from the master program plan schedule.gdrive_list_schedule(limit, upcoming_only): Lists upcoming section meetings and theme descriptions.
4. Execution & Mounting
FastMCP servers can be tested or mounted locally via stdio using mcp run or python:
# Run ScoutsTracker FastMCP server over stdio
python3 -m src.mcp.scoutstracker.server
# Run Google Drive FastMCP server over stdio
python3 -m src.mcp.gdrive.server
When registering in .gemini/settings.json or Antigravity configuration:
{
"mcpServers": {
"scoutstracker": {
"command": "python3",
"args": ["-m", "src.mcp.scoutstracker.server"],
"env": {
"SCOUTSTRACKER_EMAIL": "${SCOUTSTRACKER_EMAIL}",
"SCOUTSTRACKER_PASSWORD": "${SCOUTSTRACKER_PASSWORD}"
}
},
"gdrive": {
"command": "python3",
"args": ["-m", "src.mcp.gdrive.server"],
"env": {
"FILES_SCOPE": "1cRSI26_w6TtQ7pWx2wGuryqZzqCRs-VG"
}
}
}
}
Navigation & Cross-References
- Home — Executive landing page
- ScoutsTracker Integration — Canonical 51-property schema and jQuery 1.4.2 rules
- Beaver Program Planning — 5-phase weekly checklist and weeknotes authoring
- Use Cases — Formal system use case directory
- index — Complete catalog index
Navigation
Core Architecture
Governance
Maintained autonomously by AI Agents conforming to AGENTS.md and the Karpathy LLM-Wiki standard.