This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime as dt | |
| import json | |
| import logging | |
| import os | |
| from typing import Dict, Tuple | |
| import requests | |
| BASE_API = "https://reports.api.clockify.me/v1" | |
| PREP_PROJECT_ID = "<can-enter-it-here>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fastapi import FastAPI | |
| app = FastAPI() | |
| @app.get("/") | |
| def read_root(): | |
| return {"message": "Hello, FastAPI!"} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Complete AI Agent Deployment Manifests | |
| # 1. Namespace for organization | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: ai-agent | |
| --- | |
| # 2. ConfigMap for application configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # server.py | |
| from fastmcp import FastMCP | |
| # Create an MCP server | |
| mcp = FastMCP("Basic math server") | |
| # Add an addition tool | |
| @mcp.tool() | |
| def add(a: int, b: int) -> int: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # server.py | |
| from fastmcp import FastMCP | |
| # Create an MCP server | |
| mcp = FastMCP("Basic math server") | |
| # Add an addition tool | |
| @mcp.tool() | |
| def add(a: int, b: int) -> int: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # server.py | |
| from fastmcp import FastMCP | |
| # Create an MCP server | |
| mcp = FastMCP("Basic math server") | |
| # Add an addition tool | |
| @mcp.tool() | |
| def add(a: int, b: int) -> int: |
OlderNewer