better mcp
This commit is contained in:
@@ -27,3 +27,40 @@ When making changes:
|
|||||||
- GraphQL mutations like `addPullRequestReviewThreadReply`, `addPullRequestReviewComment`, etc.
|
- GraphQL mutations like `addPullRequestReviewThreadReply`, `addPullRequestReviewComment`, etc.
|
||||||
|
|
||||||
The agent must only read PR information and make code changes. The user will post their own comments.
|
The agent must only read PR information and make code changes. The user will post their own comments.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# MCP Usage (mcporter)
|
||||||
|
|
||||||
|
Use [mcporter](https://github.com/steipete/mcporter) to call MCP servers. It auto-discovers servers from editor configs (Cursor, Claude, Windsurf, etc.) and supports ad-hoc connections.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# List available servers and tools
|
||||||
|
npx mcporter list
|
||||||
|
npx mcporter list <server> --schema
|
||||||
|
|
||||||
|
# Call tools (two syntax styles)
|
||||||
|
npx mcporter call <server>.<tool> arg1:value1 arg2:value2
|
||||||
|
npx mcporter call '<server>.<tool>(arg1: "value1", arg2: "value2")'
|
||||||
|
|
||||||
|
# Ad-hoc HTTP server (no config needed)
|
||||||
|
npx mcporter call https://mcp.example.com/mcp.<tool> arg:value
|
||||||
|
|
||||||
|
# Ad-hoc stdio server
|
||||||
|
npx mcporter call --stdio "bun run ./server.ts" <tool> arg:value
|
||||||
|
|
||||||
|
# Generate TypeScript types
|
||||||
|
npx mcporter emit-ts <server> --mode types
|
||||||
|
```
|
||||||
|
|
||||||
|
Config location: `~/.mcporter/mcporter.json` (or `config/mcporter.json` in project)
|
||||||
|
|
||||||
|
## Commonly Used MCP Servers
|
||||||
|
|
||||||
|
Only use these servers and read about them when applicable.
|
||||||
|
|
||||||
|
### Svelte
|
||||||
|
|
||||||
|
Use frequently within Svelte 5 projects.
|
||||||
|
|
||||||
|
- URL: `https://mcp.svelte.dev/mcp`
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"settings": {
|
|
||||||
"idleTimeout": 10
|
|
||||||
},
|
|
||||||
"mcpServers": {
|
|
||||||
"svelte": {
|
|
||||||
"type": "http",
|
|
||||||
"url": "https://mcp.svelte.dev/mcp",
|
|
||||||
"tools": ["*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user