mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-19 21:41:03 +08:00
Revert "Add MCP tool for setting session token"
This reverts commit 9dadaad5ba.
This commit is contained in:
@@ -139,25 +139,6 @@ app = FastMCP(
|
||||
)
|
||||
|
||||
|
||||
@app.tool(
|
||||
name="set_token",
|
||||
description=(
|
||||
"Set JWT token for the current session to be reused by other tools."
|
||||
),
|
||||
)
|
||||
async def set_token(
|
||||
token: Annotated[
|
||||
str,
|
||||
PydanticField(description="JWT token string."),
|
||||
],
|
||||
ctx: Context | None = None,
|
||||
) -> str:
|
||||
"""Persist a JWT token for the active MCP session."""
|
||||
|
||||
session_token_manager.resolve(ctx, token)
|
||||
return "Token stored successfully."
|
||||
|
||||
|
||||
@app.tool(
|
||||
name="search",
|
||||
description="Perform a global search across OpenIsle resources.",
|
||||
|
||||
Reference in New Issue
Block a user