toggle menu
http4k-ai-mcp-core
6.16.0.0
jvm
switch theme
search in API
http4k-ai-mcp-core
/
org.http4k.ai.mcp.model
/
McpCapabilityLens
Mcp
Capability
Lens
class
McpCapabilityLens
<
IN
:
Any
,
OUT
>
(
meta
:
Meta
,
get
:
(
IN
)
->
OUT
,
set
:
(
OUT
,
IN
)
->
IN
,
toSchema
:
(
McpCapabilityLens
<
IN
,
*
>
)
->
McpNodeType
)
:
BiDiLens
<
IN
,
OUT
>
,
LensInjectorExtractor
<
IN
,
OUT
>
Members
Constructors
Mcp
Capability
Lens
Link copied to clipboard
constructor
(
meta
:
Meta
,
get
:
(
IN
)
->
OUT
,
set
:
(
OUT
,
IN
)
->
IN
,
toSchema
:
(
McpCapabilityLens
<
IN
,
*
>
)
->
McpNodeType
)
Properties
meta
Link copied to clipboard
val
meta
:
Meta
Functions
extract
Link copied to clipboard
open
fun
extract
(
target
:
IN
)
:
OUT
get
Link copied to clipboard
open
operator
fun
<
R
:
IN
>
get
(
target
:
R
)
:
OUT
inject
Link copied to clipboard
open
fun
<
R
:
IN
>
inject
(
value
:
OUT
,
target
:
R
)
:
R
invoke
Link copied to clipboard
open
operator override
fun
<
R
:
IN
>
invoke
(
value
:
OUT
,
target
:
R
)
:
R
abstract
operator override
fun
invoke
(
target
:
IN
)
:
OUT
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
Meta
>
of
Link copied to clipboard
open
infix
fun
<
R
:
IN
>
of
(
value
:
OUT
)
:
(
R
)
->
R
restrict
From
Link copied to clipboard
open
fun
<
NEXT
:
IN
>
restrictFrom
(
)
:
LensExtractor
<
NEXT
,
OUT
>
restrict
Into
Link copied to clipboard
open
fun
<
NEXT
:
IN
>
restrictInto
(
)
:
LensInjector
<
OUT
,
NEXT
>
set
Link copied to clipboard
open
operator
fun
<
R
:
IN
>
set
(
target
:
R
,
value
:
OUT
)
:
R
to
Schema
Link copied to clipboard
fun
toSchema
(
)
:
MoshiNode