Skip to content

Commit

Permalink
Merge branch 'main' into google-calendar-mcp
Browse files Browse the repository at this point in the history
  • Loading branch information
nspady authored Jan 10, 2025
2 parents 6e3bb1b + d3136ce commit 221be1f
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 64 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The repository contains reference implementations, as well as a list of communit
We generally don't accept new servers into the repository. We do accept pull requests to the [README.md](./README.md)
adding a reference to your servers.

Please keep lists in alphabetical order to minimize merge conflicts when adding new items.

- Check the [modelcontextprotocol.io](https://modelcontextprotocol.io) documentation
- Ensure your server doesn't duplicate existing functionality
- Consider whether your server would be generally useful to others
Expand Down
139 changes: 85 additions & 54 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/everything/everything.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export const createServer = () => {
maxTokens,
);
return {
content: [{ type: "text", text: `LLM sampling result: ${result}` }],
content: [{ type: "text", text: `LLM sampling result: ${result.content.text}` }],
};
}

Expand Down
18 changes: 15 additions & 3 deletions src/fetch/src/mcp_server_fetch/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,21 @@ async def call_tool(name, arguments: dict) -> list[TextContent]:
content, prefix = await fetch_url(
url, user_agent_autonomous, force_raw=args.raw
)
if len(content) > args.max_length:
content = content[args.start_index : args.start_index + args.max_length]
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>"
original_length = len(content)
if args.start_index >= original_length:
content = "<error>No more content available.</error>"
else:
truncated_content = content[args.start_index : args.start_index + args.max_length]
if not truncated_content:
content = "<error>No more content available.</error>"
else:
content = truncated_content
actual_content_length = len(truncated_content)
remaining_content = original_length - (args.start_index + actual_content_length)
# Only add the prompt to continue fetching if there is still remaining content
if actual_content_length == args.max_length and remaining_content > 0:
next_start = args.start_index + actual_content_length
content += f"\n\n<error>Content truncated. Call the fetch tool with a start_index of {next_start} to get more content.</error>"
return [TextContent(type="text", text=f"{prefix}Contents of {url}:\n{content}")]

@server.get_prompt()
Expand Down
2 changes: 1 addition & 1 deletion src/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ If you are doing local development, there are two ways to test your changes:
```json
{
"mcpServers": {
"brave-search": {
"git": {
"command": "docker",
"args": [
"run",
Expand Down
8 changes: 4 additions & 4 deletions src/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ To use this with Claude Desktop, add the following to your `claude_desktop_confi
"args": [
"-y",
"@modelcontextprotocol/server-github"
]
},
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/sequentialthinking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Add this to your `claude_desktop_config.json`:
Docker:

```bash
docker build -t mcp/sequentialthinking -f sequentialthinking/Dockerfile .
docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .
```

## License
Expand Down

0 comments on commit 221be1f

Please sign in to comment.