Skip to main content

Documentation Index

Fetch the complete documentation index at: https://superwire.dev/llms.txt

Use this file to discover all available pages before exploring further.

input {
    task_id: number
}

secrets {
    api_key: string
    mcp_token: string
}

provider llm from openai {
    endpoint: "https://api.openai.com/v1"
    api_key: secrets.api_key
}

model fast from llm {
    id: "gpt-4.1-mini"
}

mcp tasks {
    endpoint: "http://localhost:8000/mcp/tasks"

    headers {
        Authorization: "Bearer {{ secrets.mcp_token }}"
    }
}

from mcp.tasks {
    prompt task_writer_instructions
    resource project_readme
}

tool fetch_task from mcp.tasks.tool.fetch_task {
    input {
        task_id: number
    }

    output {
        title: string
        description: string
        status: string
    }
}

dynamic {
    task: call tool.fetch_task {
        bindings {
            task_id: input.task_id
        }
    }
}

agent writer {
    model: model.fast

    uses: [
        prompt.task_writer_instructions,
        resource.project_readme,
        tool.fetch_task,
    ]

    instruction: "Write a concise task update for {{ task.title }}."

    output {
        update: string
    }
}

output {
    update: agent.writer.update
}