Maton Agent Toolkit 允许包括模型上下文协议(MCP)在内的流行代理框架通过函数调用与 Maton API 集成。该库并不包含整个 Maton API 的所有内容。它支持 TypeScript。
该工具包受到了 Stripe Agent Toolkit 的启发,其实现方式与 Stripe Agent Toolkit 的代码库有相似之处。
下面提供了基本说明,但请参阅 TypeScript 包以获取更多信息。
要开始使用,请在您的 Maton Dashboard 中获取您的 API 密钥,并查看 文档。
除非您想修改该包,否则不需要此源代码。如果您只是想使用该包,请运行:
npm install @maton/agent-toolkit
Maton Agent Toolkit 还支持 模型上下文协议(MCP)。
要使用 npx 运行 Maton MCP 服务器,请使用以下命令:
# 使用 API 代理
npx -y @maton/mcp hubspot --agent --api-key=YOUR_MATON_API_KEY
# 设置所有可用的 API 动作
npx -y @maton/mcp hubspot --actions=all --api-key=YOUR_MATON_API_KEY
# 设置所有可用的 API 动作
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 Dashboard 中获取 API 密钥。
在您的 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 密钥。或者,您可以在 env 变量中设置 MATON_API_KEY。您可以在您的 Maton Dashboard 中获取 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 |