Skip to content

Comments

#19 Updating json handling to fix mcp for self hosted instances#20

Merged
Prashant-Surya merged 1 commit intomakeplane:canaryfrom
ejones40:canary
Apr 28, 2025
Merged

#19 Updating json handling to fix mcp for self hosted instances#20
Prashant-Surya merged 1 commit intomakeplane:canaryfrom
ejones40:canary

Conversation

@ejones40
Copy link
Contributor

Description

Fixed issues with the makePlaneRequest function to properly handle GET requests versus non-GET requests. The changes ensure that the Content-Type header is only included for non-GET requests, and that the request body is only included for non-GET requests when it's not null.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Before:
image

After:
image

Test Scenarios

Tested changes by:

  • Running npx @modelcontextprotocol/inspector --config "path/to/build/index.js" --server plane and verifying that tools work correctly
  • Successfully interacting with Plane via Claude desktop

The changes fix how HTTP requests are built when interacting with the Plane API, ensuring proper behavior with GET and non-GET requests.

References

#19

@Prashant-Surya Prashant-Surya changed the title #19 Updaing json handling to fix mcp for self hosted instances #19 Updating json handling to fix mcp for self hosted instances Apr 28, 2025
@Prashant-Surya Prashant-Surya merged commit 3baf0ae into makeplane:canary Apr 28, 2025
1 check passed
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