Skip to content

Commit c2b4f71

Browse files
authored
Merge branch 'main' into patch-1
2 parents ded263f + d3136ce commit c2b4f71

File tree

7 files changed

+108
-63
lines changed

7 files changed

+108
-63
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The repository contains reference implementations, as well as a list of communit
1010
We generally don't accept new servers into the repository. We do accept pull requests to the [README.md](./README.md)
1111
adding a reference to your servers.
1212

13+
Please keep lists in alphabetical order to minimize merge conflicts when adding new items.
14+
1315
- Check the [modelcontextprotocol.io](https://modelcontextprotocol.io) documentation
1416
- Ensure your server doesn't duplicate existing functionality
1517
- Consider whether your server would be generally useful to others

README.md

Lines changed: 84 additions & 53 deletions
Large diffs are not rendered by default.

src/everything/everything.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export const createServer = () => {
411411
maxTokens,
412412
);
413413
return {
414-
content: [{ type: "text", text: `LLM sampling result: ${result}` }],
414+
content: [{ type: "text", text: `LLM sampling result: ${result.content.text}` }],
415415
};
416416
}
417417

src/fetch/src/mcp_server_fetch/server.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,21 @@ async def call_tool(name, arguments: dict) -> list[TextContent]:
233233
content, prefix = await fetch_url(
234234
url, user_agent_autonomous, force_raw=args.raw
235235
)
236-
if len(content) > args.max_length:
237-
content = content[args.start_index : args.start_index + args.max_length]
238-
content += f"\n\n<error>Content truncated. Call the fetch tool with a start_index of {args.start_index + args.max_length} to get more content.</error>"
236+
original_length = len(content)
237+
if args.start_index >= original_length:
238+
content = "<error>No more content available.</error>"
239+
else:
240+
truncated_content = content[args.start_index : args.start_index + args.max_length]
241+
if not truncated_content:
242+
content = "<error>No more content available.</error>"
243+
else:
244+
content = truncated_content
245+
actual_content_length = len(truncated_content)
246+
remaining_content = original_length - (args.start_index + actual_content_length)
247+
# Only add the prompt to continue fetching if there is still remaining content
248+
if actual_content_length == args.max_length and remaining_content > 0:
249+
next_start = args.start_index + actual_content_length
250+
content += f"\n\n<error>Content truncated. Call the fetch tool with a start_index of {next_start} to get more content.</error>"
239251
return [TextContent(type="text", text=f"{prefix}Contents of {url}:\n{content}")]
240252

241253
@server.get_prompt()

src/git/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ If you are doing local development, there are two ways to test your changes:
213213
```json
214214
{
215215
"mcpServers": {
216-
"brave-search": {
216+
"git": {
217217
"command": "docker",
218218
"args": [
219219
"run",

src/github/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ To use this with Claude Desktop, add the following to your `claude_desktop_confi
257257
"args": [
258258
"-y",
259259
"@modelcontextprotocol/server-github"
260-
]
261-
},
262-
"env": {
263-
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
260+
],
261+
"env": {
262+
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
263+
}
264264
}
265265
}
266266
}

src/sequentialthinking/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Add this to your `claude_desktop_config.json`:
8383
Docker:
8484

8585
```bash
86-
docker build -t mcp/sequentialthinking -f sequentialthinking/Dockerfile .
86+
docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .
8787
```
8888

8989
## License

0 commit comments

Comments
 (0)