Skip to content

Commit 72c8102

Browse files
Merge pull request #27 from MarcSkovMadsen/enhancement/print-pid
print pid
2 parents 2a6bec2 + 91fe8f7 commit 72c8102

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/holoviz_mcp/server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"""
1212

1313
import asyncio
14+
import logging
15+
import os
1416

1517
from fastmcp import FastMCP
1618

@@ -19,6 +21,8 @@
1921
from holoviz_mcp.hvplot_mcp.server import mcp as hvplot_mcp
2022
from holoviz_mcp.panel_mcp.server import mcp as panel_mcp
2123

24+
logger = logging.getLogger(__name__)
25+
2226
mcp: FastMCP = FastMCP(
2327
name="holoviz",
2428
instructions="""
@@ -57,6 +61,8 @@ async def setup_composed_server() -> None:
5761

5862
def main() -> None:
5963
"""Set up and run the composed MCP server."""
64+
pid = f"Process ID: {os.getpid()}"
65+
print(pid) # noqa: T201
6066

6167
async def setup_and_run() -> None:
6268
await setup_composed_server()

0 commit comments

Comments
 (0)