objectstore-mcp 2.6.0__tar.gz → 2.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. {objectstore_mcp-2.6.0/objectstore_mcp.egg-info → objectstore_mcp-2.6.2}/PKG-INFO +204 -155
  2. objectstore_mcp-2.6.0/PKG-INFO → objectstore_mcp-2.6.2/README.md +199 -181
  3. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/guard.py +52 -1
  4. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/kg_ingest.py +12 -2
  5. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/__init__.py +1 -1
  6. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/certification.json +3 -3
  7. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/objectstore.ttl +139 -179
  8. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/shapes/connector.shacl.ttl +0 -20
  9. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-bucket-administration/SKILL.md +24 -1
  10. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-business-asset-store/SKILL.md +24 -1
  11. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-data-transfer/SKILL.md +22 -1
  12. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-mcp-development/SKILL.md +21 -0
  13. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-mcp-operations/SKILL.md +21 -0
  14. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-object-operations/SKILL.md +24 -1
  15. objectstore_mcp-2.6.0/README.md → objectstore_mcp-2.6.2/objectstore_mcp.egg-info/PKG-INFO +230 -150
  16. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp.egg-info/SOURCES.txt +2 -0
  17. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp.egg-info/requires.txt +4 -4
  18. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/pyproject.toml +5 -5
  19. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_kg_ingest.py +15 -9
  20. objectstore_mcp-2.6.2/tests/test_last_access_operation.py +50 -0
  21. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_objectstore_mcp_validation.py +5 -4
  22. objectstore_mcp-2.6.2/tests/test_ontology_one_schema.py +56 -0
  23. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_safety.py +21 -26
  24. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_surface_ontology.py +9 -5
  25. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/LICENSE +0 -0
  26. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/__init__.py +0 -0
  27. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/__main__.py +0 -0
  28. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/api/__init__.py +0 -0
  29. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/api_client.py +0 -0
  30. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/auth.py +0 -0
  31. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/config.py +0 -0
  32. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/connector_contracts.py +0 -0
  33. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/connector_sources.py +0 -0
  34. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/mcp/__init__.py +0 -0
  35. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/mcp/mcp_objectstore.py +0 -0
  36. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/mcp_config.json +0 -0
  37. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/mcp_server.py +0 -0
  38. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/objectstore_response_models.py +0 -0
  39. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/fixtures/records.json +0 -0
  40. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/mappings/source.yaml +0 -0
  41. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/ontology/migrations/manifest.json +0 -0
  42. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/prompts/objectstore-operator.json +0 -0
  43. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/prompts/objectstore-storage-administrator.json +0 -0
  44. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/prompts/objectstore_asset_librarian.json +0 -0
  45. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-bucket-administration/WORKFLOW.md +0 -0
  46. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-business-asset-store/WORKFLOW.md +0 -0
  47. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-data-transfer/WORKFLOW.md +0 -0
  48. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-mcp-operations/agents/openai.yaml +0 -0
  49. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-mcp-operations/references/catalog.md +0 -0
  50. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp/skills/objectstore-object-operations/WORKFLOW.md +0 -0
  51. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp.egg-info/dependency_links.txt +0 -0
  52. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp.egg-info/entry_points.txt +0 -0
  53. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/objectstore_mcp.egg-info/top_level.txt +0 -0
  54. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/setup.cfg +0 -0
  55. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_api_wrapper.py +0 -0
  56. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_auth.py +0 -0
  57. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_config.py +0 -0
  58. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_identity_context_scoping.py +0 -0
  59. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_init_dynamics.py +0 -0
  60. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_publication_workflow.py +0 -0
  61. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_scion_sdk_0_10_imports.py +0 -0
  62. {objectstore_mcp-2.6.0 → objectstore_mcp-2.6.2}/tests/test_sdk_backends.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: objectstore-mcp
3
- Version: 2.6.0
3
+ Version: 2.6.2
4
4
  Summary: Object storage (S3/MinIO/R2, Google Cloud Storage, Azure Blob, local filesystem) API + MCP Server for Agentic AI!
5
5
  Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
@@ -12,14 +12,14 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: scion-sdk[mcp]<0.11,>=0.10.2
15
+ Requires-Dist: scion-sdk[mcp]<0.15,>=0.14.1
16
16
  Requires-Dist: python-dotenv>=1.2.4
17
17
  Provides-Extra: s3
18
- Requires-Dist: scion-sdk[storage-s3]<0.11,>=0.10.2; extra == "s3"
18
+ Requires-Dist: scion-sdk[storage-s3]<0.15,>=0.14.1; extra == "s3"
19
19
  Provides-Extra: gcs
20
- Requires-Dist: scion-sdk[storage-gcs]<0.11,>=0.10.2; extra == "gcs"
20
+ Requires-Dist: scion-sdk[storage-gcs]<0.15,>=0.14.1; extra == "gcs"
21
21
  Provides-Extra: azure
22
- Requires-Dist: scion-sdk[storage-azure]<0.11,>=0.10.2; extra == "azure"
22
+ Requires-Dist: scion-sdk[storage-azure]<0.15,>=0.14.1; extra == "azure"
23
23
  Provides-Extra: all
24
24
  Requires-Dist: objectstore-mcp[azure,gcs,s3]; extra == "all"
25
25
  Provides-Extra: test
@@ -30,39 +30,46 @@ Requires-Dist: pytest-cov>=7.1.0; extra == "test"
30
30
  Dynamic: license-file
31
31
 
32
32
  # ObjectStore MCP
33
- ## Multi-Backend Object Storage | MCP Server
33
+ ## Multi-Backend Object Storage | MCP
34
34
 
35
35
  ![PyPI - Version](https://img.shields.io/pypi/v/objectstore-mcp)
36
36
  ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
37
+ ![PyPI - Downloads](https://img.shields.io/pypi/dd/objectstore-mcp)
38
+ ![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/objectstore-mcp)
39
+ ![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/objectstore-mcp)
40
+ ![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/objectstore-mcp)
37
41
  ![PyPI - License](https://img.shields.io/pypi/l/objectstore-mcp)
42
+ ![GitHub](https://img.shields.io/github/license/Knuckles-Team/objectstore-mcp)
43
+ ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/objectstore-mcp)
44
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/objectstore-mcp)
45
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/objectstore-mcp)
46
+ ![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/objectstore-mcp)
47
+ ![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/objectstore-mcp)
48
+ ![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/objectstore-mcp)
49
+ ![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/objectstore-mcp)
50
+ ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/objectstore-mcp)
51
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/objectstore-mcp)
52
+ ![PyPI - Implementation](https://img.shields.io/pypi/implementation/objectstore-mcp)
53
+
54
+ > **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
55
+ > and A2A agent interfaces are maintained in the
56
+ > [official documentation](https://knuckles-team.github.io/objectstore-mcp/).
57
+
58
+ ---
59
+
60
+ ## Overview
38
61
 
39
62
  The object-storage connector for the scion-sdk fleet: **one MCP tool
40
63
  surface over S3 and S3-compatible stores (MinIO, Cloudflare R2), Google Cloud
41
64
  Storage, Azure Blob Storage, and a zero-infra local-filesystem backend**.
42
65
 
43
- > **Documentation** — Installation, deployment, and usage across the API, CLI, and
44
- > MCP interfaces are maintained in [`docs/`](docs/index.md).
45
-
46
- ## Table of Contents
47
-
48
- - [Overview](#overview)
49
- - [What it provides](#what-it-provides)
50
- - [Backend × capability matrix](#backend--capability-matrix)
51
- - [Installation](#installation)
52
- - [Configuration (environment)](#configuration-environment)
53
- - [Usage](#usage)
54
- - [MCP config](#mcp-config)
55
- - [Docker deployment](#docker-deployment)
56
- - [Development](#development)
57
- - [License](#license)
58
-
59
- ## Overview
60
-
61
66
  `objectstore-mcp` wraps heterogeneous object stores behind one typed,
62
67
  (`objectstore-agent`). Safety caps, explicit buckets, and dry-run-by-default
63
68
  batch deletes are enforced uniformly in the tool layer, in either case of backend.
64
69
 
65
- ## What it provides
70
+ ---
71
+
72
+ ## Key Features
66
73
 
67
74
  - **A multi-backend store abstraction** (`objectstore_mcp.api`,
68
75
  CONCEPT:OB-OS.governance.every-provider-implements-same) — every provider implements the same
@@ -82,7 +89,11 @@ batch deletes are enforced uniformly in the tool layer, in either case of backen
82
89
  that are prefix-scoped, capped, and dry-run by default, and bucket deletes
83
90
  that are empty-only and disabled unless explicitly enabled.
84
91
 
85
- ## Available MCP Tools
92
+ ---
93
+
94
+ ## MCP
95
+
96
+ ### Available MCP Tools
86
97
 
87
98
  <!-- This table is auto-generated by `python -m scion_sdk.mcp.readme_tools` — do not edit by hand. -->
88
99
 
@@ -130,134 +141,7 @@ take an optional `store`.
130
141
  _32 tools._
131
142
  <!-- MCP-TOOLS-TABLE:END -->
132
143
 
133
- ## Backend × capability matrix
134
-
135
- | Capability | filesystem | s3 / minio / r2 | gcs | azure |
136
- |---|---|---|---|---|
137
- | buckets (list/create/delete/exists/info) | yes | yes | yes | yes |
138
- | objects (list/head/get/put/copy/move/delete) | yes | yes | yes | yes |
139
- | prefix + delimiter listing, pagination | yes | yes | yes | yes |
140
- | user metadata get/set | yes | yes | yes | yes |
141
- | presigned URLs | no | yes | yes (needs service-account key) | yes (needs account key) |
142
- | bucket location | no | yes | yes | no |
143
-
144
- ## Installation
145
-
146
- Pick the extra that matches what the operator want to run (provider extras are additive):
147
-
148
- | Extra | Installs | Use when |
149
- |-------|----------|----------|
150
- | `objectstore-mcp[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
151
- | `objectstore-mcp[all]` | Everything (`mcp` + `agent` + `s3` + `gcs` + `azure` + `logfire`) | Development / both surfaces |
152
-
153
- ```bash
154
- pip install objectstore-mcp # core: local filesystem backend only
155
- pip install objectstore-mcp[mcp] # connector-focused MCP server (FastMCP/FastAPI)
156
- pip install objectstore-mcp[mcp,s3] # + boto3 (S3, MinIO, R2)
157
- pip install objectstore-mcp[mcp,gcs] # + google-cloud-storage
158
- pip install objectstore-mcp[mcp,azure] # + azure-storage-blob
159
- pip install objectstore-mcp[all] # everything (MCP + agent + all providers)
160
- ```
161
-
162
- ### Container images (`:mcp`)
163
-
164
- One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
165
-
166
- | Image tag | Build target | Contents | Entrypoint |
167
- |-----------|--------------|----------|------------|
168
- | `example/objectstore-mcp:mcp` | `--target mcp` | `objectstore-mcp[mcp]` — **connector-focused**, includes `medulla[full]`; no model-orchestration stack | `objectstore-mcp` |
169
-
170
- ```bash
171
- docker build --target mcp -t example/objectstore-mcp:mcp docker/ # connector-focused MCP server
172
- ```
173
-
174
- Or pull a prebuilt image:
175
-
176
- ```bash
177
- docker pull example/objectstore-mcp:mcp # connector-focused MCP server
178
- docker pull example/objectstore-mcp@sha256:<digest> # agent runtime (default)
179
- ```
180
-
181
- > The `:mcp` tag is the **MCP-serving image** (built from
182
- > `docker/Dockerfile --target mcp`, installing `objectstore-mcp[mcp]`). The default
183
- > which also bundles the Pydantic AI agent and the medulla engine — use it
184
- > when the operator run `objectstore-agent` (the agent), not just the MCP server.
185
-
186
- ### Knowledge-graph database (`medulla`)
187
-
188
- Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
189
- deployments can use the bundled engine. For production or shared state, run
190
- **medulla as a dedicated database service** and configure the runtime to use it.
191
- Deployment recipes (single-node + Raft HA), connection configuration, and architecture
192
- diagrams are documented in the
193
- [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
194
-
195
- ## Configuration (environment)
196
-
197
- | Var | Default | Meaning |
198
- |---|---|---|
199
- | `OBJECTSTORE_STORES` | _(empty)_ | JSON: store name → `{backend, bucket?, endpoint?, region?, root?, project?, presign_endpoint?, allowed_private_hosts?, credentials?}` |
200
- | `OBJECTSTORE_DEFAULT_STORE` | first configured store, else `local` | Store used when a tool call omits `store` |
201
- | `OBJECTSTORE_FS_ROOT` | `~/.local/share/objectstore-mcp` | Root of the implicit `local` filesystem store |
202
- | `OBJECTSTORE_MAX_GET_BYTES` | `10485760` (10 MiB) | Cap on `objects get` |
203
- | `OBJECTSTORE_MAX_PUT_BYTES` | `10485760` (10 MiB) | Cap on `objects put` |
204
- | `OBJECTSTORE_MAX_TRANSFER_BYTES` | `104857600` (100 MiB) | Cap per transfer (single or batch total) |
205
- | `OBJECTSTORE_MAX_BATCH_KEYS` | `100` | Cap on batch delete / dir transfer key counts |
206
- | `OBJECTSTORE_MAX_LIST_KEYS` | `1000` | Cap on one listing page |
207
- | `OBJECTSTORETOOL` | `True` | Register the objectstore tool set |
208
- | `HOST` / `PORT` / `TRANSPORT` | `0.0.0.0` / `8000` / `stdio` | MCP server bind + transport (`stdio`, `streamable-http`, `sse`) |
209
- | `AUTH_TYPE` | `none` | MCP auth mode (container image) |
210
- | `ENABLE_OTEL` | `True` | OTEL/Langfuse telemetry export |
211
- | `EUNOMIA_TYPE` / `EUNOMIA_POLICY_FILE` | `none` / `mcp_policies.json` | Eunomia access-governance middleware |
212
- | `MCP_URL` | _(empty)_ | MCP endpoint the A2A agent connects to |
213
-
214
- Backends come from the scion-sdk storage layer (`scion_sdk.storage`). Each
215
- store names its secrets in a `credentials` map of secret references
216
- (`env://NAME` or `openbao://path#key`) — a literal value is refused. Accepted
217
- keys: S3 `access_key_id`, `secret_access_key`, `session_token`; GCS
218
- `service_account_json`; Azure `connection_string`; WebDAV `username`,
219
- `password`. No ambient provider credential chain is consulted.
220
-
221
- ### Example store registry
222
-
223
- ```json
224
- {
225
- "media": {"backend": "s3", "bucket": "media-prod", "region": "us-east-1",
226
- "credentials": {"access_key_id": "env://MEDIA_KEY_ID", "secret_access_key": "env://MEDIA_SECRET"}},
227
- "objects": {"backend": "s3", "endpoint": "https://objects.example.invalid",
228
- "credentials": {"access_key_id": "env://OBJ_KEY_ID", "secret_access_key": "openbao://kv/objects#secret"}},
229
- "reports": {"backend": "gcs", "bucket": "acme-reports"},
230
- "archive": {"backend": "azure", "bucket": "archive", "credentials": {"connection_string": "env://ARCHIVE_CONN"}},
231
- "share": {"backend": "webdav", "endpoint": "https://files.example.invalid/dav/files/svc",
232
- "credentials": {"username": "env://SHARE_USER", "password": "env://SHARE_PASS"}},
233
- "scratch": {"backend": "filesystem", "root": "/srv/scratch-store"}
234
- }
235
- ```
236
-
237
- ## Usage
238
-
239
- ```bash
240
- objectstore-mcp # stdio
241
- objectstore-mcp --transport streamable-http --host 0.0.0.0 --port 8000
242
- ```
243
-
244
- Example tool calls (any MCP client):
245
-
246
- ```jsonc
247
- // Write then read a text object on the zero-infra local store
248
- {"tool": "objectstore_create_bucket", "arguments": {"bucket": "notes"}}
249
- {"tool": "objectstore_put_object", "arguments": {"bucket": "notes", "key": "todo.md", "data": "- ship it"}}
250
- {"tool": "objectstore_get_object", "arguments": {"bucket": "notes", "key": "todo.md"}}
251
-
252
- // Preview then execute a prefix-scoped delete on a named S3 store
253
- {"tool": "objectstore_delete_objects_by_prefix", "arguments": {"store": "media", "bucket": "media-prod", "prefix": "tmp/"}}
254
- {"tool": "objectstore_delete_objects_by_prefix", "arguments": {"store": "media", "bucket": "media-prod", "prefix": "tmp/", "dry_run": false}}
255
-
256
- // Expire scratch objects after 7 days
257
- {"tool": "objectstore_put_bucket_lifecycle", "arguments": {"store": "media", "bucket": "media-prod", "rules": [{"id": "scratch-7d", "prefix": "scratch/", "expiration_days": 7}]}}
258
- ```
259
-
260
- ## MCP config
144
+ ### MCP config
261
145
 
262
146
  > **Install the connector-focused `[mcp]` extra.** Examples use `objectstore-mcp[mcp]` to add
263
147
  > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
@@ -299,6 +183,21 @@ the detailed transport contract.
299
183
  `MCP_ALLOWED_HOSTS` in `AgentConfig`.
300
184
  <!-- END GENERATED: additional-deployment-options -->
301
185
 
186
+ ---
187
+
188
+ ## Backend × capability matrix
189
+
190
+ | Capability | filesystem | s3 / minio / r2 | gcs | azure |
191
+ |---|---|---|---|---|
192
+ | buckets (list/create/delete/exists/info) | yes | yes | yes | yes |
193
+ | objects (list/head/get/put/copy/move/delete) | yes | yes | yes | yes |
194
+ | prefix + delimiter listing, pagination | yes | yes | yes | yes |
195
+ | user metadata get/set | yes | yes | yes | yes |
196
+ | presigned URLs | no | yes | yes (needs service-account key) | yes (needs account key) |
197
+ | bucket location | no | yes | yes | no |
198
+
199
+ ---
200
+
302
201
  ## Docker deployment
303
202
 
304
203
  ```bash
@@ -309,6 +208,8 @@ curl -s http://localhost:8000/health # {"status":"OK"}
309
208
  Both services read configuration from `../.env` (copy
310
209
  [`.env.example`](.env.example)); see [`docs/deployment.md`](docs/deployment.md).
311
210
 
211
+ ---
212
+
312
213
  ## Development
313
214
 
314
215
  ```bash
@@ -320,14 +221,57 @@ pre-commit run --all-files
320
221
 
321
222
  See [`docs/`](docs/) for architecture, concepts, and deployment details.
322
223
 
224
+ ---
225
+
323
226
  ## License
324
227
 
325
228
  MIT — see [LICENSE](LICENSE).
326
229
 
327
-
230
+ ---
328
231
 
329
232
  ## Environment Variables
330
233
 
234
+ | Var | Default | Meaning |
235
+ |---|---|---|
236
+ | `OBJECTSTORE_STORES` | _(empty)_ | JSON: store name → `{backend, bucket?, endpoint?, region?, root?, project?, presign_endpoint?, allowed_private_hosts?, credentials?}` |
237
+ | `OBJECTSTORE_DEFAULT_STORE` | first configured store, else `local` | Store used when a tool call omits `store` |
238
+ | `OBJECTSTORE_FS_ROOT` | `~/.local/share/objectstore-mcp` | Root of the implicit `local` filesystem store |
239
+ | `OBJECTSTORE_MAX_GET_BYTES` | `10485760` (10 MiB) | Cap on `objects get` |
240
+ | `OBJECTSTORE_MAX_PUT_BYTES` | `10485760` (10 MiB) | Cap on `objects put` |
241
+ | `OBJECTSTORE_MAX_TRANSFER_BYTES` | `104857600` (100 MiB) | Cap per transfer (single or batch total) |
242
+ | `OBJECTSTORE_MAX_BATCH_KEYS` | `100` | Cap on batch delete / dir transfer key counts |
243
+ | `OBJECTSTORE_MAX_LIST_KEYS` | `1000` | Cap on one listing page |
244
+ | `OBJECTSTORETOOL` | `True` | Register the objectstore tool set |
245
+ | `HOST` / `PORT` / `TRANSPORT` | `0.0.0.0` / `8000` / `stdio` | MCP server bind + transport (`stdio`, `streamable-http`, `sse`) |
246
+ | `AUTH_TYPE` | `none` | MCP auth mode (container image) |
247
+ | `ENABLE_OTEL` | `True` | OTEL/Langfuse telemetry export |
248
+ | `EUNOMIA_TYPE` / `EUNOMIA_POLICY_FILE` | `none` / `mcp_policies.json` | Eunomia access-governance middleware |
249
+ | `MCP_URL` | _(empty)_ | MCP endpoint the A2A agent connects to |
250
+
251
+ Backends come from the scion-sdk storage layer (`scion_sdk.storage`). Each
252
+ store names its secrets in a `credentials` map of secret references
253
+ (`env://NAME` or `openbao://path#key`) — a literal value is refused. Accepted
254
+ keys: S3 `access_key_id`, `secret_access_key`, `session_token`; GCS
255
+ `service_account_json`; Azure `connection_string`; WebDAV `username`,
256
+ `password`. No ambient provider credential chain is consulted.
257
+
258
+ ### Example store registry
259
+
260
+ ```json
261
+ {
262
+ "media": {"backend": "s3", "bucket": "media-prod", "region": "us-east-1",
263
+ "credentials": {"access_key_id": "env://MEDIA_KEY_ID", "secret_access_key": "env://MEDIA_SECRET"}},
264
+ "objects": {"backend": "s3", "endpoint": "https://objects.example.invalid",
265
+ "credentials": {"access_key_id": "env://OBJ_KEY_ID", "secret_access_key": "openbao://kv/objects#secret"}},
266
+ "reports": {"backend": "gcs", "bucket": "acme-reports"},
267
+ "archive": {"backend": "azure", "bucket": "archive", "credentials": {"connection_string": "env://ARCHIVE_CONN"}},
268
+ "share": {"backend": "webdav", "endpoint": "https://files.example.invalid/dav/files/svc",
269
+ "credentials": {"username": "env://SHARE_USER", "password": "env://SHARE_PASS"}},
270
+ "scratch": {"backend": "filesystem", "root": "/srv/scratch-store"}
271
+ }
272
+ ```
273
+
274
+
331
275
  <!-- ENV-VARS-TABLE:START -->
332
276
 
333
277
  #### Package environment variables
@@ -383,6 +327,111 @@ MIT — see [LICENSE](LICENSE).
383
327
  _27 package + 15 inherited variable(s). Auto-generated from `.env.example` + the shared scion-sdk set — do not edit._
384
328
  <!-- ENV-VARS-TABLE:END -->
385
329
 
330
+ ---
331
+
332
+ ## Usage
333
+
334
+ ```bash
335
+ objectstore-mcp # stdio
336
+ objectstore-mcp --transport streamable-http --host 0.0.0.0 --port 8000
337
+ ```
338
+
339
+ Example tool calls (any MCP client):
340
+
341
+ ```jsonc
342
+ // Write then read a text object on the zero-infra local store
343
+ {"tool": "objectstore_create_bucket", "arguments": {"bucket": "notes"}}
344
+ {"tool": "objectstore_put_object", "arguments": {"bucket": "notes", "key": "todo.md", "data": "- ship it"}}
345
+ {"tool": "objectstore_get_object", "arguments": {"bucket": "notes", "key": "todo.md"}}
346
+
347
+ // Preview then execute a prefix-scoped delete on a named S3 store
348
+ {"tool": "objectstore_delete_objects_by_prefix", "arguments": {"store": "media", "bucket": "media-prod", "prefix": "tmp/"}}
349
+ {"tool": "objectstore_delete_objects_by_prefix", "arguments": {"store": "media", "bucket": "media-prod", "prefix": "tmp/", "dry_run": false}}
350
+
351
+ // Expire scratch objects after 7 days
352
+ {"tool": "objectstore_put_bucket_lifecycle", "arguments": {"store": "media", "bucket": "media-prod", "rules": [{"id": "scratch-7d", "prefix": "scratch/", "expiration_days": 7}]}}
353
+ ```
354
+
355
+ ---
356
+
357
+ ## Installation
358
+
359
+ Pick the extra that matches what the operator want to run (provider extras are additive):
360
+
361
+ | Extra | Installs | Use when |
362
+ |-------|----------|----------|
363
+ | `objectstore-mcp[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
364
+ | `objectstore-mcp[all]` | Everything (`mcp` + `agent` + `s3` + `gcs` + `azure` + `logfire`) | Development / both surfaces |
365
+
366
+ ```bash
367
+ pip install objectstore-mcp # core: local filesystem backend only
368
+ pip install objectstore-mcp[mcp] # connector-focused MCP server (FastMCP/FastAPI)
369
+ pip install objectstore-mcp[mcp,s3] # + boto3 (S3, MinIO, R2)
370
+ pip install objectstore-mcp[mcp,gcs] # + google-cloud-storage
371
+ pip install objectstore-mcp[mcp,azure] # + azure-storage-blob
372
+ pip install objectstore-mcp[all] # everything (MCP + agent + all providers)
373
+ ```
374
+
375
+ ### Container images (`:mcp`)
376
+
377
+ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
378
+
379
+ | Image tag | Build target | Contents | Entrypoint |
380
+ |-----------|--------------|----------|------------|
381
+ | `example/objectstore-mcp:mcp` | `--target mcp` | `objectstore-mcp[mcp]` — **connector-focused**, includes `medulla[full]`; no model-orchestration stack | `objectstore-mcp` |
382
+
383
+ ```bash
384
+ docker build --target mcp -t example/objectstore-mcp:mcp docker/ # connector-focused MCP server
385
+ ```
386
+
387
+ Or pull a prebuilt image:
388
+
389
+ ```bash
390
+ docker pull example/objectstore-mcp:mcp # connector-focused MCP server
391
+ docker pull example/objectstore-mcp@sha256:<digest> # agent runtime (default)
392
+ ```
393
+
394
+ > The `:mcp` tag is the **MCP-serving image** (built from
395
+ > `docker/Dockerfile --target mcp`, installing `objectstore-mcp[mcp]`). The default
396
+ > which also bundles the Pydantic AI agent and the medulla engine — use it
397
+ > when the operator run `objectstore-agent` (the agent), not just the MCP server.
398
+
399
+ ### Knowledge-graph database (`medulla`)
400
+
401
+ Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
402
+ deployments can use the bundled engine. For production or shared state, run
403
+ **medulla as a dedicated database service** and configure the runtime to use it.
404
+ Deployment recipes (single-node + Raft HA), connection configuration, and architecture
405
+ diagrams are documented in the
406
+ [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
407
+
408
+ ---
409
+
410
+ ## Documentation
411
+
412
+ The complete documentation is published as the
413
+ [official documentation site](https://knuckles-team.github.io/objectstore-mcp/) and is
414
+ the recommended reference for installation, deployment, and day-to-day operation.
415
+
416
+ ---
417
+
418
+ ## Repository Owners
419
+
420
+ <img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
421
+
422
+ ![GitHub followers](https://img.shields.io/github/followers/example)
423
+ ![GitHub User's stars](https://img.shields.io/github/stars/example)
424
+
425
+ ---
426
+
427
+ ## Contribute
428
+
429
+ Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
430
+ - Format code using `ruff format .`
431
+ - Lint code using `ruff check .`
432
+ - Validate type-safety with `mypy .`
433
+ - Run test suites using `pytest`
434
+
386
435
  <!-- GOVERNED-CAPABILITY:START -->
387
436
  ## Governed capability contract
388
437