-
Notifications
You must be signed in to change notification settings - Fork 11
chore: Add Transport interface and Toolbox Transport #126
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?
Conversation
d7eb684 to
14f6932
Compare
| } | ||
|
|
||
| payloadBytes, err := json.Marshal(payload) | ||
| invocationURL := fmt.Sprintf("%s/api/tool/%s/invoke", t.baseURL, toolName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the joinpath function here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this needs a fix
| } | ||
|
|
||
| payloadBytes, err := json.Marshal(payload) | ||
| invocationURL := fmt.Sprintf("%s/api/tool/%s/invoke", t.baseURL, toolName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this needs a fix
This PR establishes the foundational transport layer architecture required to support the Model Context Protocol (MCP) alongside the existing HTTP protocol.
This PR purely adds the structure for the transport layer.
Changes made:
Transportinterface and shared types incore/transport, effectively decoupling protocol mechanics from the high-level client logic.toolboxtransportpackage, which encapsulates the native Toolbox HTTP request logic into a reusable transport implementation.core/transport/types.goalong with the associated tests (This is being done to remove circular dependency)Subsequent PRs will contain:
corepackage to de-duplicate the shared types to provide backward compatibility.