Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""WordPress MCP Server main entry point."""

import sys

from src.server import mcp


Expand All @@ -10,9 +12,9 @@ def main():
from src.tools import posts, users, media, categories, tags, site
mcp.run()
except KeyboardInterrupt:
print("\nWordPress MCP Server shutting down...")
print("\nWordPress MCP Server shutting down...", file=sys.stderr)
except Exception as e:
print(f"Error starting WordPress MCP Server: {e}")
print(f"Error starting WordPress MCP Server: {e}", file=sys.stderr)


if __name__ == "__main__":
Expand Down
Loading