Tool-only imports
When the source path ends in.tool, every entry inside the block must be a tool.
Prompt-only imports
When the source path ends in.prompt, every entry inside the block must be a prompt.
Resource-only imports
When the source path ends in.resource, every entry inside the block must be a resource.
Mixed imports
When importing from the broader MCP server namespace, the block may contain tools, prompts, and resources.Shared bindings
A batch import can apply the same bindings to multiple imported tools when those tools need the same trusted runtime values.bindings {} assigns runtime values. It is not a schema declaration.
Recommended usage
- Keep import blocks close to related
mcpdeclarations. - Use clear local names for imported capabilities.
- Apply shared
bindings {}only when all imported tools truly need the same trusted values. - Prefer explicit individual imports when one tool needs different bindings or contract overrides.