Skip to content

Conversation

dayal-arnav05
Copy link

  1. Fixed bug with request closer. It no longer shuts down the server after tool so when making a second tool call before the server starts up again throws an error. Did this by changing server instance and lifecycle since we just have the server deployed anyway.
  2. Adjusted schema ranges so that it includes opportunity from 'today' when querying for something like 'last week'
  3. Fixed issue with request ID collisions with the async call.
  4. Added more info on the schema for the agent. Before responses were truncated at 500 characters, the agent couldn't see available fields, and added some better field errors
  5. Added some logging too

Copy link
Owner

@tsmztech tsmztech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dayal-arnav05, @mnvsk97 👋
Thank you for taking the time to work on this PR and for the improvements to request handling - the changes look good and are heading in the right direction!
However, I'm encountering a runtime issue when testing the MCP server locally that's preventing me from fully evaluating the changes:

Error: failed to initialize server: failed to initialize client: transport error: server terminated.

Steps I followed:

Fetched the PR branch locally
Ran npm install and npm run build (both successful ✅)
Configured the MCP server in my Windsurf for testing:

"salesforce": { 
  "command": "node", 
  "args": ["local_path/mcp-server-salesforce/dist/index.js"], 
  "env": { 
    // ... environment variables
  } 
}

The server fails to initialize with the transport error above

This suggests there might be an issue with the server initialization or MCP protocol communication introduced in the request handling changes.

Could you please:
Test the server initialization in your MCP client setup
Verify that the MCP protocol handshake is working correctly
Check if there are any breaking changes to the server startup process
Ensure all MCP protocol methods are properly implemented

The build process works fine, so this appears to be a runtime/server initialization issue specifically.
Once this is resolved, I'd be happy to do a thorough review and test the request handling improvements!
Thanks again for your contribution to the project. Looking forward to the updated version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants