pryscraper/mcp_production.py
cryptorugmunch f7f9fa0c88 refactor(mcp): split mcp_production.py into pry_mcp/ sub-package
- pry_mcp/constants.py: protocol constants

- pry_mcp/notifications.py: observer pattern, logging handler, notification helpers

- pry_mcp/tools.py: PRY_TOOLS definitions

- pry_mcp/resources.py: PRY_RESOURCES and PRY_PROMPTS

- pry_mcp/fallback_server.py: FallbackMCPServer implementation

- pry_mcp/sdk_server.py: official MCP SDK path

- mcp_production.py: backward-compatible re-export shim

- Avoid namespace collision with installed mcp SDK by using pry_mcp/
2026-07-03 14:52:59 +02:00

61 lines
1.4 KiB
Python

"""Pry - Production MCP Server (backward-compatibility shim).
The real implementation has been split into the pry_mcp/ sub-package.
Import from pry_mcp for new code; this module re-exports the public API.
"""
# SPDX-License-Identifier: MIT
# Copyright (c) 2026 Rug Munch Media LLC
#
# Part of Pry - https://git.rugmunch.io/RugMunchMedia/pryscraper
# Licensed under MIT. See LICENSE.
from __future__ import annotations
from pry_mcp import (
DEFAULT_BASE_URL,
MCP_PROTOCOL_VERSION,
PRY_PROMPTS,
PRY_RESOURCES,
PRY_TOOLS,
SERVER_NAME,
SERVER_VERSION,
MCPLoggingHandler,
create_server,
main,
make_fallback_server,
notify_resource_changed,
notify_resource_list_changed,
notify_tool_list_changed,
register_all,
register_mcp_notification_observer,
set_active_mcp_server,
unregister_mcp_notification_observer,
)
__all__ = [
"DEFAULT_BASE_URL",
"MCP_PROTOCOL_VERSION",
"PRY_PROMPTS",
"PRY_RESOURCES",
"PRY_TOOLS",
"SERVER_NAME",
"SERVER_VERSION",
"MCPLoggingHandler",
"create_server",
"main",
"make_fallback_server",
"make_fallback_server",
"notify_resource_changed",
"notify_resource_list_changed",
"notify_tool_list_changed",
"register_all",
"register_mcp_notification_observer",
"set_active_mcp_server",
"unregister_mcp_notification_observer",
]
if __name__ == "__main__":
import asyncio
asyncio.run(main())