-
Notifications
You must be signed in to change notification settings - Fork 434
[Onboard][Part Two] Mcp Server for Azure DocumentDB (Database) #2048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
1edc300
1f5ff7e
2442f7d
ba35d97
08efc55
2c11d8c
383acaf
9599980
bb42d4a
2fe4f1c
6088353
c6fe9f7
225d9a3
b084426
6bd0d18
08d80c5
9e0b67d
ccea698
cdbc996
5ac4fc9
8dd8014
e166cef
14dec4c
25edd6e
e9850fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| pr: 1968 | ||
| changes: | ||
| - section: "Features Added" | ||
| description: "Added mcp tools for managing Azure DocumentDB (with MongoDB compatibility) index" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| changes: | ||
| - section: "Features Added" | ||
| description: "Added mcp tools for managing Azure DocumentDB (with MongoDB compatibility) database" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1694,6 +1694,57 @@ azmcp deviceregistry namespace list --subscription <subscription> \ | |||||
| [--resource-group <resource-group>] | ||||||
| ``` | ||||||
|
|
||||||
| ### Azure DocumentDB (with MongoDB compatibility) Operations | ||||||
|
|
||||||
| ```bash | ||||||
| # List all indexes on a collection | ||||||
| # ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb index list indexes --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Don't need Also, optionally, call this command |
||||||
| --db-name <db-name> \ | ||||||
| --collection-name <collection-name> | ||||||
|
|
||||||
| # Create an index on a collection | ||||||
| # ✅ Destructive | ❌ Idempotent | ❌ OpenWorld | ❌ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb index create index --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Same as above. |
||||||
| --db-name <db-name> \ | ||||||
| --collection-name <collection-name> \ | ||||||
| --keys <json-index-keys> \ | ||||||
| [--options <json-index-options>] | ||||||
|
|
||||||
| # Drop an index from a collection | ||||||
| # ✅ Destructive | ❌ Idempotent | ❌ OpenWorld | ❌ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb index drop index --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| --db-name <db-name> \ | ||||||
| --collection-name <collection-name> \ | ||||||
| --index-name <index-name> | ||||||
|
|
||||||
| # Get index statistics for a collection | ||||||
| # ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb index index stats --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| --db-name <db-name> \ | ||||||
| --collection-name <collection-name> | ||||||
|
|
||||||
| # Get current DocumentDB operations | ||||||
| # ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb index current ops --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there aren't other concepts that will be put in the
Suggested change
|
||||||
| [--ops <json-filter>] | ||||||
|
|
||||||
| # List all databases or inspect a single database | ||||||
| # ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb database list databases --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Given this command already has |
||||||
| [--db-name <db-name>] | ||||||
|
|
||||||
| # Get statistics for a database | ||||||
| # ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb database db stats --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Don't really need |
||||||
| --db-name <db-name> | ||||||
|
|
||||||
| # Drop a database | ||||||
| # ✅ Destructive | ❌ Idempotent | ❌ OpenWorld | ❌ ReadOnly | ❌ Secret | ❌ LocalRequired | ||||||
| azmcp documentdb database drop database --connection-string <connection-string> \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just use
Suggested change
|
||||||
| --db-name <db-name> | ||||||
| ``` | ||||||
|
|
||||||
| ### Azure Event Grid Operations | ||||||
|
|
||||||
| ```bash | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System.Runtime.CompilerServices; | ||
|
|
||
| [assembly: InternalsVisibleTo("Azure.Mcp.Tools.DocumentDb.UnitTests")] |
Uh oh!
There was an error while loading. Please reload this page.