- Add detailed docstrings and inline comments to all source files - Create README with installation, usage, and Claude recreation guide - Add pyproject.toml for pip installation - Add MIT LICENSE file - Document architecture, design patterns, and MCP server structure Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
637 B
Python
23 lines
637 B
Python
"""
|
|
Entry point for running the Vivado MCP server as a module.
|
|
|
|
This allows running the server with:
|
|
python -m vivado_mcp
|
|
|
|
Which is equivalent to:
|
|
vivado-mcp (after pip install)
|
|
|
|
The server communicates via stdin/stdout using the MCP protocol,
|
|
so it's typically launched by an MCP client like Claude Code rather
|
|
than run directly from the command line.
|
|
|
|
For testing, you can run it directly, but you'll need to send
|
|
properly formatted JSON-RPC messages to stdin.
|
|
"""
|
|
|
|
import asyncio
|
|
from .server import main
|
|
|
|
# Run the async main function when this module is executed directly
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|