feat: Add MCP services support and enhance migration scripts
- Introduced new MCP services functionality, including management routes and integration with the agent service. - Updated Docker Compose configuration to include a new SQL migration for MCP services. - Enhanced Makefile with new migration commands for versioning and creating migrations. - Improved chat component to handle selected MCP services in message processing. - Updated migration documentation to reflect new strategies and added MCP services migration files.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package mcp
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrUnsupportedTransport is returned when transport type is not supported
|
||||
ErrUnsupportedTransport = errors.New("unsupported transport type")
|
||||
|
||||
// ErrNotConnected is returned when operation requires connection but client is not connected
|
||||
ErrNotConnected = errors.New("client not connected")
|
||||
|
||||
// ErrAlreadyConnected is returned when trying to connect an already connected client
|
||||
ErrAlreadyConnected = errors.New("client already connected")
|
||||
|
||||
// ErrInitializeFailed is returned when MCP initialize handshake fails
|
||||
ErrInitializeFailed = errors.New("MCP initialize handshake failed")
|
||||
|
||||
// ErrToolNotFound is returned when requested tool is not found
|
||||
ErrToolNotFound = errors.New("tool not found")
|
||||
|
||||
// ErrResourceNotFound is returned when requested resource is not found
|
||||
ErrResourceNotFound = errors.New("resource not found")
|
||||
|
||||
// ErrInvalidResponse is returned when server response is invalid
|
||||
ErrInvalidResponse = errors.New("invalid response from server")
|
||||
|
||||
// ErrTimeout is returned when operation times out
|
||||
ErrTimeout = errors.New("operation timed out")
|
||||
|
||||
// ErrConnectionClosed is returned when connection is closed unexpectedly
|
||||
ErrConnectionClosed = errors.New("connection closed")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user