"Today's your chance to crush it, but let's be real, you'll probably just end up procrastinating and eating Cheetos on the couch at 3 PM."
Works with Visual Studio Code 👍
Well - even my software has a bad sense of humor ...
An important milestone for S.H.O.D.A.N. - It took longer than expected (why do I even mention this as SW engineer ...) - but I also learned a lot - and have a solution I can use every day.
# ...
shodan = OllamaProvider(URL)
model = OllamaModel(LLM, provider=shodan)
agent = Agent(model,
instructions=
'Be funny with a dark sense of humor.'
'Reply with one sentence.')
mcp = FastMCP(
name="shodan-mcp",
instructions="MCP server to get the quote of the day.",
host="0.0.0.0",
port=8001,
)
@mcp.tool()
async def getMotivation() -> str:
"""Provides the missing motivation you need.
"""
return (await agent.run('Give a quote to motivate me for the day.')).output
def main():
mcp.run(transport="streamable-http")
if __name__ == "__main__":
main()