Skip to content

Conversation

pilz0
Copy link
Contributor

@pilz0 pilz0 commented Jun 17, 2025

MCP Toolbox for Databases is an open source MCP server for databases. It enables you to develop mcp tools easier, faster, and more securely by handling the complexities such as connection pooling, authentication, and more.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@pilz0
Copy link
Contributor Author

pilz0 commented Jun 17, 2025

The config file for the program gets specified like this: toolbox --tools-file "tools.yaml", im unsure if i should write a module for specifying the config.

@pilz0 pilz0 force-pushed the genai-toolbox-google branch from 994b985 to ab8344a Compare June 17, 2025 14:56
@github-actions github-actions bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 17, 2025
@nixpkgs-ci nixpkgs-ci bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jul 4, 2025
@Iamanaws
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 417565

Logs: https://github.com/Iamanaws/nixpkgs-review-gha/actions/runs/16640619392


x86_64-linux

✅ 1 package built:
  • genai-toolbox

aarch64-linux

✅ 1 package built:
  • genai-toolbox

x86_64-darwin (sandbox = true)

❌ 1 package failed to build:
  • genai-toolbox

Error logs: `x86_64-darwin`
genai-toolbox
github.com/googleapis/genai-toolbox/tests/spanner: no non-test Go files in /nix/build/nix-build-genai-toolbox-0.7.0.drv-5064-3272630594/source/tests/spanner
Building subPackage ./tests/sqlite
github.com/googleapis/genai-toolbox/tests/sqlite: no non-test Go files in /nix/build/nix-build-genai-toolbox-0.7.0.drv-5064-3272630594/source/tests/sqlite
buildPhase completed in 4 minutes 34 seconds
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
checking for references to /nix/build/nix-build-genai-toolbox-0.7.0.drv-5064-3272630594/ in /nix/store/7hxqmxn0zlh1bbyw0bfdck3kw8rlivrk-genai-toolbox-0.7.0...
patching script interpreter paths in /nix/store/7hxqmxn0zlh1bbyw0bfdck3kw8rlivrk-genai-toolbox-0.7.0
stripping (with command strip and flags -S) in  /nix/store/7hxqmxn0zlh1bbyw0bfdck3kw8rlivrk-genai-toolbox-0.7.0/bin
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Executing versionCheckPhase
Did not find version 0.7.0 in the output of the command /nix/store/7hxqmxn0zlh1bbyw0bfdck3kw8rlivrk-genai-toolbox-0.7.0/bin/genai-toolbox --version
panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
modernc.org/libc@v1.65.10/honnef.co/go/netdb/netdb.go:700 +0x70b


aarch64-darwin (sandbox = true)

❌ 1 package failed to build:
  • genai-toolbox

Error logs: `aarch64-darwin`
genai-toolbox
github.com/googleapis/genai-toolbox/tests/spanner: no non-test Go files in /nix/build/nix-build-genai-toolbox-0.7.0.drv-3754-323734631/source/tests/spanner
Building subPackage ./tests/sqlite
github.com/googleapis/genai-toolbox/tests/sqlite: no non-test Go files in /nix/build/nix-build-genai-toolbox-0.7.0.drv-3754-323734631/source/tests/sqlite
buildPhase completed in 56 seconds
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
checking for references to /nix/build/nix-build-genai-toolbox-0.7.0.drv-3754-323734631/ in /nix/store/srmml3lx0dfmpn32pqmnri4djpb54hy3-genai-toolbox-0.7.0...
patching script interpreter paths in /nix/store/srmml3lx0dfmpn32pqmnri4djpb54hy3-genai-toolbox-0.7.0
stripping (with command strip and flags -S) in  /nix/store/srmml3lx0dfmpn32pqmnri4djpb54hy3-genai-toolbox-0.7.0/bin
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Executing versionCheckPhase
Did not find version 0.7.0 in the output of the command /nix/store/srmml3lx0dfmpn32pqmnri4djpb54hy3-genai-toolbox-0.7.0/bin/genai-toolbox --version
panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
modernc.org/libc@v1.65.10/honnef.co/go/netdb/netdb.go:700 +0x648

@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jul 31, 2025
@pilz0
Copy link
Contributor Author

pilz0 commented Aug 4, 2025

i will squash the commits later on

@pilz0
Copy link
Contributor Author

pilz0 commented Aug 4, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 417565

Logs: https://github.com/Iamanaws/nixpkgs-review-gha/actions/runs/16640619392

x86_64-linux

✅ 1 package built:

aarch64-linux

✅ 1 package built:

x86_64-darwin (sandbox = true)

❌ 1 package failed to build:

Error logs: x86_64-darwin

aarch64-darwin (sandbox = true)

❌ 1 package failed to build:

Error logs: aarch64-darwin

hm weird, ill look into making it work on darwin

@pilz0 pilz0 changed the title genai-toolbox: init at 0.7.0 genai-toolbox: init at 0.10.0 Aug 11, 2025
@pilz0 pilz0 force-pushed the genai-toolbox-google branch 2 times, most recently from 7204aa9 to ecd1d73 Compare August 11, 2025 18:04
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. and removed 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. labels Aug 11, 2025
@pilz0 pilz0 force-pushed the genai-toolbox-google branch from 326da06 to ecd1d73 Compare August 11, 2025 18:30
@pilz0 pilz0 closed this Aug 11, 2025
@pilz0 pilz0 force-pushed the genai-toolbox-google branch from ecd1d73 to 3dd8376 Compare August 11, 2025 18:30
@pilz0 pilz0 reopened this Aug 11, 2025
@pilz0
Copy link
Contributor Author

pilz0 commented Aug 12, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 417565

Logs: https://github.com/pilz0/nixpkgs-review-gha/actions/runs/16900185049


x86_64-linux

✅ 1 package built:
  • genai-toolbox

aarch64-linux

✅ 1 package built:
  • genai-toolbox

x86_64-darwin

No rebuilds


aarch64-darwin

No rebuilds

@pilz0
Copy link
Contributor Author

pilz0 commented Aug 12, 2025

The program technically supports Darwin, but I currently do not have any devices available for testing.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/5763

Comment on lines +1 to +6
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:

Comment on lines +32 to +34
nativeInstallCheckInputs = [
versionCheckHook
];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
passthru = { updateScript = nix-update-script { }; };

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why should we add an empty update script?

Co-authored-by: Angel J <78835633+Iamanaws@users.noreply.github.com>
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Aug 18, 2025
@nixpkgs-ci nixpkgs-ci bot added the 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. label Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants