Another POC ...
... with a strange sense of humor π.
Here is some additional motivation for you:
"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."

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 learned a lot - and have created a tool 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()


Comments