Skip to content

fix: docs-mcp corrections and minor code cleanup#67

Open
FelixNg1022 wants to merge 1 commit into
wespreadjam:mainfrom
FelixNg1022:fix/docs-mcp-and-minor-cleanup
Open

fix: docs-mcp corrections and minor code cleanup#67
FelixNg1022 wants to merge 1 commit into
wespreadjam:mainfrom
FelixNg1022:fix/docs-mcp-and-minor-cleanup

Conversation

@FelixNg1022

Copy link
Copy Markdown

Summary

  • docs-mcp README: Correct repo URL (KNQuocwespreadjam), remove references to non-existent npm package (jam-nodes-docs-mcp), update install instructions to use local build
  • docs-mcp LICENSE/package.json: Align copyright and author with root project (Jam / wespreadjam)
  • docs-mcp docs.ts: Update NODE_TYPES from 16 to 48 nodes to reflect current codebase (adds webhook_trigger, sort, bread, all Twitter extended ops, DataForSEO extended, Discord, Firecrawl, Dev.to, WordPress, Google Sheets, Slack nodes); remove references to non-existent @jam-nodes/editor package
  • docs-mcp tools.ts: Remove hardcoded "16" from list_nodes description, remove editor references from get_api_reference
  • rate-limit.test.ts: Remove unused vi import
  • dataforseo/keyword-research.ts: Remove console.warn from production code

Closes #60

Test plan

- Fix docs-mcp README: correct repo URL from KNQuoc to wespreadjam,
  remove references to non-existent npm package, update install instructions
- Fix docs-mcp LICENSE: align copyright holder with root LICENSE (Jam)
- Fix docs-mcp package.json: correct author field
- Fix docs-mcp docs.ts: update NODE_TYPES from 16 to 48 nodes reflecting
  current codebase, remove references to non-existent @jam-nodes/editor
- Fix docs-mcp tools.ts: remove hardcoded "16" node count, remove editor references
- Remove unused `vi` import in rate-limit.test.ts
- Remove console.warn in dataforseo keyword-research.ts (production code)

Closes wespreadjam#60
Copilot AI review requested due to automatic review settings April 4, 2026 17:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the packages/docs-mcp MCP server docs/tooling to remove stale references (wrong repo URL, non-existent npm package / packages) and refresh the exposed node catalog, alongside a couple of small cleanups in core tests and a DataForSEO node.

Changes:

  • Fix docs-mcp README/install/config instructions and align package metadata/license attribution with the root project.
  • Refresh docs-mcp’s node index (NODE_TYPES) and tool descriptions to reflect the current set of nodes.
  • Remove an unused Vitest import and remove a production console.warn from the DataForSEO keyword research node.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/nodes/src/integrations/dataforseo/keyword-research.ts Removes a per-keyword failure console.warn in the keyword research node.
packages/docs-mcp/src/tools.ts Updates tool descriptions for list_nodes and get_api_reference.
packages/docs-mcp/src/docs.ts Removes editor package mention and expands NODE_TYPES used by list_nodes/node lookup.
packages/docs-mcp/README.md Corrects repo link, removes non-existent npm install instructions, updates usage/config examples.
packages/docs-mcp/package.json Aligns package author with the root project identity.
packages/docs-mcp/LICENSE Aligns license attribution with root license header.
packages/core/src/execution/tests/rate-limit.test.ts Removes unused vi import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 46 to 48
name: 'get_api_reference',
description: 'Get jam-nodes API reference for a specific area. Areas: "core", "types", "registry", "execution-context", "editor", "workflow-runner", "schema-introspector", "nodes".',
description: 'Get jam-nodes API reference for a specific area. Areas: "core", "types", "registry", "execution-context", "nodes".',
inputSchema: {

Copilot AI Apr 4, 2026

Copy link

Choose a reason for hiding this comment

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

get_api_reference description now advertises only core/types/registry/execution-context/nodes, but the runtime error message still suggests editor/workflow-runner/schema-introspector, and getApiReference() still appears to support those areas. Align the tool description, supported areas, and error messaging so users aren’t guided toward unsupported/removed areas (either remove the editor-related areas from implementation + error text, or add them back to the description).

Copilot uses AI. Check for mistakes.
{ type: 'sort', name: 'Sort', category: 'transform', description: 'Sort array items by a property', fullDoc: '' },
// Examples
{ type: 'http_request', name: 'HTTP Request', category: 'integration', description: 'Make HTTP requests to external APIs', fullDoc: '' },
{ type: 'bread', name: 'Bread', category: 'integration', description: 'Simple demo node returning a greeting', fullDoc: '' },

Copilot AI Apr 4, 2026

Copy link

Choose a reason for hiding this comment

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

The bread node metadata here doesn’t match the actual node definition: in packages/nodes/src/examples/bread.ts it’s categorized as action and described as always outputting "bread". Since list_nodes relies on this list, please update this entry’s category/description (and any other mismatches) to reflect the real node metadata.

Suggested change
{ type: 'bread', name: 'Bread', category: 'integration', description: 'Simple demo node returning a greeting', fullDoc: '' },
{ type: 'bread', name: 'Bread', category: 'action', description: 'Always outputs "bread"', fullDoc: '' },

Copilot uses AI. Check for mistakes.
{ type: 'twitter_retweet', name: 'Twitter Retweet', category: 'integration', description: 'Retweet a tweet by ID', fullDoc: '' },
{ type: 'twitter_search_tweets', name: 'Twitter Search Tweets', category: 'integration', description: 'Search tweets by query', fullDoc: '' },
{ type: 'twitter_send_dm', name: 'Twitter Send DM', category: 'integration', description: 'Send a direct message on Twitter/X', fullDoc: '' },
{ type: 'twitter_get_user_by_username', name: 'Twitter Get User', category: 'integration', description: 'Look up a Twitter/X user by username', fullDoc: '' },

Copilot AI Apr 4, 2026

Copy link

Choose a reason for hiding this comment

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

twitter_get_user_by_username’s displayed name/description here are slightly inconsistent with the node’s actual metadata (name: "Twitter Get User By Username", description: "Get a Twitter/X user profile by username"). Consider matching the real node metadata to avoid confusion in list_nodes output.

Suggested change
{ type: 'twitter_get_user_by_username', name: 'Twitter Get User', category: 'integration', description: 'Look up a Twitter/X user by username', fullDoc: '' },
{ type: 'twitter_get_user_by_username', name: 'Twitter Get User By Username', category: 'integration', description: 'Get a Twitter/X user profile by username', fullDoc: '' },

Copilot uses AI. Check for mistakes.
Comment on lines 195 to 197
} catch (kwError) {
// Continue with other keywords on individual failures
console.warn(`Error researching keyword "${seedKeyword}":`, kwError);
}

Copilot AI Apr 4, 2026

Copy link

Choose a reason for hiding this comment

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

This catch block now silently swallows per-keyword failures. With the console.warn removed, the node can return success: true with an empty/partial keywords list and no indication anything failed. Consider recording per-keyword errors in the output (or using the project’s logging mechanism) so users can distinguish “no results” from “requests failed.”

Copilot uses AI. Check for mistakes.
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.

Clarify lisense ownership, incorrect links, and not-real npm packages in packages/docs-mcp

2 participants