@adcp/client API Reference - v4.19.0
Documentation
GitHub
npm
Preparing search index...
createMCPClient
Function createMCPClient
createMCPClient
(
agentUrl
:
string
,
authToken
?:
string
,
headers
?:
Record
<
string
,
string
>
,
)
:
{
callTool
:
(
toolName
:
string
,
args
:
Record
<
string
,
unknown
>
,
debugLogs
?:
DebugLogEntry
[]
,
)
=>
Promise
<
unknown
>
;
}
Simple factory functions for protocol-specific clients
Parameters
agentUrl
:
string
Optional
authToken
:
string
Optional
headers
:
Record
<
string
,
string
>
Returns
{
callTool
:
(
toolName
:
string
,
args
:
Record
<
string
,
unknown
>
,
debugLogs
?:
DebugLogEntry
[]
,
)
=>
Promise
<
unknown
>
;
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Documentation
GitHub
npm
@adcp/client API Reference - v4.19.0
Loading...
Simple factory functions for protocol-specific clients