Maton代理工具包
Maton代理工具包使包括模型上下文协议(MCP)在内的流行代理框架能够通过函数调用与Maton API集成。该库并不完全包含整个Maton API。它包括对Typescript的支持。
该工具包的灵感来自 Stripe代理工具包,其实现与Stripe Agent Toolkit代码库有相似之处。
以下是基本说明,但请参阅 TypeScript 包以获取更多信息。
TypeScript
安装
除非你想修改包,否则你不需要这个源代码。如果你只是 要使用包run:
npm install @maton/agent-toolkit需求
- 节点18+
用法
模型上下文协议
Maton代理工具包还支持 模型上下文协议(MCP).
要使用npx运行Maton MCP服务器,请使用以下命令:
API代理(测试版)
# To use API agent
npx -y @maton/mcp hubspot --agent --api-key=YOUR_MATON_API_KEYAPI行动
# To set up all available API actions
npx -y @maton/mcp hubspot --actions=all --api-key=YOUR_MATON_API_KEY
# To set up all available API actions
npx -y @maton/mcp hubspot --actions=create-contact,list-contacts --api-key=YOUR_MATON_API_KEY替换 YOUR_MATON_API_KEY 使用您的实际Maton API密钥。或者,您可以在环境变量中设置MATON_API_KEY。您可以在您的 Maton仪表板.
使用Claude Desktop
将以下内容添加到您的 claude_desktop_config.json。参见 这里 了解更多详情。
{
"mcpServers": {
"maton": {
"command": "npx",
"args": [
"-y",
"@maton/mcp@latest",
"hubspot",
"--actions=all",
"--api-key=YOUR_MATON_API_KEY"
]
}
}
}确保更换 YOUR_MATON_API_KEY 使用您的实际Maton API密钥。或者,也可以在中设置MATON_API_KEY env 变量。您可以在您的 Maton仪表板.
可用的API操作
| 应用程序 | 操作 |
|---|---|
airtable | list-bases |
airtable | list-records |
airtable | list-tables |
asana | create-task |
asana | get-task |
asana | list-projects |
asana | list-tasks |
asana | list-workspaces |
aws | get-s3-object |
aws | list-s3-buckets |
aws | list-s3-objects |
calendly | get-event |
calendly | list-event-invitees |
calendly | list-event-types |
calendly | list-events |
clickup | create-task |
clickup | delete-task |
clickup | get-task |
clickup | list-folders |
clickup | list-lists |
clickup | list-spaces |
clickup | list-tasks |
clickup | list-workspaces |
google-calendar | create-event |
google-calendar | delete-event |
google-calendar | get-calendar |
google-calendar | get-event |
google-calendar | list-calendars |
google-calendar | list-events |
google-calendar | update-event |
google-docs | append-text |
google-docs | create-document |
google-docs | find-document |
google-docs | get-document |
google-drive | create-file |
google-drive | create-folder |
google-drive | delete-file |
google-drive | find-file |
google-drive | find-folder |
google-drive | get-file |
google-drive | list-files |
google-mail | add-label-to-email |
google-mail | create-draft |
google-mail | find-email |
google-mail | list-labels |
google-mail | send-email |
google-mail | remove-label-from-email |
google-sheet | add-column |
google-sheet | add-multiple-rows |
google-sheet | clear-cell |
google-sheet | clear-rows |
google-sheet | create-spreadsheet |
google-sheet | create-worksheet |
google-sheet | delete-rows |
google-sheet | delete-worksheet |
google-sheet | find-row |
google-sheet | get-cell |
google-sheet | get-spreadsheet |
google-sheet | get-values-in-range |
google-sheet | list-worksheets |
google-sheet | update-cell |
google-sheet | update-multiple-rows |
google-sheet | update-row |
hubspot | create-contact |
hubspot | get-contact |
hubspot | list-contacts |
hubspot | search-contacts |
hubspot | merge-contacts |
hubspot | update-contact |
hubspot | delete-contact |
hubspot | create-deal |
hubspot | get-deal |
hubspot | list-deals |
hubspot | search-deals |
hubspot | merge-deals |
hubspot | update-deal |
hubspot | delete-deal |
jira | list-clouds |
jira | get-issue |
jira | list-issues |
jira | add-comment-to-issue |
jira | list-comments |
jira | update-comment |
jira | list-projects |
jira | get-user |
jira | list-users |
jotform | list-forms |
jotform | list-submissions |
klaviyo | add-profiles-to-list |
klaviyo | assign-template-to-campaign-message |
klaviyo | create-campaign |
klaviyo | create-list |
klaviyo | create-profile |
klaviyo | create-template |
klaviyo | get-campaign-messages |
klaviyo | get-campaign-send-job |
klaviyo | get-campaigns |
klaviyo | get-lists |
klaviyo | get-profiles-for-list |
klaviyo | get-profiles |
klaviyo | get-templates |
klaviyo | send-campaign |
mailchimp | get-campaign |
mailchimp | search-campaign |
notion | create-page |
notion | find-page |
notion | get-page |
outlook | create-draft |
outlook | find-email |
outlook | send-email |
pipedrive | search-people |
salesforce | create-contact |
salesforce | get-contact |
salesforce | list-contacts |
shopify | create-order |
shopify | get-order |
shopify | list-orders |
slack | list-channels |
slack | list-messages |
slack | list-replies |
slack | send-message |
stripe | create-customer |
stripe | create-invoice-item |
stripe | create-invoice |
stripe | delete-customer |
stripe | get-customer |
stripe | get-invoice |
stripe | list-customers |
stripe | list-invoices |
typeform | get-form |
typeform | list-forms |
typeform | list-responses |
youtube | list-videos |
youtube | search-videos |
