Service Architect MCP Tools for Architecture and Code Generation
Tools perform explicit operations; resources provide passive context that Codex can inspect before choosing an operation.
When to use
Use resources for discovery and tools for deliberate execution or writes.
Behavior
- Project tools cover manifest inspection, doctor checks, validation, canonical export, YAML import, and generated project requests.
- Refresh tools explicitly fetch public ServiceGen capability and validation contracts and cache them in the workspace.
- Fixed resources report current project state and cached contracts without making hidden network requests.
- Resource templates expose exact diagnostic rules by SG_* code instead of asking the agent to infer remediation from a code name.
Tool families properties
Capabilities exposed as bounded MCP operations.
Inspect and doctorLocal readDiscover the project and diagnose environment or cache compatibility.
Validate and exportLocal execution/writeEvaluate the trusted topology and emit canonical YAML.
ImportLocal generationCreate a modular typed Python project from canonical YAML.
GenerateRemote authorized operationSubmit validated architecture and receive a native runtime ZIP.
Refresh contractsPublic network readCache current ServiceGen capability and validation metadata.
designer_viewValidated graph viewOpen the read-only embedded Designer for a validated snapshot. Explore pipelines and components, inspect nodes, change local presentation, or export SVG without editing the authoring model.
preview_generation / apply_generationExplicit regenerationPreview generated-file changes before applying the generated archive to the target workspace.
inspect_business_tasksLocal inspectionInspect the business implementation tasks associated with generated extension points.
Validation resources properties
Stable URIs relevant to rule-driven authoring.
servicegen://workspace/current/validation-contractFixed resourceCached versioned validation catalog and revision metadata.
servicegen://validation/rules/{code}Resource templateExact condition and remediation for one SG_* diagnostic.
validationRuleUriDiagnostic fieldResource URI attached to an MCP validation diagnostic.
Example
1. Read the passive workspace resource.
2. Run validation explicitly.
3. Follow diagnostic.validationRuleUri for the exact rule.
4. Apply the smallest typed-model correction.
5. Validate again before export.