Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion clikernel/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def _shutdown(signum, frame):


async def _serve(w, name, docs, instructions=None, eager=False):
from mcp.server.fastmcp import FastMCP
try: from mcp.server.mcpserver import MCPServer as FastMCP # mcp>=2 renamed FastMCP
except ImportError: from mcp.server.fastmcp import FastMCP # mcp 1.x
# When `eager`, start the worker before building the server so its banner (including startup output) is
# forwarded as the `instructions` field -- read once, at initialize; a later restart won't refresh what the
# client sees. Otherwise the worker stays unlaunched until first use and `instructions` is the static text.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"ipython>=9.15.0",
"execnb>=0.2.9",
"fastcore",
"mcp",
"mcp>=1.2",
]

[project.optional-dependencies]
Expand Down