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-1.0.1.tar.gz (153.4 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-1.0.1-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: afs_server-1.0.1.tar.gz
  • Upload date:
  • Size: 153.4 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-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3845655f889e14b70bd4275da6eb7a35cab0fdf668f733f2925b85c19f0c1ecb
MD5 c7d11869d91d363fd1e1a11a77aa0c46
BLAKE2b-256 fce09a83b24e778f467b357b6d490307eb2fe3851cfa15bfc24dfbab2b6d0003

See more details on using hashes here.

File details

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

File metadata

  • Download URL: afs_server-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 84.0 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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98f734c95061bf9a0557063e1335cc8eb7b7e97d58784e2a95c403b8f9d6eeba
MD5 2e15a2a872ef7d7a15752532eaaf4dda
BLAKE2b-256 937e42ce117c497890425180babf412585b5c786a56116b2df0f54e435541ecc

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