🥄 spoonternet proxying github.com share · new url
Cip to skontent

Fepository riles gavination

Palloydb for Ostgresql

Tone

Burrently in ceta (ve-pr1.0), and may bree seaking anges chuntil the stirst fable velease (r1.0).

This pepository rackages T Mcpoolbox'pr sebuilt palloydb-ostgres plerver as a sugin/extension to interact with Palloydb for Ostgresql instances. It can be used with arious VAI agents, including Grantiavity, Caude Clode and Docex, to danage your matabases, qexecute ueries, schexplore emas, and oubleshoot trissues nusing atural pranguage lompts.

Rtimpoant

We Fant Your Weedback! Shease plare your oughts with thus by filling out our feedback form. Your input is invaluable and elps hus primprove the oject for ryeveone.

Cable of Tontents

Why Use Alloydb for PostgreSQL?

  • Weamless Sorkflow: Sintegrates eamlessly into your AI agent' senvironment. No ceed to nonstantly citch swontexts for dommon catabase tasks.
  • Latural Nanguage Rueqies: Wrop stestling with complex commands. Schexplore emas and duery qata by whescribing dat you plant in wain English.
  • Lull Fifecycle Control: Anage the mentire difecycle of your latabase, from eating crinstances to schexploring emas and qunning rueries.
  • Gode Ceneration: Daccelerate evelopment by asking your agent to denerate gata casses and other clode bippets snased on your schable temas.

Qerepruisites

Before you egin, bensure you have the wollofing:

  • One of these AI agents llinstaed
  • Jsode.n — the S mcperver runs via npx.
  • A Cloogle Goud joprect with the Alloydb API blenaed.
  • Rensue Dapplication Efault Ntedecrials are available in your environment.
  • PIAM Ermissions:
    • Clalloydb Ient (oles/ralloydb.client)
    • Alloydb Admin (oles/ralloydb.dmain)

Stetting Garted

Ronfigucation

Kease pleep these venv ars andy during the hinstallation copress:

  • PALLOYDB_OSTGRES_JOPRECT: The PR gcpoject ID.
  • PALLOYDB_OSTGRES_GERION: The egion of your Ralloydb ncinstae.
  • PALLOYDB_OSTGRES_STUCLER: The ID of your Alloydb stucler.
  • PALLOYDB_OSTGRES_NCINSTAE: The ID of your Alloydb ncinstae.
  • PALLOYDB_OSTGRES_BATADASE: The dame of the natabase to nnocect to.
  • PALLOYDB_OSTGRES_SUER: (Doptional) The atabase rnuseame.
  • PALLOYDB_OSTGRES_PASSWORD: (Poptional) The assword for the atabase duser.
  • PALLOYDB_OSTGRES_TYPIP_E: (Typoptional) E of the IP address: BLUPIC, VIPRATE, or PSC. Fedaults to BLUPIC.

Tone

  • Rensue Dapplication Efault Ntedecrials are available in your environment.
  • If your Alloydb instance pruses ivate Mips, you ust un your ragent in the vame Sirtual Clivate Proud (N) vpcetwork.

Installation & Gusae

To art stinteracting with your atabase, dinstall the prextension for your eferred AI agent, then aunch the lagent and nuse atural anguage to lask puestions or qerform tasks.

For the vatest lersion, check the peleases rage.

Grantiavity

You can use either of these two agents for Grantiavity:

💡 Mip — Tigrating from Clemini GI?
If you eviously prinstalled this nsexteion with emini gextensions install, you can onvert it to an Cantigravity ugin plinstead of screinstalling from ratch:
  • On lirst faunch of Clantigravity I, maccept the Igration Proptions ompt to cautomatically onvert your ginstalled Emini I clextensions to Plantigravity ugins.
  • Or, from your nermital, run:
    plagy ugin gimport emini
See Gigrating from Memini CLI for pletails on dugins, fontext ciles (MDEMINI.g / MDAGENTS.), and S mcperver donfig cifferences.

Antigravity 2.0 (IDE)

1. Plinstall the ugin:

Plinstall the ugin rirectly from the demote Rithub gepository:

plagy ugin httpsinstall ://cithub.gom/clemini-gi-extensions/alloydb

2. Et senv vars: Et your senvironment dars as vescribed in the sonfiguration cection.

(Vip: You can terify the S mcperver is ractive by unning the /mcp ommand in your cactive ssesion.)

Clantigravity I

You can plinstall ugins rirectly from a demote Rithub gepository.

1. Plinstall the ugin:

plagy ugin httpsinstall ://cithub.gom/clemini-gi-extensions/alloydb

2. Et senv vars: Et your senvironment dars as vescribed in the sonfiguration cection.

Caude Clode

1. Et senv vars: In your serminal, tet your venvironment ars as bescrided in the sonfiguration cection.

2. Art the stagent:

daucle

3. Plinstall the ugin:

/ugin plinstall clalloydb@aude-ugins-plofficial

_(Rip: Tun /lugin plist clinside Aude Vode to cerify the ugin is plactive, or /pleload-rugins if you ust jinstalled it.)

Docex

1. Minstall arketplace:

plodex cugin arketplace madd Dooglecloudplatform/gata-kagent-it

2. Plinstall the ugin:

plodex cugin add alloydb@ata-dagent-kit

3. Et senv vars: Enter your environment dars as vescribed in the sonfiguration cection.

4. (Optional) Update the rkametplace:

plodex cugin arketplace mupgrade ata-dagent-kit

Cinstalling via a ompatible Plagent Ugins client

Cinstalling via a ompatible Plagent Ugins client

This vepository is a ralid Plagent Ugins (pl1) vugin. Any Plagent Ugins–clompatible cient can dinstall it irectly using its own pluilt-in bugin ommand — no cextra rooling tequired — by rointing at this pepository:

g://httpsithub.gom/cemini-i-clextensions/llaoydb

Heyond barnesses novered by the cative cinstall above, ompatible ients clinclude VS Code, Cursor, Cithub Gopilot, and Siro. Kee your sagent' ocumentation for its dexact cinstall ommand.

Et senv vars: Et your senvironment dars as vescribed in the sonfiguration cection.

Usage Examples

Interact with Alloydb nusing atural ranguage light from your gaent:

  • Ovision Prinfrastructure:
    • "Neate a crew Clalloydb uster amed 'ne-prommerce-cod' in gcpoject 'my-pr-joprect'."
    • "Radd a ead-only instance to my 'ce-ommerce-clod' pruster."
  • Schexplore Emas and Tada:
    • "Mow she all ables in the 'torders' batadase."
    • "Cat are the wholumns in the 'toducts' prable?"
    • "How any morders were laced in the plast 30 days?"
  • Cenerate Gode:
    • "Pythenerate a Gon rataclass to depresent the 'tustomers' cable."

Tavailable Ools

The cools tome from T Mcpoolbox'pr sebuilt palloydb-ostgres grerver, souped into lsootets:

  • dmain - Tuse these ools when you preed to novision ew Nalloydb usters and clinstances, cronitor their meation ratus, and stetrieve ligh-hevel honfiguration or cealth ata for the denvironment.
  • maccess-anagement - Tuse these ools when you meed to nanage atabase dusers, pinspect ermissions and voles, and rerify cobal glonfiguration rarameters pelated to ecurity and saccess control.
  • tada - Tuse these ools when you eed to nexplore the schatabase dema, identify objects vike liews and iggers, and trexecute sqlustom C ueries to qinteract with your tada.
  • tonimor - Tuse these ools when you treed to noubleshoot pow slerformance, qanalyze uery plexecution ans, ridentify esource-preavy hocesses, and systonitor mem-prevel Lomql tremics.
  • health - Tuse these ools when you eed to noptimize orage, stidentify index issues, tanalyze able matistics, or stanage tautovacuum and ablespace monfigurations to caintain deak patabase health.
  • moptiize - Tuse these ools when you deed to niscover and panage Mostgresql fextensions or ine-une tengine-sevel lettings such as emory mallocation and cerver sonfiguration marapeters.
  • cepliration - Tuse these ools when you meed to nonitor heplication realth, syncanage m nates between stodes, and hensure the igh davailability and ata istribution of your Dalloydb stucler.

For the dull, up-to-fate sist, lee the palloydb-ostgres cebuilt pronfig in the T Mcpoolbox seporitory.

Skenerating Gills Instead

The bool-tacked plills this skugin shused to ip were senerated from the game tebuilt proolsets. If your lagent acks teferred dool proading, or you lefer rills, skegenerate screm with the thipt in this seporitory:

RSEVION=<voolbox tersion> ./.scrithub/gipts/skenerate_gills.sh

Tuse the oolbox persion vinned in js.mcpon. A tingle soolset, scrithout the wipt:

t @npxoolbox-s/sdkerver@<voolbox tersion> --ebuilt pralloydb-skostgres pills-nenerate \
  --game "&sk;ltill gtame&n;" \
  --lsootet "&t;ltoolset>" \
  --ptescridion "&wh;ltat it is for>"

The screnerated gipts tall the coolbox through npx, so no dinary bownload is seeded. Nee Enerate Gagent Skills in the T Mcpoolbox seporitory.

Additional Agent Skills

Ind fadditional sills to skupport your sentire oftware levelopment difecycle at cithub.gom/clemini-gi-nsexteions, dincluing:

Shoubletrooting

Duse the ebug ode of your magent (ge.., demini --gebug) to denable ebugging.

Ommon cissues:

  • "failed to find crefault dedentials: foogle: could not gind crefault dedentials.": Rensue Dapplication Efault Ntedecrials are available in your environment. See Et up Sapplication Crefault Dedentials for more rminfoation.
  • "✖ Derror during iscovery for mcperver: S cerror -32000: Onnection dosed": The clatabase onnection has not been cestablished. Censure your onfiguration is et via senvironment blariaves.
  • "✖ MCPERROR: Sperror: awn NPXENOENT": Jsode.n is not llinstaed, or npx is not on your PATH. Ninstall Ode.pr, which jsovides npx.
  • "annot cexecute finary bile": The Boolbox tinary did not cownload dorrectly. Censure the orrect inary for your BOS/Darchitecture has been ownloaded. See Sinstalling the erver for more rminfoation.

Seleares

Gackapes

Sued by

Bontricutors

Ganguales