JS

jaworjar95/salesforce-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

42 stars 16 forks 质量 68 趋势 0MIT

jaworjar95/salesforce-mcp-server 是从 https://github.com/jaworjar95/salesforce-mcp-server. 导入的 MCP 服务器候选

概览

jaworjar95/salesforce-mcp-server 是从 https://github.com/jaworjar95/salesforce-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一个全面的模型上下文协议(MCP)服务器,为Claude Desktop、Cline及其他兼容MCP的客户端等AI开发工具提供无缝的Salesforce集成。

🚀 特色

17 综合工具

🔍 查询与搜索工具

  • execute-soql - 执行带有自动批量切换和分页功能的SOQL查询
  • execute-sosl - 多对象搜索,支持结果聚合
  • describe-sobject - 带有智能缓存的 SObject 元数据

⚡ Apex 开发工具

  • execute-apex - 带调试日志捕获的匿名Apex执行
  • run-apex-tests - 带覆盖报告的顶点测试执行
  • get-apex-logs - 带过滤的日志调试

📊 数据管理工具

  • create-record - 单记录/批量记录创建,支持自动批量切换
  • get-record - 带现场选择的记录检索
  • update-record - 单记录/批量记录更新,带验证
  • delete-record - 单笔/批量记录删除
  • upsert-record - 基于 ID 的外部 upsert 操作

🔧 元数据工具(基于组件)

  • list-metadata-types - 发现元数据类型

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Salesforce MCP Server

A comprehensive Model Context Protocol (MCP) server that provides seamless Salesforce integration for AI development tools like Claude Desktop, Cline, and other MCP-compatible clients.

🚀 Features

17 Comprehensive Tools

🔍 Query & Search Tools

  • execute-soql - Execute SOQL queries with auto-bulk switching and pagination
  • execute-sosl - Multi-object search with result aggregation
  • describe-sobject - SObject metadata with intelligent caching

⚡ Apex Development Tools

  • execute-apex - Anonymous Apex execution with debug log capture
  • run-apex-tests - Apex test execution with coverage reporting
  • get-apex-logs - Debug log retrieval with filtering

📊 Data Management Tools

  • create-record - Single/bulk record creation with auto-bulk switching
  • get-record - Record retrieval with field selection
  • update-record - Single/bulk record updates with validation
  • delete-record - Single/bulk record deletion
  • upsert-record - External ID-based upsert operations

🔧 Metadata Tools (Component-Based)

  • list-metadata-types - Discover metadata types
  • deploy-metadata - Deploy individual metadata components (e.g., ApexClass, CustomObject) from files or JSON
  • deploy-bundle - Deploy a metadata bundle (e.g., LWC) from a directory path
  • retrieve-metadata - Retrieve individual metadata components, with an option to save to a file
  • check-deploy-status - Check the status of a deployment

🔗 Connection Tools

  • test-connection - Connection validation and health monitoring

Key Capabilities

  • 🔄 Auto-Bulk Switching - Intelligent API selection for optimal performance
  • 🔐 Dual Authentication - OAuth2 and Username/Password support
  • ⚡ Smart Caching - 1-hour TTL for SObject metadata
  • 🛡️ Type Safety - Full TypeScript implementation with runtime validation
  • 📝 Comprehensive Logging - Detailed debugging and monitoring
  • 🔍 Raw Error Exposure - Preserve exact Salesforce errors for debugging

🚀 Installation

To use with Desktop APP, such as Claude Desktop, Cline, Cursor, and so on, add the MCP server config below.

On macOS / Linux systems:

在 GitHub 查看完整 README

安装

npx -y @jjar/salesforce-mcp-server
新手?先看 mcpskill.org 教程 →