Skip to content

feat: Add Tool authenticated parameters - #80

Merged
duwenxin99 merged 26 commits into
mainfrom
params
Dec 16, 2024
Merged

duwenxin99 merged 26 commits into
mainfrom
params

Conversation

@duwenxin99

@duwenxin99 duwenxin99 commented Nov 18, 2024 •

Copy link
Copy Markdown
Contributor
  1. Add []ParamAuthSource to every Parameter type implementation to support authenticated configs. Create new constructors for types with auth.
  2. Tool invocation API changes to parse auth header and authentecated parameters.
  3. Add authSources to Tool manifest.

@kurtisvg kurtisvg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

broad note: I'd like to see more more involved testing here

Comment thread internal/tools/parameters.go Outdated
Comment thread internal/tools/parameters.go Outdated
Comment thread internal/tools/parameters_test.go Outdated
Comment thread internal/tools/postgressql/postgressql.go Outdated
Comment thread cmd/root_test.go
Comment thread cmd/root_test.go
Comment thread cmd/root_test.go
Comment thread internal/server/api.go Outdated
Comment thread internal/server/api.go Outdated
Comment thread internal/tools/parameters.go Outdated
Comment thread internal/tools/parameters_test.go Outdated
Comment thread internal/tools/parameters_test.go Outdated
Comment thread internal/tools/postgressql/postgressql.go Outdated
Comment thread internal/tools/postgressql/postgressql.go Outdated
Comment thread internal/tools/postgressql/postgressql_test.go Outdated
Comment thread internal/tools/parameters.go Outdated
Comment thread internal/tools/parameters.go Outdated
@duwenxin99
duwenxin99 force-pushed the authsource branch 4 times, most recently from 8746ecc to 1c00242 Compare December 9, 2024 20:11
Base automatically changed from authsource to main December 13, 2024 17:22
@duwenxin99 duwenxin99 changed the title feat: Add AuthSources to Tool parameters feat: Add Tool authenticated parameters Dec 14, 2024
duwenxin99 and others added 3 commits December 15, 2024 22:33
1. OAuth provider test must run on Cloud Build to be able to print ID
tokens of the GCE VM attached service account.
2. Borrowing gcloud CLI team's public `Client ID` in the Google ID token
[documentation](https://cloud.google.com/docs/authentication/token-types#id-contents)
@duwenxin99
duwenxin99 merged commit 380a6fb into main Dec 16, 2024
@duwenxin99
duwenxin99 deleted the params branch December 16, 2024 22:46
duwenxin99 pushed a commit that referenced this pull request Dec 18, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.0.4](v0.0.3...v0.0.4)
(2024-12-18)


### Features

* Add `auth_required` to tools
([#123](#123))
([3118104](3118104))
* Add Auth Source configuration
([#71](#71))
([77b0d43](77b0d43))
* Add Tool authenticated parameters
([#80](#80))
([380a6fb](380a6fb))
* **langchain-sdk:** Correctly parse Manifest API response as JSON
([#143](#143))
([2c8633c](2c8633c))
* **langchain-sdk:** Support authentication in LangChain Toolbox SDK.
([#133](#133))
([23fa912](23fa912))


### Bug Fixes

* Fix release image version tag
([#136](#136))
([6d19ff9](6d19ff9))
* **langchain-sdk:** Correct test name to ensure execution and full
coverage.
([#145](#145))
([d820ac3](d820ac3))
* Set server version
([#150](#150))
([abd1eb7](abd1eb7))


### Miscellaneous Chores

* Release 0.0.4
([#152](#152))
([86ec12f](86ec12f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
jeffreyrubi pushed a commit to jeffreyrubi/genai-toolbox that referenced this pull request Jun 7, 2025
1. Add []ParamAuthSource to every Parameter type implementation to
support authenticated configs. Create new constructors for types with
auth.
2. Tool invocation API changes to parse auth header and authentecated
parameters.
3. Add authSources to Tool manifest.
jeffreyrubi pushed a commit to jeffreyrubi/genai-toolbox that referenced this pull request Jun 7, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.0.4](googleapis/mcp-toolbox@v0.0.3...v0.0.4)
(2024-12-18)


### Features

* Add `auth_required` to tools
([googleapis#123](googleapis#123))
([3118104](googleapis@3118104))
* Add Auth Source configuration
([googleapis#71](googleapis#71))
([77b0d43](googleapis@77b0d43))
* Add Tool authenticated parameters
([googleapis#80](googleapis#80))
([380a6fb](googleapis@380a6fb))
* **langchain-sdk:** Correctly parse Manifest API response as JSON
([googleapis#143](googleapis#143))
([2c8633c](googleapis@2c8633c))
* **langchain-sdk:** Support authentication in LangChain Toolbox SDK.
([googleapis#133](googleapis#133))
([23fa912](googleapis@23fa912))


### Bug Fixes

* Fix release image version tag
([googleapis#136](googleapis#136))
([6d19ff9](googleapis@6d19ff9))
* **langchain-sdk:** Correct test name to ensure execution and full
coverage.
([googleapis#145](googleapis#145))
([d820ac3](googleapis@d820ac3))
* Set server version
([googleapis#150](googleapis#150))
([abd1eb7](googleapis@abd1eb7))


### Miscellaneous Chores

* Release 0.0.4
([googleapis#152](googleapis#152))
([86ec12f](googleapis@86ec12f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
NightStack15 added a commit to NightStack15/googleapis-_-genai-toolbox that referenced this pull request Mar 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.0.4](googleapis/mcp-toolbox@v0.0.3...v0.0.4)
(2024-12-18)


### Features

* Add `auth_required` to tools
([#123](googleapis/mcp-toolbox#123))
([3118104](googleapis/mcp-toolbox@3118104))
* Add Auth Source configuration
([#71](googleapis/mcp-toolbox#71))
([77b0d43](googleapis/mcp-toolbox@77b0d43))
* Add Tool authenticated parameters
([#80](googleapis/mcp-toolbox#80))
([380a6fb](googleapis/mcp-toolbox@380a6fb))
* **langchain-sdk:** Correctly parse Manifest API response as JSON
([#143](googleapis/mcp-toolbox#143))
([2c8633c](googleapis/mcp-toolbox@2c8633c))
* **langchain-sdk:** Support authentication in LangChain Toolbox SDK.
([#133](googleapis/mcp-toolbox#133))
([23fa912](googleapis/mcp-toolbox@23fa912))


### Bug Fixes

* Fix release image version tag
([#136](googleapis/mcp-toolbox#136))
([6d19ff9](googleapis/mcp-toolbox@6d19ff9))
* **langchain-sdk:** Correct test name to ensure execution and full
coverage.
([#145](googleapis/mcp-toolbox#145))
([d820ac3](googleapis/mcp-toolbox@d820ac3))
* Set server version
([#150](googleapis/mcp-toolbox#150))
([abd1eb7](googleapis/mcp-toolbox@abd1eb7))


### Miscellaneous Chores

* Release 0.0.4
([#152](googleapis/mcp-toolbox#152))
([86ec12f](googleapis/mcp-toolbox@86ec12f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants