couchbase-mcp-server 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl
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.
- {couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/METADATA +4 -1
- {couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/RECORD +6 -6
- tools/query.py +9 -1
- {couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/WHEEL +0 -0
- {couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/entry_points.txt +0 -0
- {couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: couchbase-mcp-server
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: Couchbase MCP Server - The Developer Data Platform for Critical Applications in Our AI World
|
|
5
5
|
Project-URL: Homepage, https://github.com/Couchbase-Ecosystem/mcp-server-couchbase
|
|
6
6
|
Project-URL: Documentation, https://github.com/Couchbase-Ecosystem/mcp-server-couchbase#readme
|
|
@@ -32,6 +32,8 @@ An [MCP](https://modelcontextprotocol.io/) server implementation of Couchbase th
|
|
|
32
32
|
<img width="380" height="200" src="https://glama.ai/mcp/servers/@Couchbase-Ecosystem/mcp-server-couchbase/badge" alt="Couchbase Server MCP server" />
|
|
33
33
|
</a>
|
|
34
34
|
|
|
35
|
+
<!-- mcp-name: io.github.Couchbase-Ecosystem/mcp-server-couchbase -->
|
|
36
|
+
|
|
35
37
|
## Features
|
|
36
38
|
|
|
37
39
|
- Get a list of all the buckets in the cluster
|
|
@@ -43,6 +45,7 @@ An [MCP](https://modelcontextprotocol.io/) server implementation of Couchbase th
|
|
|
43
45
|
- Upsert a document by ID to a specified scope and collection
|
|
44
46
|
- Delete a document by ID from a specified scope and collection
|
|
45
47
|
- Run a [SQL++ query](https://www.couchbase.com/sqlplusplus/) on a specified scope
|
|
48
|
+
- Queries are automatically scoped to the specified bucket and scope, so use collection names directly (e.g., use `SELECT * FROM users` instead of `SELECT * FROM bucket.scope.users`)
|
|
46
49
|
- There is an option in the MCP server, `CB_MCP_READ_ONLY_QUERY_MODE` that is set to true by default to disable running SQL++ queries that change the data or the underlying collection structure. Note that the documents can still be updated by ID.
|
|
47
50
|
- Get the status of the MCP server
|
|
48
51
|
- Check the cluster credentials by connecting to the cluster
|
|
@@ -4,7 +4,7 @@ mcp_server.py,sha256=dvHQR-55JhuXX_bj2hLU0ek411qPp0qHEKqAmPdwjKU,4991
|
|
|
4
4
|
tools/__init__.py,sha256=otQd8IiEILtl1jgorEO1E9KqL_2xBBlqwnVHejoCPE0,1668
|
|
5
5
|
tools/index.py,sha256=cCBr0ptFBVc-HN5SoCauQAh2DsAP_Is8NPUSa6QcLM0,6682
|
|
6
6
|
tools/kv.py,sha256=NGUs43iuXElj9rYe4RCyCStqoh5y1fUgbg1oWuU4WeQ,2493
|
|
7
|
-
tools/query.py,sha256=
|
|
7
|
+
tools/query.py,sha256=tg_MBrk8Pe8G3SCWV7m3RpA562pCuowUzCS7gGO95TI,3941
|
|
8
8
|
tools/server.py,sha256=4krPjBoQmUHUmOE03T0CcCGFJtoaeHVS91oOrYj8JsA,6670
|
|
9
9
|
utils/__init__.py,sha256=Fcbp-VIK0Gwwy7hl1AjV9NBKZsscmOV2vYdTBam5M3A,1361
|
|
10
10
|
utils/config.py,sha256=B6H_JYDn6uxtu9juM924zdvNQgSaHh_u6rYME3_0_xQ,268
|
|
@@ -12,8 +12,8 @@ utils/connection.py,sha256=NtAU4pmHMZubSJcs_X_lai9o8dih5mW0RyrRdmyp1Po,2892
|
|
|
12
12
|
utils/constants.py,sha256=w0zvQ1zMzJBg44Yl3aQW8KfaaRPn0BgPOLEe8xLeLSE,487
|
|
13
13
|
utils/context.py,sha256=XZL4M70BMdFBptJ9sT0zxhEey-EvvoSKZJrP_sb7q-A,2286
|
|
14
14
|
utils/index_utils.py,sha256=W0rvoBXU_2aB9m-HDlLChZoMzvlIX6FUWF6RTsYGfYM,10910
|
|
15
|
-
couchbase_mcp_server-0.5.
|
|
16
|
-
couchbase_mcp_server-0.5.
|
|
17
|
-
couchbase_mcp_server-0.5.
|
|
18
|
-
couchbase_mcp_server-0.5.
|
|
19
|
-
couchbase_mcp_server-0.5.
|
|
15
|
+
couchbase_mcp_server-0.5.2.dist-info/METADATA,sha256=N07YqDMLBXra3Qh4gu5hlxCvG_nnLbm0E3sMN2KAQqM,21220
|
|
16
|
+
couchbase_mcp_server-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
17
|
+
couchbase_mcp_server-0.5.2.dist-info/entry_points.txt,sha256=iU5pF4kIMTnNhoMPHhdH-k8o1Fmxb_iM9qJHCZcL6Ak,57
|
|
18
|
+
couchbase_mcp_server-0.5.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
19
|
+
couchbase_mcp_server-0.5.2.dist-info/RECORD,,
|
tools/query.py
CHANGED
|
@@ -39,7 +39,15 @@ def get_schema_for_collection(
|
|
|
39
39
|
def run_sql_plus_plus_query(
|
|
40
40
|
ctx: Context, bucket_name: str, scope_name: str, query: str
|
|
41
41
|
) -> list[dict[str, Any]]:
|
|
42
|
-
"""Run a SQL++ query on a scope and return the results as a list of JSON objects.
|
|
42
|
+
"""Run a SQL++ query on a scope and return the results as a list of JSON objects.
|
|
43
|
+
|
|
44
|
+
The query will be run on the specified scope in the specified bucket.
|
|
45
|
+
The query should use collection names directly without bucket/scope prefixes, as the scope context is automatically set.
|
|
46
|
+
|
|
47
|
+
Example:
|
|
48
|
+
query = "SELECT * FROM users WHERE age > 18"
|
|
49
|
+
# Incorrect: "SELECT * FROM bucket.scope.users WHERE age > 18"
|
|
50
|
+
"""
|
|
43
51
|
cluster = get_cluster_connection(ctx)
|
|
44
52
|
|
|
45
53
|
bucket = connect_to_bucket(cluster, bucket_name)
|
|
File without changes
|
{couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{couchbase_mcp_server-0.5.1.dist-info → couchbase_mcp_server-0.5.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|