Skip to content

Commit 70c8a54

Browse files
Revert README changes
1 parent 96cdd8d commit 70c8a54

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -162,31 +162,6 @@ mcpm router share # Share the router to public
162162
mcpm router unshare # Unshare the router
163163
```
164164

165-
#### Programmatic Usage of MCPRouter
166-
167-
You can also use the `MCPRouter` class programmatically in your Python applications. This is especially useful if you want to integrate MCPM into your own applications or scripts without relying on the global configuration.
168-
169-
```python
170-
from mcpm.router.router import MCPRouter
171-
172-
# Initialize with a custom API key
173-
router = MCPRouter(api_key="your-custom-api-key")
174-
175-
# Initialize with custom router configuration
176-
router_config = {
177-
"host": "localhost",
178-
"port": 8080,
179-
"share_address": "custom.share.address:8080"
180-
}
181-
router = MCPRouter(api_key="your-custom-api-key", router_config=router_config)
182-
183-
# Disable API key validation by setting api_key to None
184-
router = MCPRouter(api_key=None)
185-
186-
# Optionally, create a global config from the router's configuration
187-
router.create_global_config()
188-
```
189-
190165
### 🛠️ Utilities (`util`)
191166

192167
```bash

0 commit comments

Comments
 (0)