feat: add structured data and API interaction tools - #869
Open
avoidwork wants to merge 2 commits into
Open
Conversation
…nd tasks for REST API, GraphQL, JSON, YAML, data transformation, and webhook management tools
Add REST API client, GraphQL client, webhook management, JSON/YAML manipulation, and data transformation tools with full test coverage. - src/tools/api.js: REST API client with auth, URL filtering, timeouts - src/tools/graphql.js: GraphQL client with depth/complexity limits - src/tools/webhook.js: Webhook CRUD and HMAC verification - src/tools/json.js: JSON parse, serialize, transform, filter, access - src/tools/yaml.js: YAML parse, serialize, transform, filter, access - src/tools/data.js: JSON/YAML/CSV format conversion - src/sandbox/urlFilter.js: URL allowlist with test mode support - tests/unit/*.test.js: Unit tests for all new tools - tests/integration/*.test.js: Integration tests with mock servers - src/tools/index.js: Tool registration with permission gating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds six new tools for structured data and API interaction:
api): Authenticated GET/POST/PUT/DELETE/PATCH requests with bearer, basic, and API key auth. Enforces URL allowlist and scheme blocking.graphql): Execute queries and mutations with depth/complexity limits and timeouts.webhook): Create, list, delete webhooks with HMAC-SHA256 signature verification.json): Parse, serialize, transform (mapping rules), filter (JSONPath), and access (dot notation).yaml): Parse, serialize, transform (mapping rules), filter (dot notation), and access (dot notation).data): Convert between JSON, YAML, and CSV formats with optional mapping rules.Type of Change
Testing
Coverage
Checklist
npm run lintpassesDependencies
New npm dependencies added:
graphql-request(v6.x) — GraphQL queries/mutationsjsonpath-plus(v8.x) — JSONPath expressionsjs-yaml(v4.x) — YAML parsing/dumpingcsv-parse(v6.x) — CSV parsingcsv-generate(v6.x) — CSV generationcsv-stringify(v6.x) — CSV stringificationRelated Issue
Addresses issue #788: feat: add structured data and API interaction tools