Skip to content

Conversation

@hthai2201
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

🤖 Automatic Formatting Applied

Files formatted: 1
Changes made:

  • ✅ Sentence case formatting applied to headings and titles

View workflow run: View Run

Copy link
Collaborator

@monotykamary monotykamary left a comment

Choose a reason for hiding this comment

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

What's missing here is the journey. Don't you think it's valuable to see what the context looks like coming in from Context7 when it's called from Claude Code?

image

Copy link
Collaborator

@monotykamary monotykamary left a comment

Choose a reason for hiding this comment

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

Content is mostly okay with a bit of weird formatting here and there. Although Context7 is essentially a "backend" app, it does deserve a video or a gif showing visually what it does on the developer's side.

Watch the video

Their homepage is also a great visual reminder of how Context7 can dynamically sort and organize context based on a target size:

context7.mp4

Comment on lines 225 to 247
```typescript
// Actual CLI argument processing from Context7 MCP
const program = new Command()
.option("--transport <stdio|http|sse>", "transport type", "stdio")
.option("--port <number>", "port for HTTP/SSE transport", "3000")
.allowUnknownOption() // let MCP Inspector / other wrappers pass through
.parse(process.argv);

// Validate and set transport type
const allowedTransports = ["stdio", "http", "sse"];
if (!allowedTransports.includes(cliOptions.transport)) {
console.error(
`Invalid --transport value: '${cliOptions.transport}'. Must be one of: stdio, http, sse.`
);
process.exit(1);
}

// The clever bit: Auto-detection based on client
const TRANSPORT_TYPE = (cliOptions.transport || "stdio") as
| "stdio" // Cursor, Claude Desktop
| "http" // VS Code extensions
| "sse"; // Windsurf, streaming clients
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this related to Context7 or was there an idea to connect the dots with MCP a bit more here?


Rule-based checks ensure structural completeness:

````typescript
Copy link
Collaborator

Choose a reason for hiding this comment

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

one too many backticks

return cleanedCode.split(" ").filter(token => token.trim() !== "").length < 5;
})
}
````
Copy link
Collaborator

Choose a reason for hiding this comment

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

one too many backticks


Prioritizes snippets that help developers get started:

````typescript
Copy link
Collaborator

Choose a reason for hiding this comment

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

one too many backticks

return singleLine;
})
}
````
Copy link
Collaborator

Choose a reason for hiding this comment

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

one too many backticks

Copy link
Collaborator

@monotykamary monotykamary left a comment

Choose a reason for hiding this comment

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

Good intentions, but we also don't want the user to go to another page while reading the article.

image

Copy link
Collaborator

@monotykamary monotykamary left a comment

Choose a reason for hiding this comment

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

FLORA-Sit Together-74ff38e1

@zlatanpham zlatanpham merged commit bee3ce3 into master Aug 27, 2025
1 check passed
@zlatanpham zlatanpham deleted the add/context7 branch August 27, 2025 08:07
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.

4 participants