Skip to content

Commit ccd4b02

Browse files
committed
unexport
1 parent 0108d5c commit ccd4b02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

mcp/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ func (c *Client) Connect(ctx context.Context, t Transport) (cs *ClientSession, e
129129
return nil, unsupportedProtocolVersionError{res.ProtocolVersion}
130130
}
131131
cs.initializeResult = res
132-
if hc, ok := cs.mcpConn.(HTTPConnection); ok {
133-
hc.SetProtocolVersion(res.ProtocolVersion)
132+
if hc, ok := cs.mcpConn.(httpConnection); ok {
133+
hc.setProtocolVersion(res.ProtocolVersion)
134134
}
135135
if err := handleNotify(ctx, cs, notificationInitialized, &InitializedParams{}); err != nil {
136136
_ = cs.Close()

mcp/streamable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ type streamableClientConn struct {
648648
err error
649649
}
650650

651-
func (c *streamableClientConn) SetProtocolVersion(s string) {
651+
func (c *streamableClientConn) setProtocolVersion(s string) {
652652
c.mu.Lock()
653653
defer c.mu.Unlock()
654654
c.protocolVersion = s

mcp/transport.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ type Connection interface {
5353
SessionID() string
5454
}
5555

56-
// An HTTPConnection is a [Connection] that runs over HTTP.
57-
type HTTPConnection interface {
56+
// An httpConnection is a [Connection] that runs over HTTP.
57+
type httpConnection interface {
5858
Connection
59-
SetProtocolVersion(string)
59+
setProtocolVersion(string)
6060
}
6161

6262
// A StdioTransport is a [Transport] that communicates over stdin/stdout using

0 commit comments

Comments
 (0)