This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
class McpException(Exception):
code = -32603 # JSONRPC internal error
def __init__(self, message, **extra_params):
super().__init__(message)
self.message = message
self.extra_params = extra_params
class McpMethodNotFoundError(McpException):
code = -32601
def __init__(self):
super().__init__("Method doesn't exist")