memgres 0.7.0__tar.gz → 0.7.1__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.
- {memgres-0.7.0 → memgres-0.7.1}/PKG-INFO +1 -1
- {memgres-0.7.0 → memgres-0.7.1}/memgres/_version.py +1 -1
- {memgres-0.7.0 → memgres-0.7.1}/memgres/mcp_server.py +13 -2
- {memgres-0.7.0 → memgres-0.7.1}/memgres.egg-info/PKG-INFO +1 -1
- {memgres-0.7.0 → memgres-0.7.1}/LICENSE +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/README.md +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/__init__.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/admin.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/admin_cli.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/blame.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/bootstrap.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/config.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/delimiters.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/diffing.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/embed_worker.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/embeddings.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/healthcheck.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/identity.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/indexing.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/info.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/lines.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/links.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0001_core.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0002_identity.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0003_history_author.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0004_title.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0005_chunk_index.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0006_reader_floor.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0007_embed_retry.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0008_service_roles.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0009_create_namespace_right.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0010_namespace_alias.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0011_drop_default_namespace.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0012_user_profile.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0013_hash_version.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0014_access_request_no_fk.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0015_normalize_tags.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0016_valid_at.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0017_memory_link.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0018_links_built.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0019_memory_usage.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/migrations/0020_memory_usage_no_fk.sql +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/periodic.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/reembed.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/relink.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/schema.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/search.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/segments.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/server.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/store.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/tags.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/vector/__init__.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/vector/base.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/vector/pgvector.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/vector/qdrant.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres/worker.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres.egg-info/SOURCES.txt +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres.egg-info/dependency_links.txt +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres.egg-info/entry_points.txt +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres.egg-info/requires.txt +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/memgres.egg-info/top_level.txt +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/pyproject.toml +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/setup.cfg +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_blame_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_chunk_index.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_claim_and_reembed.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_config.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_diffing.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_embed_worker.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_embeddings.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_healthcheck.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_identity_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_lexical_match.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_limits.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_links.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_list.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_mcp_admin_tools.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_mcp_http_transport.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_mcp_instructions.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_mcp_recall_schema.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_mcp_tool_visibility.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_migration_upgrade.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_multi_space_search.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_path_addressing.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_qdrant_ca.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_qdrant_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_replace_build.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_require_title.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_retention.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_roles_bootstrap.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_search_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_security_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_segments.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_segments_store.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_server_info.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_server_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_snippets.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_store_integration.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_tags.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_usage.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_valid_at.py +0 -0
- {memgres-0.7.0 → memgres-0.7.1}/tests/test_write_ergonomics.py +0 -0
|
@@ -47,8 +47,19 @@ Spaces = Optional[Union[str, List[str]]]
|
|
|
47
47
|
|
|
48
48
|
# The MCP `initialize` response carries a server-side `instructions` string; a
|
|
49
49
|
# client that honors it (e.g. Claude Code) loads it ONCE at connect, so it guides
|
|
50
|
-
# the model without inflating every tool response.
|
|
51
|
-
|
|
50
|
+
# the model without inflating every tool response.
|
|
51
|
+
#
|
|
52
|
+
# A GUARDRAIL, not a target. The real cost of a long instruction is not the tokens
|
|
53
|
+
# — it is loaded once, and 4 KB is well under a thousand of them — but that it sits
|
|
54
|
+
# in the system prompt and is re-read every turn: a rulebook is followed less
|
|
55
|
+
# reliably the more it says. Keep the always-true rules inline and point at a
|
|
56
|
+
# memory for anything situational; the store the agent is being told about is
|
|
57
|
+
# itself the place for depth.
|
|
58
|
+
#
|
|
59
|
+
# Counted in BYTES, which matters more than it looks: non-Latin text costs two
|
|
60
|
+
# bytes per character, so the same rulebook in Russian fits half as much. 2048 was
|
|
61
|
+
# too tight for a bilingual deployment to say what it had to.
|
|
62
|
+
MCP_INSTRUCTION_MAX_BYTES = 4096
|
|
52
63
|
|
|
53
64
|
|
|
54
65
|
# ─── what each tool needs before it is worth showing ─────────────────────────
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|