jsonrpc: package with JSON-RPC symbols (#117)
Move the aliases to the internal/jsonrpc2 package into their own package. Fixes #115.
This commit is contained in:
parent
2c577e564b
commit
bfa5e30cd1
1 changed files with 112 additions and 95 deletions
20
jsonrpc/jsonrpc.go
Normal file
20
jsonrpc/jsonrpc.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2025 The Go MCP SDK Authors. All rights reserved.
|
||||
// Use of this source code is governed by an MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package jsonrpc exposes part of a JSON-RPC v2 implementation
|
||||
// for use by mcp transport authors.
|
||||
package jsonrpc
|
||||
|
||||
import "github.com/modelcontextprotocol/go-sdk/internal/jsonrpc2"
|
||||
|
||||
type (
|
||||
// ID is a JSON-RPC request ID.
|
||||
ID = jsonrpc2.ID
|
||||
// Message is a JSON-RPC message.
|
||||
Message = jsonrpc2.Message
|
||||
// Request is a JSON-RPC request.
|
||||
Request = jsonrpc2.Request
|
||||
// Response is a JSON-RPC response.
|
||||
Response = jsonrpc2.Response
|
||||
)
|
||||
Loading…
Reference in a new issue