refactor(mcp): move superset_core MCP module from mcp to api/mcp (#38394)

This commit is contained in:
Michael S. Molina
2026-03-04 14:38:17 -03:00
committed by GitHub
parent 69732d9dca
commit 832fee3ff8
26 changed files with 38 additions and 38 deletions

View File

@@ -61,7 +61,7 @@ Prompts provide interactive guidance and context to AI agents. They help agents
The simplest way to create an MCP tool is using the `@tool` decorator:
```python
from superset_core.mcp import tool
from superset_core.api.mcp import tool
@tool
def hello_world() -> dict:
@@ -94,7 +94,7 @@ Here's a more comprehensive example showing best practices:
import random
from datetime import datetime, timezone
from pydantic import BaseModel, Field
from superset_core.mcp import tool
from superset_core.api.mcp import tool
class RandomNumberRequest(BaseModel):
"""Request schema for random number generation."""
@@ -253,7 +253,7 @@ The AI agent sees your tool's:
Create interactive prompts using the `@prompt` decorator:
```python
from superset_core.mcp import prompt
from superset_core.api.mcp import prompt
from fastmcp import Context
@prompt("my_extension.workflow_guide")