talos-mcp-server AGENTS.md

talos-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from CBEPX/talos-mcp-server. It costs 1,126 tokens per session, scanned A, original, MIT.

A set of rules for AI agents working on the Talos MCP Server project. It covers Python code, Helm and Kubernetes, API design, and testing.

In plain words
What is it for?
Use it to guide code changes and reviews in the Talos MCP Server repository.
Why use it?
It gives an agent project-specific guidance, such as using type hints, documenting public code, and marking tools that change systems.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/cbepx/talos-mcp-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/CBEPX/talos-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for talos-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cbepx/talos-mcp-server/agents-md.svg)](https://agentmods.dev/instructions/cbepx/talos-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/cbepx/talos-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/cbepx/talos-mcp-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,126 This file is loaded in full into every session.
When invoked 1,126 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01126 $0.01126
Opus 5 $0.00563 $0.00563
Sonnet 5 $0.00225 $0.00225
Haiku 4.5 $0.00113 $0.00113

Measured 3d ago against content hash 26e020ddd9ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

talos-mcp-server AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Guidelines & Rules

This document defines the coding standards, architectural patterns, and best practices for the Talos MCP Server project. All usage of AI agents should strictly adhere to these guidelines.

🐍 Python Development

  • Type Hinting: All functions and methods must have type hints. Use typing module (include List, Dict, Optional, Any, etc. or standard collections in Python 3.9+).
    • Example: def get_node_version(ip: str) -> Dict[str, Any]:
  • Docstrings: Use Google-style docstrings for all modules, classes, and public functions.
  • Pydantic: Use Pydantic models for data validation and schema definition, especially for MCP tools.
  • AsyncIO: Use async/await for all I/O bound operations. Use anyio for compatibility where appropriate.
  • Error Handling: Use try/except blocks judiciously. Create custom exception classes for domain-specific errors.
  • Loguru: Use loguru (imported as logger) for all logging. Do NOT use Python's standard logging module.
  • Read-Only Safety:
    • All mutating tools (e.g., reboot, upgrade) MUST explicitly set is_mutation = True in their class definition.
    • The TalosClient and server.py enforce strict read-only mode validation based on this flag.
  • Black & Ruff: Ensure code is formatted with Black and linted with Ruff.

☸️ Helm & Kubernetes

  • Chart Structure: Follow standard Helm chart structure (Chart.yaml, values.yaml, templates/).
  • Values: Use camelCase for values in values.yaml. Document all values with comments.
  • Templates:
    • Use {{ .Values.key | default "default" }} pattern.
    • Avoid hardcoding namespaces or resource names; use helper templates (e.g., _helpers.tpl) for naming.
  • Resources: Define resources (requests/limits) for all containers.
  • Labels: Ensure standard Kubernetes labels (app.kubernetes.io/name, etc.) are applied to all resources.

🔌 API Design (MCP)

  • Tools Definition:
    • Tools must have clear, descriptive names (e.g., talos_cluster_health not health).
    • Descriptions must be detailed enough for an LLM to understand when and how to use the tool.
    • Input schemas must be strict and validated.
  • Resources:
    • Use URI schemes consistent with the domain (e.g., talos://<node>/<resource>).
    • Implement read_resource with proper error handling for invalid URIs.
  • Prompts:
    • Prompt arguments should be self-explanatory.
    • Prompt templates should be flexible but guide the LLM towards a specific goal.

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 80 lines · 1,126 tokens per session scan A 26e020ddd9ad

Subscribe to this mod's changes

talos-mcp-server AGENTS.md is an instructions file published in the GitHub repository CBEPX/talos-mcp-server (0 stars, last pushed 6mo ago), licensed MIT. It adds 1,126 tokens to every session, about $0.0056 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.