Skip to main content

agentic-fs server: stores, services, REST + MCP. Implements the afs-core contracts.

Project description

afs-server

The agentic-fs service: the concrete backends (stores, search, extraction), the services, and the REST + MCP surface. Implements the afs-core contracts.

Status

Store layer (in progress):

  • afs_server.settingsAFS_* env config; every swappable layer is selected by a backend name and every AWS-shaped backend takes an endpoint_url override.
  • afs_server.stores — the store registry: get_object_store(settings) selects a builtin or an installed plugin (afs.object_stores entry-point group).
  • afs_server.stores.objects_s3.S3ObjectStore — the S3 ObjectStore. Because it speaks plain S3, it is your store for any S3-compatible endpoint (MinIO, Cloudflare R2, Wasabi, Backblaze B2) via AFS_S3_ENDPOINT_URL — no code change.
  • afs_server.stores.catalog_dynamodb.DynamoDBCatalogStore — the DynamoDB CatalogStore over the single-table schema (AFS_DYNAMODB_ENDPOINT_URL points at DynamoDB Local for dev).

Both stores are certified by the afs-core conformance kits via moto.

  • afs_server.services.FsService — the read path (list / stat / ranged read) over the stores, with scope + namespace enforcement and 404-not-403 misses.
  • afs_server.app — the FastAPI app: /v1/healthz, /readyz, /me, and fs/{ns}/{entries,stat,doc}; dev auth (static principal, never prod); every AfsError rendered as RFC 9457 problem+json.
  • afs_server.mcp — the MCP surface mounted at /mcp (FastMCP): whoami, fs_list, fs_stat, fs_read over the same FsService (in-process, no HTTP self-calls). The full middleware chain + remaining tools land with their slices.

The image (../../Dockerfile) runs this app on Lambda / Fargate / locally; make dev from the repo root runs it against MinIO + DynamoDB Local. Coming next: the MCP mount (shares FsService in-process).

Swapping a backend (plug-and-play)

See docs/swap-guides/. In short: S3-compatible storage needs only an env var; anything else implements the ObjectStore Protocol, registers an entry point, and certifies against afs_core.testing.ObjectStoreConformance.

Develop

uv sync
uv run pytest packages/afs-server     # conformance kits run against moto

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afs_server-0.1.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

afs_server-0.1.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file afs_server-0.1.0.tar.gz.

File metadata

  • Download URL: afs_server-0.1.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for afs_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 095e65210ed9c3568590f3ae1e14d3cd31373f9ecef5971e2886a4f84a2c36da
MD5 c335eee69feb231bc3636d9b486c72d6
BLAKE2b-256 e402aa18aeb2afeeefb9384d4a7b938cbb8d9fb4e89e988e03f024626059094a

See more details on using hashes here.

File details

Details for the file afs_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: afs_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for afs_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 600e44f65e9a372842cc1dac547ff155bee8a95401f1c86cc864b95ac4b190eb
MD5 1f00a026e25bd7e5a85c09c36bea1746
BLAKE2b-256 02b3b6489a07c2260d1215dcdad43528afec7bcbc7a5224dad68036075b4b275

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page