# `Jidoka.Operation.Source.MCP`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/operation/source/mcp.ex#L1)

Operation source backed by `jido_mcp`.

MCP tools are normalized into ordinary Jidoka operations. At runtime the
operation source routes the local operation name back to the remote MCP tool
name and calls the configured endpoint through `Jido.MCP`.

# `t`

```elixir
@type t() :: %Jidoka.Operation.Source.MCP{
  capabilities: map(),
  client: module(),
  client_info: map(),
  description: nil | binary(),
  endpoint: atom() | binary(),
  idempotency: (((:pure | :idempotent) | :dedupe) | :reconcile) | :unsafe_once,
  metadata: map(),
  prefix: nil | binary(),
  protocol_version: nil | binary(),
  required: boolean(),
  timeout: pos_integer(),
  timeouts: map(),
  tools: [tool_spec()],
  transport: nil | any()
}
```

# `tool_spec`

```elixir
@type tool_spec() :: %{
  name: String.t(),
  description: String.t() | nil,
  input_schema: map() | nil
}
```

# `new`

```elixir
@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}
```

Builds an MCP operation source from endpoint and tool settings.

# `new!`

```elixir
@spec new!(keyword() | map()) :: t()
```

Builds an MCP operation source and raises if the settings are invalid.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
