API Reference¶
Use this reference when integrating with Topos internals, extending evaluation policies, or embedding graph and metric primitives. For normal command-line usage, start with CLI Reference; for agent workflows, start with For Agents.
The stable user-facing surfaces are the CLI, MCP tools, and the documented modules listed here. Modules outside this reference should be treated as internal unless they are documented elsewhere.
Where to start¶
topos.evaluationVerdicts, policies, suggestions, suppression, and the logic that maps measurements onto Topos quality pillars.
topos.graphsAST, CFG, CPG, MDG, PDG, and UAST representations used as structural lenses over source code.
topos.functorsMetric probes and structural comparisons, including complexity, entropy, coupling, edit distance, and structural coverage.
topos.mcpAgent-facing server, tool schemas, formatting, resources, and workflow helpers.
topos.coreThe mathematical primitives behind programs, morphisms, categories, and the evaluation lattice.
topos.cliCommand implementation internals for evaluation, inspection, coverage, and diagnostics.
topos.configConfiguration, repository discovery, and parser/runtime helpers.
- Core
- Evaluation
- topos.evaluation.characteristic_morphism
- topos.evaluation.preferences
- topos.evaluation.suggestions
- topos.evaluation.suppression
- topos.evaluation.policies.base
- topos.evaluation.policies.calibration
- topos.evaluation.policies.clones
- topos.evaluation.policies.composable
- topos.evaluation.policies.coverage
- topos.evaluation.policies.secure
- topos.evaluation.policies.simple
- Graphs
- topos.graphs.base
- topos.graphs.ast.dispatch
- topos.graphs.ast.object
- topos.graphs.ast.types
- topos.graphs.ast.providers.base
- topos.graphs.ast.providers.native_provider
- topos.graphs.ast.providers.tree_sitter_provider
- topos.graphs.cfg.builder
- topos.graphs.cfg.models
- topos.graphs.cfg.object
- topos.graphs.cpg.builder
- topos.graphs.cpg.models
- topos.graphs.cpg.object
- topos.graphs.mdg.object
- topos.graphs.pdg.object
- topos.graphs.uast.mapper_common
- topos.graphs.uast.mapper_cpp
- topos.graphs.uast.mapper_javascript
- topos.graphs.uast.mapper_python
- topos.graphs.uast.mapper_rust
- topos.graphs.uast.mapper_typescript
- topos.graphs.uast.models
- Functors
- topos.functors.probes.ast.complexity
- topos.functors.probes.ast.entropy
- topos.functors.probes.cfg.complexity
- topos.functors.probes.cfg.paths
- topos.functors.probes.cpg.danger
- topos.functors.probes.cpg.taint
- topos.functors.probes.mdg.coupling
- topos.functors.probes.mdg.fan
- topos.functors.probes.uast.compare
- topos.functors.probes.uast.signature
- topos.functors.profunctors.ast.compare
- topos.functors.profunctors.cfg.compare
- topos.functors.profunctors.cpg.compare
- topos.functors.profunctors.cpg.topological_coverage
- topos.functors.profunctors.mdg.compare
- topos.functors.profunctors.pdg.compare
- topos.functors.profunctors.uast.compare
- topos.functors.profunctors.uast.structural_test_coverage
- MCP
- topos.mcp.cache
- topos.mcp.diagnostics
- topos.mcp.evaluation
- topos.mcp.formatting
- topos.mcp.schemas
- topos.mcp.security
- topos.mcp.security_findings
- topos.mcp.server
- topos.mcp.resources.docs
- topos.mcp.tools.assess
- topos.mcp.tools.compare
- topos.mcp.tools.coverage
- topos.mcp.tools.docs
- topos.mcp.tools.evaluate
- topos.mcp.tools.inspect
- topos.mcp.tools.preferences
- CLI
- Configuration